More WIP 5.1 stuff

This commit is contained in:
infinitefusion
2022-11-13 19:37:44 -05:00
parent 22fb1ac9a3
commit 4fcb68cba3
30 changed files with 108 additions and 12 deletions

View File

@@ -226,7 +226,7 @@ def pbPokeRadarGetEncounter(rarity = 0)
array.push(enc) if enc[0] == map && GameData::Species.exists?(enc[2])
end
# If there are any exclusives, first have a chance of encountering those
if array.length > 0
if array.length > 0 && listPokemonInCurrentRoute($PokemonEncounters.encounter_type, false, true).length==0
rnd = rand(100)
array.each do |enc|
rnd -= enc[1]