Handle more achievements

This commit is contained in:
Melledy
2025-11-30 23:16:37 -08:00
parent 6f7a92725a
commit 585734c2f3
9 changed files with 169 additions and 46 deletions
@@ -2,6 +2,7 @@ package emu.nebula.game.infinitytower;
import emu.nebula.data.GameData;
import emu.nebula.data.resources.InfinityTowerLevelDef;
import emu.nebula.game.achievement.AchievementCondition;
import emu.nebula.game.player.Player;
import emu.nebula.game.player.PlayerChangeInfo;
import emu.nebula.game.player.PlayerManager;
@@ -75,6 +76,9 @@ public class InfinityTowerManager extends PlayerManager {
// Log in player progress
this.getPlayer().getProgress().addInfinityArenaLog(this.getLevelId());
// Trigger achievement
this.getPlayer().trigger(AchievementCondition.InfinityTowerClearSpecificFloor, 10, this.getLevelId(), 0);
// Success
return change.setSuccess(true);
}