feat(achievements): distinguish regular and secret achievements

This commit is contained in:
2026-01-31 01:18:28 +01:00
parent 2814abfc32
commit d5e345a7ee
4 changed files with 26 additions and 24 deletions

View File

@@ -46,12 +46,12 @@ useKeyDown((key) => {
a.reset();
} else if (key === "o") {
for (const ach of ACHIEVEMENTS) {
a.unlock(ach);
a.unlock(ach.id);
}
} else if (key === "p") {
for (const ach of ACHIEVEMENTS) {
if (!a.isUnlocked(ach)) {
a.unlock(ach);
if (!a.isUnlocked(ach.id)) {
a.unlock(ach.id);
break;
}
}