From 3097be4efbbcf1ea5b23aa41a0d5b77ee8734183 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 5 Jan 2023 04:40:18 +0000 Subject: shop2 --- shop2.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shop2.lua') 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) -- cgit v1.2.3