mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Implemented GameData BagPocket
This commit is contained in:
@@ -706,7 +706,7 @@ def pbItemBall(item, quantity = 1)
|
||||
pbMessage("\\me[#{meName}]" + _INTL("You found a \\c[1]{1}\\c[0]!", itemname) + "\\wtnp[40]")
|
||||
end
|
||||
pbMessage(_INTL("You put the {1} in\nyour Bag's <icon=bagPocket{2}>\\c[1]{3}\\c[0] pocket.",
|
||||
itemname, pocket, PokemonBag.pocket_names[pocket - 1]))
|
||||
itemname, pocket, GameData::BagPocket.get(pocket).name))
|
||||
return true
|
||||
end
|
||||
# Can't add the item
|
||||
@@ -756,7 +756,7 @@ def pbReceiveItem(item, quantity = 1)
|
||||
end
|
||||
if $bag.add(item, quantity) # If item can be added
|
||||
pbMessage(_INTL("You put the {1} in\nyour Bag's <icon=bagPocket{2}>\\c[1]{3}\\c[0] pocket.",
|
||||
itemname, pocket, PokemonBag.pocket_names[pocket - 1]))
|
||||
itemname, pocket, GameData::BagPocket.get(pocket).name))
|
||||
return true
|
||||
end
|
||||
return false # Can't add the item
|
||||
@@ -772,6 +772,6 @@ def pbBuyPrize(item, quantity = 1)
|
||||
pocket = item.pocket
|
||||
return false if !$bag.add(item, quantity)
|
||||
pbMessage("\\CN" + _INTL("You put the {1} in\nyour Bag's <icon=bagPocket{2}>\\c[1]{3}\\c[0] pocket.",
|
||||
item_name, pocket, PokemonBag.pocket_names[pocket - 1]))
|
||||
item_name, pocket, GameData::BagPocket.get(pocket).name))
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user