Give Nicknames (#142)

* Option: Give Nicknames
This commit is contained in:
Nathan-MV
2021-12-19 18:08:31 -03:00
committed by GitHub
parent 7f86db6da9
commit db4acd3369
6 changed files with 53 additions and 30 deletions

View File

@@ -50,10 +50,12 @@ def pbPurify(pkmn, scene)
pkmn.exp = newexp
end
end
if scene.pbConfirm(_INTL("Would you like to give a nickname to {1}?", pkmn.speciesName))
newname = pbEnterPokemonName(_INTL("{1}'s nickname?", pkmn.speciesName),
0, Pokemon::MAX_NAME_SIZE, "", pkmn)
pkmn.name = newname
if $PokemonSystem.givenicknames == 0
if scene.pbConfirm(_INTL("Would you like to give a nickname to {1}?", pkmn.speciesName))
newname = pbEnterPokemonName(_INTL("{1}'s nickname?", pkmn.speciesName),
0, Pokemon::MAX_NAME_SIZE, "", pkmn)
pkmn.name = newname
end
end
end