various fixes

This commit is contained in:
infinitefusion
2021-11-20 12:39:41 -05:00
parent fc5a71b46f
commit 383734a497
36 changed files with 92 additions and 25 deletions

View File

@@ -358,6 +358,17 @@ class PokemonEncounters
level = rand(encounter[2]..encounter[3])
return [encounter[1], level]
end
def listPossibleEncounters(enctype)
if !enctype
raise ArgumentError.new(_INTL("Encounter type out of range"))
end
return @encounter_tables[enctype]
end
end