From 448096db332e0b53197fac08d8af508c7f4315f0 Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Thu, 13 Jun 2024 09:37:07 +1000 Subject: [PATCH] Add secondary update to biome pool loading (#2157) --- src/field/arena.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/field/arena.ts b/src/field/arena.ts index 0cdf27b7983..7885668b577 100644 --- a/src/field/arena.ts +++ b/src/field/arena.ts @@ -55,6 +55,10 @@ export class Arena { this.scene.arenaNextEnemy.setBiome(this.biomeType); this.scene.arenaBg.setTexture(`${biomeKey}_bg`); this.scene.arenaBgTransition.setTexture(`${biomeKey}_bg`); + + // Redo this on initialise because during save/load the current wave isn't always + // set correctly during construction + this.updatePoolsForTimeOfDay(); } updatePoolsForTimeOfDay(): void {