feat(achievements): distinguish regular and secret achievements
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user