small reorder
This commit is contained in:
parent
d95c44373a
commit
2817f689fe
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user