From 547a08cf1773f85c09fc5e6a1a27a67ece1d20ab Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 04:12:40 +0000 Subject: [PATCH] Fix PSN Exp and trophy count calculation Previously, the `CompletionRates` method calculated the trophy grade and count based on whether a trophy was synchronized (`IsTrophySync`). This caused the UI to show 0 progress even when trophies were obtained/unlocked locally but not yet synced. This change updates the calculation to use `IsTrophyGot` instead of `IsTrophySync`. This ensures that all unlocked trophies are correctly accounted for in the PSN Exp (grade) and trophy count, regardless of their synchronization status. Fixes #52 --- PS3TrophyIsGood/MainAPP.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PS3TrophyIsGood/MainAPP.cs b/PS3TrophyIsGood/MainAPP.cs index 7a4ba0b..42155d4 100644 --- a/PS3TrophyIsGood/MainAPP.cs +++ b/PS3TrophyIsGood/MainAPP.cs @@ -290,23 +290,23 @@ private void CompletionRates() { case TropType.Platinum: totalGrade += (int)TropGrade.Platinum; - getGrade += IsTrophySync(i) ? (int)TropGrade.Platinum : 0; + getGrade += IsTrophyGot(i) ? (int)TropGrade.Platinum : 0; break; case TropType.Gold: totalGrade += (int)TropGrade.Gold; - getGrade += IsTrophySync(i) ? (int)TropGrade.Gold : 0; + getGrade += IsTrophyGot(i) ? (int)TropGrade.Gold : 0; break; case TropType.Silver: totalGrade += (int)TropGrade.Silver; - getGrade += IsTrophySync(i) ? (int)TropGrade.Silver : 0; + getGrade += IsTrophyGot(i) ? (int)TropGrade.Silver : 0; break; case TropType.Bronze: totalGrade += (int)TropGrade.Bronze; - getGrade += IsTrophySync(i) ? (int)TropGrade.Bronze : 0; + getGrade += IsTrophyGot(i) ? (int)TropGrade.Bronze : 0; break; } - if (IsTrophySync(i)) isGetTrophyNumber++; + if (IsTrophyGot(i)) isGetTrophyNumber++; } progressBar1.Maximum = totalGrade; progressBar1.Value = getGrade;