mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Rename MAX_POKEMON_NAME_SIZE to MAX_NAME_SIZE
in Pokemon
This commit is contained in:
@@ -115,7 +115,7 @@ class Pokemon
|
||||
# Max EVs that a single stat can have
|
||||
EV_STAT_LIMIT = 252
|
||||
# Maximum length a Pokémon's nickname can be
|
||||
MAX_POKEMON_NAME_SIZE = 10
|
||||
MAX_NAME_SIZE = 10
|
||||
|
||||
#=============================================================================
|
||||
# Ownership, obtained information
|
||||
|
||||
@@ -54,7 +54,7 @@ def pbPurify(pokemon,scene)
|
||||
speciesname = PBSpecies.getName(pokemon.species)
|
||||
if scene.pbConfirm(_INTL("Would you like to give a nickname to {1}?",speciesname))
|
||||
newname = pbEnterPokemonName(_INTL("{1}'s nickname?",speciesname),
|
||||
0, Pokemon::MAX_POKEMON_NAME_SIZE, "", pokemon)
|
||||
0, Pokemon::MAX_NAME_SIZE, "", pokemon)
|
||||
pokemon.name = newname if newname!=""
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,6 +8,11 @@ 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.
|
||||
|
||||
Reference in New Issue
Block a user