Update getFinalSessionData() to collect Mystery Encounter data
This commit is contained in:
parent
494ef4435e
commit
89f3efd620
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue