Add Grip Claw item and fix evolution logic bug
This commit is contained in:
1 parent
f33ee493bd
commit
d53959e0a9
5 files changed
+100
-35
No files matched your search
+4
-7
@@ -671,7 +671,7 @@ export const biomePools: BiomePools = {
|
||||
{ 1: [ Species.BALTOY ], 36: [ Species.CLAYDOL ] },
|
||||
{ 1: [ Species.ELGYEM ], 42: [ Species.BEHEEYEM ] }
|
||||
],
|
||||
[BiomePoolTier.UNCOMMON]: [ { 1: [ Species.ABRA ], 16: [ Species.KADABRA ] }, { 1: [ Species.BRONZOR ], 33: [ Species.BRONZONG ] }, Species.SIGILYPH, { 1: [ Species.KLINK ], 38: [ Species.KLANG ], 49: [ Species.KLINKLANG ] } ],
|
||||
[BiomePoolTier.UNCOMMON]: [ { 1: [ Species.ABRA ], 16: [ Species.KADABRA ] }, { 1: [ Species.BRONZOR ], 33: [ Species.BRONZONG ] }, Species.SIGILYPH ],
|
||||
[BiomePoolTier.RARE]: [ Species.MR_MIME, Species.WOBBUFFET, { 1: [ Species.GOTHITA ], 32: [ Species.GOTHORITA ], 41: [ Species.GOTHITELLE ] } ],
|
||||
[BiomePoolTier.SUPER_RARE]: [ Species.ESPEON, { 1: [ Species.ARCHEN ], 37: [ Species.ARCHEOPS ] } ],
|
||||
[BiomePoolTier.ULTRA_RARE]: [ Species.MEW, Species.VICTINI ],
|
||||
@@ -3582,19 +3582,16 @@ export const biomePools: BiomePools = {
|
||||
]
|
||||
],
|
||||
[ Species.KLINK, Type.STEEL, -1, [
|
||||
[ Biome.FACTORY, BiomePoolTier.COMMON ],
|
||||
[ Biome.RUINS, BiomePoolTier.UNCOMMON ]
|
||||
[ Biome.FACTORY, BiomePoolTier.COMMON ]
|
||||
]
|
||||
],
|
||||
[ Species.KLANG, Type.STEEL, -1, [
|
||||
[ Biome.FACTORY, BiomePoolTier.COMMON ],
|
||||
[ Biome.RUINS, BiomePoolTier.UNCOMMON ]
|
||||
[ Biome.FACTORY, BiomePoolTier.COMMON ]
|
||||
]
|
||||
],
|
||||
[ Species.KLINKLANG, Type.STEEL, -1, [
|
||||
[ Biome.FACTORY, BiomePoolTier.COMMON ],
|
||||
[ Biome.FACTORY, BiomePoolTier.BOSS ],
|
||||
[ Biome.RUINS, BiomePoolTier.UNCOMMON ]
|
||||
[ Biome.FACTORY, BiomePoolTier.BOSS ]
|
||||
]
|
||||
],
|
||||
[ Species.TYNAMO, Type.ELECTRIC, -1, [
|
||||
|
||||
@@ -267,11 +267,8 @@ export default class PokemonSpecies extends PokemonSpeciesForm {
|
||||
|
||||
if (noEvolutionChance === 1 || Math.random() < noEvolutionChance)
|
||||
return this.speciesId;
|
||||
|
||||
if (evolutionPool.size === 1)
|
||||
return evolutionPool.values()[0];
|
||||
|
||||
const randValue = Math.random() * totalWeight;
|
||||
|
||||
const randValue = evolutionPool.size === 1 ? 0 : Math.random() * totalWeight;
|
||||
|
||||
for (let weight of evolutionPool.keys()) {
|
||||
if (randValue < weight)
|
||||
|
||||
Reference in new issue
Block a user