aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-06-02 17:00:26 -0500
committermat <github@matdoes.dev>2022-06-02 17:00:26 -0500
commit447bf21f81e4f1e635433de0b6b24b8a1dda1255 (patch)
tree8855188371036d05cecab412468821d465acd6cd /src
parentc8ed21fcdfea3d976439429a9d30e45a330b688e (diff)
downloadskyblock-api-447bf21f81e4f1e635433de0b6b24b8a1dda1255.tar.gz
skyblock-api-447bf21f81e4f1e635433de0b6b24b8a1dda1255.tar.bz2
skyblock-api-447bf21f81e4f1e635433de0b6b24b8a1dda1255.zip
Disable some potentially bad code
Diffstat (limited to 'src')
-rw-r--r--src/cleaners/achievements.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cleaners/achievements.ts b/src/cleaners/achievements.ts
index 367e14a..9f499f1 100644
--- a/src/cleaners/achievements.ts
+++ b/src/cleaners/achievements.ts
@@ -56,10 +56,11 @@ export async function cleanPlayerAchievements(data: typedHypixelApi.PlayerDataRe
tier,
next,
amount,
- description: achievementData.description.replace(/%s/g, (achievementData.tiers[Math.max(0, tier - 1)].amount).toString())
+ // description: achievementData.description.replace(/%s/g, (achievementData.tiers[Math.max(0, tier - 1)].amount).toString())
+ description: achievementData.description
})
}
- tieredAchievements.sort((a, b) => (b.amount ?? 0) - (a.amount ?? 0))
+ // tieredAchievements.sort((a, b) => (b.amount ?? 0) - (a.amount ?? 0))
const unlockedChallengeAchievements: ChallengeAchievement[] = []
const lockedChallengeAchievements: ChallengeAchievement[] = []