mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Removed deprecated methods
This commit is contained in:
@@ -323,18 +323,6 @@ class Pokemon
|
||||
return species_data.types.clone
|
||||
end
|
||||
|
||||
# @deprecated This method is slated to be removed in v22.
|
||||
def type1
|
||||
Deprecation.warn_method("type1", "v22", "pkmn.types")
|
||||
return types[0]
|
||||
end
|
||||
|
||||
# @deprecated This method is slated to be removed in v22.
|
||||
def type2
|
||||
Deprecation.warn_method("type2", "v22", "pkmn.types")
|
||||
return types[1] || types[0]
|
||||
end
|
||||
|
||||
# @param type [Symbol, String, GameData::Type] type to check
|
||||
# @return [Boolean] whether this Pokémon has the specified type
|
||||
def hasType?(type)
|
||||
|
||||
@@ -63,12 +63,6 @@ class Pokemon
|
||||
def description; return GameData::Move.get(@id).description; end
|
||||
def hidden_move?; return GameData::Move.get(@id).hidden_move?; end
|
||||
|
||||
# @deprecated This method is slated to be removed in v22.
|
||||
def base_damage
|
||||
Deprecation.warn_method("base_damage", "v22", "power")
|
||||
return @power
|
||||
end
|
||||
|
||||
def display_type(pkmn); return GameData::Move.get(@id).display_type(pkmn, self); end
|
||||
def display_category(pkmn); return GameData::Move.get(@id).display_category(pkmn, self); end
|
||||
def display_damage(pkmn); return GameData::Move.get(@id).display_damage(pkmn, self); end
|
||||
|
||||
Reference in New Issue
Block a user