chore(battle): initialize result state flag in BattleScene

Adds `_resultShown` property to `BattleScene` constructor, initializing it to `false`. This flag tracks whether the battle result has been displayed and is reset when a new mission begins.
This commit is contained in:
Brian Fertig 2026-03-24 18:05:53 -06:00
parent 547196f709
commit b2c55d903a
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ export class BattleScene extends Phaser.Scene {
this.playerLevel = data.playerLevel || 1;
this.enemyLevel = data.enemyLevel || 1;
this.campaignId = data.campaignId || null;
this._resultShown = false; // Set this to null when a mission begins.
}
create() {