summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-01-05 04:40:18 +0000
committerubq323 <ubq323@ubq323.website>2023-01-05 04:40:18 +0000
commit3097be4efbbcf1ea5b23aa41a0d5b77ee8734183 (patch)
tree795007fe18e490c28da7be5dd094e0706299a0ce
parent99afb57b6c1aee8c9cd6c17d48e4c41f788fe08f (diff)
shop2
-rw-r--r--shop2.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/shop2.lua b/shop2.lua
index ab6dd5b..e2ed212 100644
--- a/shop2.lua
+++ b/shop2.lua
@@ -54,7 +54,10 @@ local function take_stock()
end
local function item_desc_matches(idesc,itemdetail)
- return itemdesc.itname == itemdetail.name
+ -- idesc is an entry from ITEMS
+ -- itemdetail is something returned from getItemDetail on the chest
+ -- if you were wondering
+ return idesc.itname == itemdetail.name
end
local function stock_amt(stockinfo,idesc)