From ae737bd8c280cfda11ea4cce68327b50b18610fc Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Sat, 28 Feb 2026 18:06:27 +0100 Subject: [PATCH] fix(settings/user/snake): high score bug and achievement unlocking --- app/components/Settings/BottomScreen/Menus/User/Snake.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/Settings/BottomScreen/Menus/User/Snake.vue b/app/components/Settings/BottomScreen/Menus/User/Snake.vue index b933f09..d768776 100644 --- a/app/components/Settings/BottomScreen/Menus/User/Snake.vue +++ b/app/components/Settings/BottomScreen/Menus/User/Snake.vue @@ -204,13 +204,13 @@ const randomFoodPos = (): THREE.Vector2 => { }; const eat = () => { - highScore.value = Math.max(highScore.value, score); food.copy(randomFoodPos()); score += 1; + highScore.value = Math.max(highScore.value, score); atlas.audio.duplicate.play(0.35); - if (score === 40) { + if (score >= 25) { achievements.unlock("snake_score_25"); } };