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

Commit baf3416

Browse files
committed
2.0.0.1 Fix
1 parent 695c3cf commit baf3416

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.vs/ValorantStreamOverlay/v16/.suo

2.5 KB
Binary file not shown.

LogicHandler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ async Task UpdateToLatestGames()
145145
foreach (var game in matches)
146146
{
147147

148-
if (game["CompetitiveMovement"] == "MOVEMENT_UNKNOWN")
148+
if (game["TierAfterUpdate"] == 0)
149149
{
150-
// not a ranked game
150+
// riot said fuck off to this one i guess LMAO
151151
}
152-
else if (game["CompetitiveMovement"] == "PROMOTED")
152+
else if (game["TierAfterUpdate"] > game["TierBeforeUpdate"]) // Promoted meaning, that afterupdate is more than beforeupdate
153153
{
154154
// player promoted
155155
int before = game["RankedRatingBeforeUpdate"];
@@ -158,7 +158,7 @@ async Task UpdateToLatestGames()
158158
points[i++] = differ;
159159
count++;
160160
}
161-
else if (game["CompetitiveMovement"] == "DEMOTED")
161+
else if (game["TierAfterUpdate"] < game["TierBeforeUpdate"])
162162
{
163163
// player demoted
164164
int before = game["RankedRatingBeforeUpdate"];

RankDetection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private async Task<int> UPDATECompRankAsync()
5151

5252
foreach (var game in matches)
5353
{
54-
if (game["CompetitiveMovement"] != "MOVEMENT_UNKNOWN")
54+
if (game["RankedRatingAfterUpdate"] != 0)
5555
{
5656
currentRP = game["RankedRatingAfterUpdate"];
5757
return game["TierAfterUpdate"];

ValorantStreamOverlay.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<TargetFramework>netcoreapp3.1</TargetFramework>
66
<UseWindowsForms>true</UseWindowsForms>
77
<ApplicationIcon>icon.ico</ApplicationIcon>
8-
<Version>2.0.0.0</Version>
8+
<Version>2.0.0.1</Version>
99
<Company>RumbleMike</Company>
1010
<Description>C# Program that offers an overlay for content creators.</Description>
1111
<Copyright />
1212
<PackageIcon>icon.png</PackageIcon>
1313
<RepositoryUrl>https://github.com/RumbleMike/ValorantStreamOverlay</RepositoryUrl>
1414
<PackageReleaseNotes>https://github.com/RumbleMike/ValorantStreamOverlay/releases/latest</PackageReleaseNotes>
15-
<AssemblyVersion>2.0.0.0</AssemblyVersion>
15+
<AssemblyVersion>2.0.0.1</AssemblyVersion>
1616
<FileVersion>2.0.0.0</FileVersion>
1717
<SignAssembly>false</SignAssembly>
1818
<AssemblyOriginatorKeyFile>test.snk</AssemblyOriginatorKeyFile>

0 commit comments

Comments
 (0)