Replaced conditional with true so that sync-to-server occurs at the start of every wave.

This commit is contained in:
frutescens 2024-11-06 15:04:03 -08:00
parent 9dae28f264
commit 26ea281b9c

View File

@ -226,7 +226,7 @@ export class EncounterPhase extends BattlePhase {
this.scene.ui.setMode(Mode.MESSAGE).then(() => {
if (!this.loaded) {
this.trySetWeatherIfNewBiome(); // Set weather before session gets saved
this.scene.gameData.saveAll(this.scene, true, battle.waveIndex % 10 === 1 || (this.scene.lastSavePlayTime ?? 0) >= 300).then(success => {
this.scene.gameData.saveAll(this.scene, true, true).then(success => {
this.scene.disableMenu = false;
if (!success) {
return this.scene.reset(true);