mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-05-12 11:23:41 +01:00
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();
|
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 loadEnemyAssets = [];
|
||||||
|
|
||||||
const battle = this.scene.currentBattle;
|
const battle = this.scene.currentBattle;
|
||||||
@ -3862,6 +3867,11 @@ export class GameOverPhase extends BattlePhase {
|
|||||||
start() {
|
start() {
|
||||||
super.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) {
|
if (this.victory || !this.scene.enableRetries) {
|
||||||
this.handleGameOver();
|
this.handleGameOver();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user