mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 06:04:59 +00:00
Initial testing of deprecation
This commit is contained in:
@@ -12,14 +12,17 @@ PokeBattle_Pokemon = Pokemon
|
||||
class Pokemon
|
||||
# @deprecated Use {MAX_NAME_SIZE} instead. This alias is slated to be removed in vXX.
|
||||
MAX_POKEMON_NAME_SIZE = MAX_NAME_SIZE
|
||||
|
||||
deprecated_instance_method_alias :publicID, :public_id, 'vXX'
|
||||
deprecated_instance_method_alias :isForeign?, :foreign?, 'vXX'
|
||||
end
|
||||
|
||||
# (see Pokemon#initialize)
|
||||
# @deprecated Use +Pokemon.new+ instead. This method and its aliases are
|
||||
# slated to be removed in vXX.
|
||||
def pbNewPkmn(species, level, owner = $Trainer, withMoves = true)
|
||||
Kernel.echoln("WARN: pbNewPkmn and its aliases are deprecated and slated to be removed in Essentials vXX")
|
||||
Deprecation.warn_method('pbNewPkmn', 'vXX', 'Pokemon.new')
|
||||
return Pokemon.new(species, level, owner, withMoves)
|
||||
end
|
||||
alias pbGenPkmn pbNewPkmn
|
||||
alias pbGenPoke pbNewPkmn
|
||||
alias pbGenPoke pbNewPkmn
|
||||
|
||||
Reference in New Issue
Block a user