Rework how quest/achievement conditions are handled

This commit is contained in:
Melledy
2025-11-30 17:06:08 -08:00
parent a04f3354f7
commit 6f7a92725a
21 changed files with 143 additions and 71 deletions
@@ -1,7 +1,6 @@
package emu.nebula.game.dating;
import emu.nebula.data.GameData;
import emu.nebula.game.achievement.AchievementCondition;
import emu.nebula.game.character.GameCharacter;
import emu.nebula.game.player.Player;
import emu.nebula.game.player.PlayerManager;
@@ -28,8 +27,7 @@ public class DatingManager extends PlayerManager {
this.game = new DatingGame(character, data);
// Trigger quest/achievement
this.getPlayer().triggerQuest(QuestCondition.CharactersDatingTotal, 1);
this.getPlayer().triggerAchievement(AchievementCondition.CharactersDatingTotal, 1);
this.getPlayer().trigger(QuestCondition.CharactersDatingTotal, 1);
// Success
return this.game;