mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Renamed variables and methods relating to the Bag, renamed $PokemonBag to $Bag, $bag.has? can now check for a minimum quantity
This commit is contained in:
@@ -1873,7 +1873,7 @@ class PokemonStorageScreen
|
||||
if pokemon.item
|
||||
itemname = pokemon.item.name
|
||||
if pbConfirm(_INTL("Take this {1}?",itemname))
|
||||
if !$PokemonBag.pbStoreItem(pokemon.item)
|
||||
if !$bag.add(pokemon.item)
|
||||
pbDisplay(_INTL("Can't store the {1}.",itemname))
|
||||
else
|
||||
pbDisplay(_INTL("Took the {1}.",itemname))
|
||||
@@ -1882,11 +1882,11 @@ class PokemonStorageScreen
|
||||
end
|
||||
end
|
||||
else
|
||||
item = scene.pbChooseItem($PokemonBag)
|
||||
item = scene.pbChooseItem($bag)
|
||||
if item
|
||||
itemname = GameData::Item.get(item).name
|
||||
pokemon.item = item
|
||||
$PokemonBag.pbDeleteItem(item)
|
||||
$bag.remove(item)
|
||||
pbDisplay(_INTL("{1} is now being held.",itemname))
|
||||
@scene.pbHardRefresh
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user