From 9805329228ff2de051574f35b4c8adc30fe4b527 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 17 Mar 2024 17:30:07 -0400 Subject: [PATCH] Fix load game bug after backing out of daily run --- src/phases.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/phases.ts b/src/phases.ts index 0d5c9beec..0a700902e 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -182,13 +182,13 @@ export class TitlePhase extends Phase { }; this.scene.ui.setMode(Mode.OPTION_SELECT, config); - this.scene.dailyRunScoreboard.showAndUpdate(true); + this.scene.dailyRunScoreboard.showAndUpdate(); } loadSaveSlot(slotId: integer): void { this.scene.sessionSlotId = slotId; this.scene.ui.setMode(Mode.MESSAGE); - this.scene.dailyRunScoreboard.hide(false); + this.scene.dailyRunScoreboard.hide(); this.scene.gameData.loadSession(this.scene, slotId).then((success: boolean) => { if (success) { this.loaded = true; @@ -206,7 +206,7 @@ export class TitlePhase extends Phase { this.scene.clearPhaseQueue(); if (slotId === -1) { this.scene.pushPhase(new TitlePhase(this.scene)); - return this.end(); + return super.end(); } this.scene.sessionSlotId = slotId; @@ -256,7 +256,7 @@ export class TitlePhase extends Phase { } end(): void { - this.scene.dailyRunScoreboard.hide(false); + this.scene.dailyRunScoreboard.hide(); if (!this.loaded && !this.scene.gameMode.isDaily) { this.scene.arena.preloadBgm(); @@ -3224,7 +3224,6 @@ export class ExpPhase extends PlayerPartyMemberPokemonPhase { let exp = new Utils.NumberHolder(this.expValue); this.scene.applyModifiers(ExpBoosterModifier, true, exp); exp.value = Math.floor(exp.value); - console.log(this.expValue, exp.value); this.scene.ui.showText(`${pokemon.name} gained\n${exp.value} EXP. Points!`, null, () => { const lastLevel = pokemon.level; let newLevel: integer;