mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-11 07:04:59 +00:00
Deprecate Pokemon#ot and Pokemon#ot=
This commit is contained in:
@@ -30,6 +30,18 @@ class Pokemon
|
||||
Deprecation.warn_method('Pokemon#trainerID=', 'vXX', 'Pokemon::Owner#id=')
|
||||
@owner.id = value
|
||||
end
|
||||
|
||||
# @deprecated Use {Owner#name} instead. This alias is slated to be removed in vXX.
|
||||
def ot
|
||||
Deprecation.warn_method('Pokemon#ot', 'vXX', 'Pokemon::Owner#name')
|
||||
return @owner.name
|
||||
end
|
||||
|
||||
# @deprecated Use {Owner#name=} instead. This alias is slated to be removed in vXX.
|
||||
def ot=(value)
|
||||
Deprecation.warn_method('Pokemon#ot=', 'vXX', 'Pokemon::Owner#name=')
|
||||
@owner.name = value
|
||||
end
|
||||
end
|
||||
|
||||
# (see Pokemon#initialize)
|
||||
|
||||
Reference in New Issue
Block a user