mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Moved Gen 8 item code to its proper places
This commit is contained in:
@@ -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
|
||||
#===============================================================================
|
||||
|
||||
Reference in New Issue
Block a user