diff --git a/.vs/ValorantStreamOverlay/v16/.suo b/.vs/ValorantStreamOverlay/v16/.suo index cd5ecc2..c892e73 100644 Binary files a/.vs/ValorantStreamOverlay/v16/.suo and b/.vs/ValorantStreamOverlay/v16/.suo differ diff --git a/LogicHandler.cs b/LogicHandler.cs index fe46c01..301c367 100644 --- a/LogicHandler.cs +++ b/LogicHandler.cs @@ -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"]; @@ -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"]; diff --git a/RankDetection.cs b/RankDetection.cs index ecc3c50..a64bef6 100644 --- a/RankDetection.cs +++ b/RankDetection.cs @@ -51,7 +51,7 @@ private async Task UPDATECompRankAsync() foreach (var game in matches) { - if (game["CompetitiveMovement"] != "MOVEMENT_UNKNOWN") + if (game["RankedRatingAfterUpdate"] != 0) { currentRP = game["RankedRatingAfterUpdate"]; return game["TierAfterUpdate"]; diff --git a/ValorantStreamOverlay.csproj b/ValorantStreamOverlay.csproj index ed60333..c7d4d1b 100644 --- a/ValorantStreamOverlay.csproj +++ b/ValorantStreamOverlay.csproj @@ -5,14 +5,14 @@ netcoreapp3.1 true icon.ico - 2.0.0.0 + 2.0.0.1 RumbleMike C# Program that offers an overlay for content creators. icon.png https://github.com/RumbleMike/ValorantStreamOverlay https://github.com/RumbleMike/ValorantStreamOverlay/releases/latest - 2.0.0.0 + 2.0.0.1 2.0.0.0 false test.snk