Rename MAX_POKEMON_NAME_SIZE to MAX_NAME_SIZE

in Pokemon
This commit is contained in:
Joni Savolainen
2020-09-20 21:25:39 +03:00
parent 61ad59afa6
commit 1b7ec64d98
9 changed files with 18 additions and 13 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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.