mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 22:54:59 +00:00
Moved Poké Radar encounters into encounters.txt, added Setting/map metadata for reflection rippling, fixed def minimum_level, fixed ice/waterfalls forcing movement even when holding Ctrl in Debug mode, Pokédex no longer shows genders for species without gender differences
This commit is contained in:
@@ -304,7 +304,7 @@ module GameData
|
||||
ret = @species
|
||||
return ret if @evolutions.length == 0
|
||||
@evolutions.each do |evo|
|
||||
next if !evo[3] # Not the prevolution
|
||||
next if !evo[3] # Check only the prevolution
|
||||
if check_items
|
||||
incense = GameData::Species.get(evo[0]).incense
|
||||
ret = evo[0] if !incense || item1 == incense || item2 == incense
|
||||
@@ -374,11 +374,14 @@ module GameData
|
||||
def minimum_level
|
||||
return 1 if @evolutions.length == 0
|
||||
@evolutions.each do |evo|
|
||||
next if !evo[3] # Not the prevolution
|
||||
next if !evo[3] # Check only the prevolution
|
||||
prevo_data = GameData::Species.get_species_form(evo[0], base_form)
|
||||
return 1 if !prevo_data.incense.nil?
|
||||
prevo_min_level = prevo_data.minimum_level
|
||||
evo_method_data = GameData::Evolution.get(evo[1])
|
||||
next if evo_method_data.level_up_proc.nil?
|
||||
min_level = evo_method_data.minimum_level
|
||||
return (min_level == 0) ? evo[2] : min_level + 1
|
||||
return prevo_min_level if evo_method_data.level_up_proc.nil? && evo_method_data.id != :Shedinja
|
||||
any_level_up = evo_method_data.any_level_up
|
||||
return (any_level_up) ? prevo_min_level + 1 : evo[2]
|
||||
end
|
||||
return 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user