mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
Removed deprecated code, renamed "base_damage"/"baseDamage"/"baseDmg" to "power"
This commit is contained in:
@@ -314,15 +314,15 @@ class Pokemon
|
||||
return species_data.types.clone
|
||||
end
|
||||
|
||||
# @deprecated This method is slated to be removed in v21.
|
||||
# @deprecated This method is slated to be removed in v22.
|
||||
def type1
|
||||
Deprecation.warn_method("type1", "v21", "pkmn.types")
|
||||
Deprecation.warn_method("type1", "v22", "pkmn.types")
|
||||
return types[0]
|
||||
end
|
||||
|
||||
# @deprecated This method is slated to be removed in v21.
|
||||
# @deprecated This method is slated to be removed in v22.
|
||||
def type2
|
||||
Deprecation.warn_method("type2", "v21", "pkmn.types")
|
||||
Deprecation.warn_method("type2", "v22", "pkmn.types")
|
||||
return types[1] || types[0]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user