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);
}, this.scene.currentBattle.waveIndex);
const biomeSelectItems = biomeChoices.map(b => {
return {
const ret: OptionSelectItem = {
label: getBiomeName(b),
handler: () => {
this.scene.ui.setMode(Mode.MESSAGE);
setNextBiome(b);
return true;
}
};
return ret;
});
this.scene.ui.setMode(Mode.OPTION_SELECT, {
options: biomeSelectItems,