Removed deprecated methods

This commit is contained in:
Maruno17
2024-06-27 21:37:00 +01:00
parent 509a414f37
commit 6cc07d1c7a
12 changed files with 1 additions and 866 deletions

View File

@@ -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)

View File

@@ -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