mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Added Gen 9 forms code, evolution code, some item effects
This commit is contained in:
@@ -244,7 +244,8 @@ module GameData
|
||||
:KYOGRE => [:BLUEORB],
|
||||
:GROUDON => [:REDORB],
|
||||
:ZACIAN => [:RUSTEDSWORD],
|
||||
:ZAMAZENTA => [:RUSTEDSHIELD]
|
||||
:ZAMAZENTA => [:RUSTEDSHIELD],
|
||||
:OGERPON => [:WELLSPRINGMASK, :HEARTHFLAMEMASK, :CORNERSTONEMASK]
|
||||
}
|
||||
return combos[species]&.include?(@id)
|
||||
end
|
||||
|
||||
@@ -166,6 +166,10 @@ module GameData
|
||||
DATA.each_value { |species| yield species if species.form == 0 }
|
||||
end
|
||||
|
||||
def self.each_form_for_species(species)
|
||||
DATA.each_value { |species| yield species if species.species == species }
|
||||
end
|
||||
|
||||
def self.species_count
|
||||
ret = 0
|
||||
self.each_species { |species| ret += 1 }
|
||||
@@ -381,7 +385,9 @@ module GameData
|
||||
return 1 if !prevo_data.incense.nil?
|
||||
prevo_min_level = prevo_data.minimum_level
|
||||
evo_method_data = GameData::Evolution.get(evo[1])
|
||||
return prevo_min_level if evo_method_data.level_up_proc.nil? && evo_method_data.id != :Shedinja
|
||||
return prevo_min_level if evo_method_data.level_up_proc.nil? &&
|
||||
evo_method_data.battle_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
|
||||
|
||||
Reference in New Issue
Block a user