Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

Commit

Permalink
2.0.0.1 Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyM1ke committed Jan 13, 2021
1 parent 695c3cf commit baf3416
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Binary file modified .vs/ValorantStreamOverlay/v16/.suo
Binary file not shown.
8 changes: 4 additions & 4 deletions LogicHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ async Task UpdateToLatestGames()
foreach (var game in matches)
{

if (game["CompetitiveMovement"] == "MOVEMENT_UNKNOWN")
if (game["TierAfterUpdate"] == 0)
{
// not a ranked game
// riot said fuck off to this one i guess LMAO
}
else if (game["CompetitiveMovement"] == "PROMOTED")
else if (game["TierAfterUpdate"] > game["TierBeforeUpdate"]) // Promoted meaning, that afterupdate is more than beforeupdate
{
// player promoted
int before = game["RankedRatingBeforeUpdate"];
Expand All @@ -158,7 +158,7 @@ async Task UpdateToLatestGames()
points[i++] = differ;
count++;
}
else if (game["CompetitiveMovement"] == "DEMOTED")
else if (game["TierAfterUpdate"] < game["TierBeforeUpdate"])
{
// player demoted
int before = game["RankedRatingBeforeUpdate"];
Expand Down
2 changes: 1 addition & 1 deletion RankDetection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private async Task<int> UPDATECompRankAsync()

foreach (var game in matches)
{
if (game["CompetitiveMovement"] != "MOVEMENT_UNKNOWN")
if (game["RankedRatingAfterUpdate"] != 0)
{
currentRP = game["RankedRatingAfterUpdate"];
return game["TierAfterUpdate"];
Expand Down
4 changes: 2 additions & 2 deletions ValorantStreamOverlay.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<TargetFramework>netcoreapp3.1</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<ApplicationIcon>icon.ico</ApplicationIcon>
<Version>2.0.0.0</Version>
<Version>2.0.0.1</Version>
<Company>RumbleMike</Company>
<Description>C# Program that offers an overlay for content creators.</Description>
<Copyright />
<PackageIcon>icon.png</PackageIcon>
<RepositoryUrl>https://github.com/RumbleMike/ValorantStreamOverlay</RepositoryUrl>
<PackageReleaseNotes>https://github.com/RumbleMike/ValorantStreamOverlay/releases/latest</PackageReleaseNotes>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.0.1</AssemblyVersion>
<FileVersion>2.0.0.0</FileVersion>
<SignAssembly>false</SignAssembly>
<AssemblyOriginatorKeyFile>test.snk</AssemblyOriginatorKeyFile>
Expand Down

0 comments on commit baf3416

Please sign in to comment.