From a064958d4c3613078a5c2ad2ff1b947ef8c047a8 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Sun, 13 Oct 2024 16:03:54 -0300 Subject: [PATCH] feat: update achievements processors --- src/main/services/achievements/parse-achievement-file.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/services/achievements/parse-achievement-file.ts b/src/main/services/achievements/parse-achievement-file.ts index 47c8e805..b2031989 100644 --- a/src/main/services/achievements/parse-achievement-file.ts +++ b/src/main/services/achievements/parse-achievement-file.ts @@ -112,7 +112,7 @@ const processOnlineFix = (unlockedAchievements: any): UnlockedAchievement[] => { for (const achievement of Object.keys(unlockedAchievements)) { const unlockedAchievement = unlockedAchievements[achievement]; - if (unlockedAchievement?.achieved) { + if (unlockedAchievement?.achieved == "true") { parsedUnlockedAchievements.push({ name: achievement, unlockTime: unlockedAchievement.timestamp * 1000, @@ -129,7 +129,7 @@ const processCreamAPI = (unlockedAchievements: any): UnlockedAchievement[] => { for (const achievement of Object.keys(unlockedAchievements)) { const unlockedAchievement = unlockedAchievements[achievement]; - if (unlockedAchievement?.achieved) { + if (unlockedAchievement?.achieved == "true") { const unlockTime = unlockedAchievement.unlocktime; parsedUnlockedAchievements.push({ name: achievement, @@ -207,7 +207,7 @@ const processDefault = (unlockedAchievements: any): UnlockedAchievement[] => { for (const achievement of Object.keys(unlockedAchievements)) { const unlockedAchievement = unlockedAchievements[achievement]; - if (unlockedAchievement?.Achieved) { + if (unlockedAchievement?.Achieved == "1") { newUnlockedAchievements.push({ name: achievement, unlockTime: unlockedAchievement.UnlockTime * 1000,