v2.0.1: fixed duelist not auto unlocking for players with a win

This commit is contained in:
Evan Debenham
2023-03-20 19:57:58 -04:00
parent 6ae0563857
commit 1804551ceb

View File

@@ -276,6 +276,7 @@ public class WelcomeScene extends PixelScene {
if (previousVersion <= ShatteredPixelDungeon.v2_0_0){
Badges.loadGlobal();
if (Badges.isUnlocked(Badges.Badge.VICTORY) && !Badges.isUnlocked(Badges.Badge.UNLOCK_DUELIST)){
Dungeon.customSeedText = ""; //clear in case rankings updating left this set
Badges.unlock(Badges.Badge.UNLOCK_DUELIST);
Badges.saveGlobal();
}