randomizer - static pokemon

This commit is contained in:
infinitefusion
2022-05-01 15:57:29 -04:00
parent 68d0e24ef4
commit bd3c4d05ea
8 changed files with 6 additions and 3 deletions

View File

@@ -331,7 +331,11 @@ end
#===============================================================================
# Used when walking in tall grass, hence the additional code.
def pbWildBattle(species, level, outcomeVar=1, canRun=true, canLose=false)
species = GameData::Species.get(species).id
if $game_switches[SWITCH_RANDOM_STATIC_ENCOUNTERS]
species = $PokemonGlobal.psuedoBSTHash[dexNum(species)]
else
species = GameData::Species.get(species).id
end
# Potentially call a different pbWildBattle-type method instead (for roaming
# Pokémon, Safari battles, Bug Contest battles)
handled = [nil]