mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2025-01-09 23:07:36 +01:00
shop use emerald as default currency
This commit is contained in:
parent
85abb002f6
commit
0f72456e68
@ -265,7 +265,7 @@ emeraldbank.set_vendor_settings = set_vendor_settings
|
|||||||
|
|
||||||
local function reset_vendor_settings(pos)
|
local function reset_vendor_settings(pos)
|
||||||
local settings_default = {
|
local settings_default = {
|
||||||
input_item = "", -- Don't change this unless you plan on setting this up to add this item to the inventories
|
input_item = "mcl_core:emerald", -- Don't change this unless you plan on setting this up to add this item to the inventories
|
||||||
output_item = "", -- Don't change this unless you plan on setting this up to add this item to the inventories
|
output_item = "", -- Don't change this unless you plan on setting this up to add this item to the inventories
|
||||||
input_item_qty = 1,
|
input_item_qty = 1,
|
||||||
output_item_qty = 1,
|
output_item_qty = 1,
|
||||||
@ -803,8 +803,8 @@ local function get_vendor_settings_fs(pos)
|
|||||||
local fields =
|
local fields =
|
||||||
"field[2.2,0.8;1,0.6;input_item_qty;;"..settings.input_item_qty.."]"..
|
"field[2.2,0.8;1,0.6;input_item_qty;;"..settings.input_item_qty.."]"..
|
||||||
"field[6.2,0.8;1,0.6;output_item_qty;;"..settings.output_item_qty.."]"..
|
"field[6.2,0.8;1,0.6;output_item_qty;;"..settings.output_item_qty.."]"..
|
||||||
"field[1.3,4.1;2.66,1;co_sellers;Co-Sellers:;"..settings.co_sellers.."]"..
|
"field[1.3,4.1;2.66,1;co_sellers;"..S("Co-Sellers:")..";"..settings.co_sellers.."]"..
|
||||||
"field[3.86,4.1;2.66,1;banned_buyers;Banned Buyers:;"..settings.banned_buyers.."]"..
|
"field[3.86,4.1;2.66,1;banned_buyers;"..S("Banned Buyers:")..";"..settings.banned_buyers.."]"..
|
||||||
"field_close_on_enter[input_item_qty;false]"..
|
"field_close_on_enter[input_item_qty;false]"..
|
||||||
"field_close_on_enter[output_item_qty;false]"..
|
"field_close_on_enter[output_item_qty;false]"..
|
||||||
"field_close_on_enter[co_sellers;false]"..
|
"field_close_on_enter[co_sellers;false]"..
|
||||||
@ -1248,6 +1248,7 @@ local vendor_template = {
|
|||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
inv:set_size("main", 15*6)
|
inv:set_size("main", 15*6)
|
||||||
inv:set_size("wanted_item", 1*1)
|
inv:set_size("wanted_item", 1*1)
|
||||||
|
inv:add_item("wanted_item", {name = "mcl_core:emerald"})
|
||||||
inv:set_size("given_item", 1*1)
|
inv:set_size("given_item", 1*1)
|
||||||
reset_vendor_settings(pos)
|
reset_vendor_settings(pos)
|
||||||
meta:set_string("log", "")
|
meta:set_string("log", "")
|
||||||
|
Loading…
Reference in New Issue
Block a user