Moved Gen 8 item code to its proper places

This commit is contained in:
Maruno17
2021-09-19 23:14:24 +01:00
parent d4abc6ef2b
commit 4edd06208a
5 changed files with 432 additions and 429 deletions

View File

@@ -407,6 +407,25 @@ def pbRaiseHappinessAndLowerEV(pkmn,scene,stat,messages)
return true
end
#===============================================================================
# Change nature
#===============================================================================
def pbNatureChangingMint(new_nature, item, pkmn, scene)
if pkmn.nature_for_stats == new_nature
scene.pbDisplay(_INTL("It won't have any effect."))
return false
end
if !scene.pbConfirm(_INTL("It might affect {1}'s stats. Are you sure you want to use it?", pkmn.name))
return false
end
pkmn.nature_for_stats = new_nature
pkmn.calc_stats
scene.pbRefresh
scene.pbDisplay(_INTL("{1}'s stats may have changed due to the effects of the {2}!",
pkmn.name, GameData::Item.get(item).name))
return true
end
#===============================================================================
# Battle items
#===============================================================================