mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2025-03-15 05:32:59 +01:00
default price, default count
This commit is contained in:
2
shop.lua
2
shop.lua
@ -128,6 +128,8 @@ core.register_node("emeraldbank:shop", {
|
||||
local meta = core.get_meta(pos)
|
||||
meta:set_string("infotext", S("Exchange shop (owned by @1)", owner))
|
||||
meta:set_string("owner", owner)
|
||||
meta:set_int("count", 10) -- default count
|
||||
meta:set_int("price", 5) -- default price
|
||||
core.get_node_timer(pos):start(shop_timer)
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("stock", stock_w*stock_h)
|
||||
|
Reference in New Issue
Block a user