mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02:00
Implement achievements properly
This commit is contained in:
@@ -5,6 +5,7 @@ import java.util.List;
|
||||
|
||||
import emu.nebula.Nebula;
|
||||
import emu.nebula.data.GameData;
|
||||
import emu.nebula.game.achievement.AchievementCondition;
|
||||
import emu.nebula.game.player.Player;
|
||||
import emu.nebula.game.player.PlayerManager;
|
||||
import emu.nebula.game.player.PlayerProgress;
|
||||
@@ -173,6 +174,9 @@ public class VampireSurvivorManager extends PlayerManager {
|
||||
|
||||
// Clear game
|
||||
this.game = null;
|
||||
|
||||
// Trigger achievement
|
||||
getPlayer().triggerAchievement(AchievementCondition.VampireWithSpecificClearTotal, 1);
|
||||
}
|
||||
|
||||
private void updateSavedCards() {
|
||||
|
||||
Reference in New Issue
Block a user