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

This little change should achievement bugs

Levels are bugges for a lot time recently and for some reason noone made pr to fix this so yeah... Anyways this bug causes player to get level achievements before getting to that level. So removing "=" from there "should" fix these bugs.
This commit is contained in:
TcePrepK 2021-06-24 22:11:46 +03:00 committed by GitHub
parent 5074727efa
commit f8f54d0c37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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",
};
}