Added egg move sharing in Day Care, added some Settings for Day Care/Nursery mechanics, Neutralizing Gas now triggers held items if it negates Unnerve, Imposter now only triggers when the Pokémon enters battle

This commit is contained in:
Maruno17
2021-12-07 22:48:15 +00:00
parent a858408951
commit 6b841b78d3
6 changed files with 130 additions and 60 deletions

View File

@@ -295,6 +295,15 @@ module GameData
return other_family.include?(@id)
end
# If this species doesn't have egg moves, looks at prevolutions one at a
# time and returns theirs instead.
def get_egg_moves
return @egg_moves if !@egg_moves.empty?
prevo = get_previous_species
return GameData::Species.get_species_form(prevo, @form).get_egg_moves if prevo != @species
return @egg_moves
end
def family_evolutions_have_method?(check_method, check_param = nil)
sp = self.get_baby_species
evos = GameData::Species.get(sp).get_family_evolutions