mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-17 22:02:18 +02:00
Fixed biome map options counting rng twice
This commit is contained in:
parent
1a7442511c
commit
c22a87716f
@ -38,15 +38,7 @@ export class SelectBiomePhase extends BattlePhase {
|
|||||||
.map(b => (!Array.isArray(b) ? b : b[0]));
|
.map(b => (!Array.isArray(b) ? b : b[0]));
|
||||||
|
|
||||||
if (biomes.length > 1 && globalScene.findModifier(m => m instanceof MapModifier)) {
|
if (biomes.length > 1 && globalScene.findModifier(m => m instanceof MapModifier)) {
|
||||||
const biomeChoices: Biome[] = (
|
const biomeSelectItems = biomes.map(b => {
|
||||||
!Array.isArray(biomeLinks[currentBiome])
|
|
||||||
? [biomeLinks[currentBiome] as Biome]
|
|
||||||
: (biomeLinks[currentBiome] as (Biome | [Biome, number])[])
|
|
||||||
)
|
|
||||||
.filter(b => !Array.isArray(b) || !randSeedInt(b[1]))
|
|
||||||
.map(b => (Array.isArray(b) ? b[0] : b));
|
|
||||||
|
|
||||||
const biomeSelectItems = biomeChoices.map(b => {
|
|
||||||
const ret: OptionSelectItem = {
|
const ret: OptionSelectItem = {
|
||||||
label: getBiomeName(b),
|
label: getBiomeName(b),
|
||||||
handler: () => {
|
handler: () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user