Add action value counter to the new AS mode

This commit is contained in:
Melledy
2024-06-19 05:14:03 -07:00
parent bc66a9e383
commit 85b58791a9

View File

@@ -118,13 +118,17 @@ public class ChallengeInstance {
}
// Add story battle targets
if (this.getExcel().getStoryExcel() != null) {
if (this.getExcel().getType() == ChallengeType.STORY) {
// Add base score counter
battle.addBattleTarget(1, 10001, this.getTotalScore());
// Add battle targets from story excel
for (int id : getExcel().getStoryExcel().getBattleTargetID()) {
battle.addBattleTarget(5, id, this.getTotalScore());
}
} else if (this.getExcel().getType() == ChallengeType.BOSS) {
// Remaining action count
battle.addBattleTarget(1, 90004, 0);
battle.addBattleTarget(1, 90005, 0);
}
}