small reorder

This commit is contained in:
koneko 2025-01-11 22:08:45 +01:00
parent d95c44373a
commit 2817f689fe

View File

@ -101,13 +101,10 @@ export class GameScene extends Scene {
Engine.NotificationManager.Notify(`Final round.`, 'danger'); Engine.NotificationManager.Notify(`Final round.`, 'danger');
} }
if (this.currentRound + 1 == this.mission.rounds.length) { if (this.currentRound + 1 == this.mission.rounds.length) {
this.changeRoundButton.setCaption('WINNER!');
Engine.NotificationManager.Notify(`Mission victory!!`, 'reward'); Engine.NotificationManager.Notify(`Mission victory!!`, 'reward');
this.changeRoundButton.setCaption('Return to menu'); this.changeRoundButton.setCaption('Return to menu');
this.playerWon = true; this.playerWon = true;
return; } else this.currentRound++;
}
this.currentRound++;
} }
if (this.MissionStats.getHP() <= 0) { if (this.MissionStats.getHP() <= 0) {