Update getFinalSessionData() to collect Mystery Encounter data

This commit is contained in:
Mumble 2024-08-31 14:48:39 -07:00 committed by GitHub
parent 494ef4435e
commit 89f3efd620
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -231,7 +231,9 @@ export class GameOverPhase extends BattlePhase {
trainer: this.scene.currentBattle.battleType === BattleType.TRAINER ? new TrainerData(this.scene.currentBattle.trainer) : null, trainer: this.scene.currentBattle.battleType === BattleType.TRAINER ? new TrainerData(this.scene.currentBattle.trainer) : null,
gameVersion: this.scene.game.config.gameVersion, gameVersion: this.scene.game.config.gameVersion,
timestamp: new Date().getTime(), timestamp: new Date().getTime(),
challenges: this.scene.gameMode.challenges.map(c => new ChallengeData(c)) challenges: this.scene.gameMode.challenges.map(c => new ChallengeData(c)),
mysteryEncounter: scene.currentBattle.mysteryEncounter,
mysteryEncounterData: scene.mysteryEncounterData
} as SessionSaveData; } as SessionSaveData;
} }
} }