From d71451fc2380fa1a106a37e9774a142b701280b9 Mon Sep 17 00:00:00 2001 From: Tempoanon <163687446+TempsRay@users.noreply.github.com> Date: Sat, 25 May 2024 05:36:30 -0400 Subject: [PATCH] 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 --- src/phases.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/phases.ts b/src/phases.ts index 371b086057c..6d0eb29c707 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -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 {