Skip to content

Commit

Permalink
Revised condition to include the first wave of a run.
Browse files Browse the repository at this point in the history
  • Loading branch information
frutescens committed Nov 16, 2024
1 parent 1508358 commit 08f763f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/phases/encounter-phase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ 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 % 5 === 1 || (this.scene.lastSavePlayTime ?? 0) >= 300).then(success => {
// Game syncs to server on waves 1, X6, and X11 (As of 1.2.0)
this.scene.gameData.saveAll(this.scene, true, (battle.waveIndex % 5 === 1 || battle.waveIndex === 1) || (this.scene.lastSavePlayTime ?? 0) >= 300).then(success => {
this.scene.disableMenu = false;
if (!success) {
return this.scene.reset(true);
Expand Down

0 comments on commit 08f763f

Please sign in to comment.