Players win if classic and past floor 200 (#1348)
* Players win if classic and past floor 200 * isClassic * no need to handle game over twice
This commit is contained in:
parent
34474fb10e
commit
d71451fc23
|
@ -729,6 +729,11 @@ export class EncounterPhase extends BattlePhase {
|
|||
|
||||
this.scene.initSession();
|
||||
|
||||
// Failsafe if players somehow skip floor 200 in classic mode
|
||||
if (this.scene.gameMode.isClassic && this.scene.currentBattle.waveIndex > 200) {
|
||||
this.scene.unshiftPhase(new GameOverPhase(this.scene));
|
||||
}
|
||||
|
||||
const loadEnemyAssets = [];
|
||||
|
||||
const battle = this.scene.currentBattle;
|
||||
|
@ -3862,6 +3867,11 @@ export class GameOverPhase extends BattlePhase {
|
|||
start() {
|
||||
super.start();
|
||||
|
||||
// Failsafe if players somehow skip floor 200 in classic mode
|
||||
if (this.scene.gameMode.isClassic && this.scene.currentBattle.waveIndex > 200) {
|
||||
this.victory = true;
|
||||
}
|
||||
|
||||
if (this.victory || !this.scene.enableRetries) {
|
||||
this.handleGameOver();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue