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

@@ -627,7 +627,7 @@ class TriadScreen
end
def pbQuantity(items,item)
return ItemStorageHelper.pbQuantity(items,$PokemonGlobal.triads.maxSize,item)
return ItemStorageHelper.pbQuantity(items, item)
end
def pbAdd(items,item)
@@ -635,8 +635,8 @@ class TriadScreen
$PokemonGlobal.triads.maxPerSlot,item,1)
end
def pbSubtract(items,item)
return ItemStorageHelper.pbDeleteItem(items,$PokemonGlobal.triads.maxSize,item,1)
def pbSubtract(items, item)
return ItemStorageHelper.pbDeleteItem(items, item, 1)
end
def flipBoard(x,y,attackerParam=nil,recurse=false)
@@ -1041,7 +1041,7 @@ class TriadStorage
end
def pbQuantity(item)
return ItemStorageHelper.pbQuantity(@items,self.maxSize,item)
return ItemStorageHelper.pbQuantity(@items, item)
end
def pbCanStore?(item,qty=1)
@@ -1052,8 +1052,8 @@ class TriadStorage
return ItemStorageHelper.pbStoreItem(@items,self.maxSize,self.maxPerSlot,item,qty)
end
def pbDeleteItem(item,qty=1)
return ItemStorageHelper.pbDeleteItem(@items,self.maxSize,item,qty)
def pbDeleteItem(item, qty = 1)
return ItemStorageHelper.pbDeleteItem(@items, item, qty)
end
end