From 521b2a5078482a269023cb3a6482992a6a45687d Mon Sep 17 00:00:00 2001 From: infinitefusion Date: Thu, 21 Jul 2022 11:13:33 -0400 Subject: [PATCH] fixes nickname length not being the same everywhere --- Data/Scripts/014_Pokemon/001_Pokemon.rb | 2 +- Data/Scripts/016_UI/005_UI_Party.rb | 2 +- Data/System.rxdata | Bin 27257 -> 27257 bytes 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Data/Scripts/014_Pokemon/001_Pokemon.rb b/Data/Scripts/014_Pokemon/001_Pokemon.rb index 7bc4e0912..d611c0689 100644 --- a/Data/Scripts/014_Pokemon/001_Pokemon.rb +++ b/Data/Scripts/014_Pokemon/001_Pokemon.rb @@ -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 diff --git a/Data/Scripts/016_UI/005_UI_Party.rb b/Data/Scripts/016_UI/005_UI_Party.rb index e06877790..d87e2aeeb 100644 --- a/Data/Scripts/016_UI/005_UI_Party.rb +++ b/Data/Scripts/016_UI/005_UI_Party.rb @@ -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 diff --git a/Data/System.rxdata b/Data/System.rxdata index ca6d89068e3e9caabf241ee088d8e2be8f357618..59da7fd3686602a64a901578de3d877854248a86 100644 GIT binary patch delta 19 bcmex)h4JSV#tj_eEV<1;m^Sl>=LQ1+Tj&Sy delta 19 acmex)h4JSV#tj_eEXEwtjGKAHbAtg-^#)x4