summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shop2/disp.lua4
-rw-r--r--shop2/items.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/shop2/disp.lua b/shop2/disp.lua
index 8dcee89..58389a0 100644
--- a/shop2/disp.lua
+++ b/shop2/disp.lua
@@ -59,8 +59,8 @@ local function disp_shopscreen(items)
{1,2}, colors.lightGray, "Stock Price Adr. Name",
}
- local function fmt_row(y, idesc, amt, colour)
- colour = colour or colors.cyan
+ local function fmt_row(y, idesc, amt)
+ colour = idesc.colour or colors.white
printseq(mon) {
{1,y}, colors.white, pad(amt,5),
{8,y}, colors.yellow, pad(idesc.price,3), colors.lightGray, "kst",
diff --git a/shop2/items.lua b/shop2/items.lua
index 20e8a93..d110a67 100644
--- a/shop2/items.lua
+++ b/shop2/items.lua
@@ -1,6 +1,6 @@
local items = {}
-local function i(adr,itname,hname,price)
- items[adr]={itname=itname,hname=hname,price=price,adr=adr}
+local function i(adr,itname,hname,price,colour)
+ items[adr]={itname=itname,hname=hname,price=price,adr=adr,colour=colour or colors.white}
end
i("dmn","minecraft:diamond","Diamond",5)
i("blz","minecraft:blaze_rod","Blaze Rod",10)