summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)