Fix error sound after selecting a biome
parent
0ecc46ab97
commit
b5abdc0113
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue