mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
26 lines
982 B
Ruby
26 lines
982 B
Ruby
#===============================================================================
|
|
# Deprecated classes, methods and constants for Pokémon.
|
|
# These will be removed in a future Essentials version.
|
|
#===============================================================================
|
|
|
|
# @deprecated Use {Pokemon} instead. PokeBattle_Pokemon has been turned into an alias
|
|
# and is slated to be removed in vXX.
|
|
class PokeBattle_Pokemon; end
|
|
|
|
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
|
|
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)
|
|
Deprecation.warn_method('pbNewPkmn', 'vXX', 'Pokemon.new')
|
|
return Pokemon.new(species, level, owner, withMoves)
|
|
end
|
|
alias pbGenPkmn pbNewPkmn
|
|
alias pbGenPoke pbNewPkmn
|