Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Oct 22, 2024
1 parent 772e1de commit 3fed4a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions source/states/AchievementsState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@ class AchievementsState extends ExtendableState {
openSubState(new PromptSubState('This action will reset ALL of the achievements.\nProceed anyways?', () -> {
FlxG.sound.play(Paths.sound('select'));
for (i in 0...achievementArray.length) {
achievementArray[i].forget();
achievementGrp.members[i].text = '???';
Achievements.forget(i);
ExtendableState.resetState();
}
}, function() {
FlxG.sound.play(Paths.sound('cancel'));
}));
} else {
openSubState(new PromptSubState('This action will reset the selected achievement.\nProceed anyways?', () -> {
FlxG.sound.play(Paths.sound('select'));
achievementArray[curSelected].forget();
achievementGrp.members[curSelected].text = '???';
Achievements.forget(achievementArray[curSelected]);
ExtendableState.resetState();
}, function() {
FlxG.sound.play(Paths.sound('cancel'));
}));
Expand Down
5 changes: 3 additions & 2 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ class PlayState extends ExtendableState {
}
}

function checkForAchievement(ach:Array<String> = null):String {
function checkForAchievement(achs:Array<String> = null):String {
if (chartingMode || SaveData.settings.botPlay)
return null;

Expand Down Expand Up @@ -765,8 +765,9 @@ class PlayState extends ExtendableState {
return achievementName;
}
}
return null;
}

return null;
}

function generateSong() {
Expand Down

0 comments on commit 3fed4a4

Please sign in to comment.