fixes nickname length not being the same everywhere

This commit is contained in:
infinitefusion
2022-07-21 11:13:33 -04:00
parent 5b4ee681d6
commit 521b2a5078
3 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,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_NAME_SIZE = 10
MAX_NAME_SIZE = 16
# Maximum number of moves a Pokémon can know at once
MAX_MOVES = 4

View File

@@ -1165,7 +1165,7 @@ class PokemonPartyScreen
break
# Rename
elsif cmd == 0
newname = pbEnterPokemonName(_INTL("{1}'s nickname?", speciesname), 0, 16, "", pkmn)
newname = pbEnterPokemonName(_INTL("{1}'s nickname?", speciesname), 0, Pokemon::MAX_NAME_SIZE, "", pkmn)
pkmn.name = (newname == "") ? speciesname : newname
pbRefreshSingle(pkmnid)
# Erase name

Binary file not shown.