randomizer - wild Pokémon

This commit is contained in:
infinitefusion
2022-04-30 23:27:05 -04:00
parent 2a76ee27e9
commit dd05aa1f1c
13 changed files with 158 additions and 47 deletions

View File

@@ -107,13 +107,15 @@ def pbPokeRadarCancel
$PokemonTemp.pokeradar = nil
end
def listPokemonInCurrentRoute(encounterType, onlySeen = false, onlyUnseen = false)
return [] if encounterType == nil
processed = []
seen = []
unseen = []
for encounter in $PokemonEncounters.listPossibleEncounters(encounterType)
species = encounter[1]
species = $game_switches[SWITCH_RANDOM_WILD] ? getRandomizedTo(encounter[1]) : encounter[1]
if !processed.include?(species)
if $Trainer.seen?(species)
seen << species