1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Fixed when achievements are given on levels

Co-authored-by: TcePrepK <TcePrepK@users.noreply.github.com>
This commit is contained in:
DJ1TJOO 2021-06-24 21:11:43 +02:00
parent 5074727efa
commit 7a54ee0e52

View File

@ -427,7 +427,7 @@ export class AchievementCollection {
createLevelOptions(level) {
return {
init: ({ key }) => this.unlock(key, this.root.hubGoals.level),
isValid: currentLevel => currentLevel >= level,
isValid: currentLevel => currentLevel > level,
signal: "storyGoalCompleted",
};
}