Refactored summary screen code

This commit is contained in:
Maruno17
2024-08-24 22:14:29 +01:00
parent 45127be5b6
commit 273e1bb565
6 changed files with 573 additions and 382 deletions

View File

@@ -780,6 +780,7 @@ end
# Give an item to a Pokémon to hold, and take a held item from a Pokémon.
#===============================================================================
def pbGiveItemToPokemon(item, pkmn, scene, pkmnid = 0)
return false if item.nil?
newitemname = GameData::Item.get(item).portion_name
if pkmn.egg?
scene.pbDisplay(_INTL("Eggs can't hold items."))