Implemented usage of GameData::Item

This commit is contained in:
Maruno17
2020-11-08 22:45:59 +00:00
parent ff70791104
commit 1955d3698e
82 changed files with 1986 additions and 2195 deletions

View File

@@ -498,7 +498,7 @@ class MiningGameScene
revealeditems.dispose
for index in revealed
@items[index][3]=true
item=getConst(PBItems,ITEMS[@items[index][0]][0])
item=ITEMS[@items[index][0]][0]
@itemswon.push(item)
end
end
@@ -581,10 +581,10 @@ class MiningGameScene
for i in @itemswon
if $PokemonBag.pbStoreItem(i)
pbMessage(_INTL("One {1} was obtained.\\se[Mining item get]\\wtnp[30]",
PBItems.getName(i)))
GameData::Item.get(i).name))
else
pbMessage(_INTL("One {1} was found, but you have no room for it.",
PBItems.getName(i)))
GameData::Item.get(i).name))
end
end
end