randomizer - gym trainers

This commit is contained in:
infinitefusion
2022-05-01 13:51:59 -04:00
parent 2365dfeb51
commit 089975984e
11 changed files with 192 additions and 57 deletions

View File

@@ -204,6 +204,17 @@ module GameData
return @id_number > Settings::NB_POKEMON
end
def hasType?(type)
type = GameData::Type.get(type).id
return self.types.include?(type)
end
def types
types = [@type1]
types << @type2 if @type2 && @type2 != @type1
return types
end
def apply_metrics_to_sprite(sprite, index, shadow = false)
if shadow
if (index & 1) == 1 # Foe Pokémon