mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
Implemented usage of GameData::Item
This commit is contained in:
@@ -388,7 +388,7 @@ end
|
||||
|
||||
|
||||
def pbSlotMachine(difficulty=1)
|
||||
if hasConst?(PBItems,:COINCASE) && !$PokemonBag.pbHasItem?(:COINCASE)
|
||||
if GameData::Item.exists?(:COINCASE) && !$PokemonBag.pbHasItem?(:COINCASE)
|
||||
pbMessage(_INTL("It's a Slot Machine."))
|
||||
elsif $PokemonGlobal.coins==0
|
||||
pbMessage(_INTL("You don't have any Coins to play!"))
|
||||
|
||||
Reference in New Issue
Block a user