Fix error sound after selecting a biome

pull/203/head
Flashfyre 2024-04-19 18:56:45 -04:00
parent 0ecc46ab97
commit b5abdc0113
1 changed files with 3 additions and 1 deletions

View File

@ -1042,13 +1042,15 @@ export class SelectBiomePhase extends BattlePhase {
.map(b => Array.isArray(b) ? b[0] : b); .map(b => Array.isArray(b) ? b[0] : b);
}, this.scene.currentBattle.waveIndex); }, this.scene.currentBattle.waveIndex);
const biomeSelectItems = biomeChoices.map(b => { const biomeSelectItems = biomeChoices.map(b => {
return { const ret: OptionSelectItem = {
label: getBiomeName(b), label: getBiomeName(b),
handler: () => { handler: () => {
this.scene.ui.setMode(Mode.MESSAGE); this.scene.ui.setMode(Mode.MESSAGE);
setNextBiome(b); setNextBiome(b);
return true;
} }
}; };
return ret;
}); });
this.scene.ui.setMode(Mode.OPTION_SELECT, { this.scene.ui.setMode(Mode.OPTION_SELECT, {
options: biomeSelectItems, options: biomeSelectItems,