mirror of
https://github.com/SmallJoker/bitchange.git
synced 2024-11-15 07:10:18 +01:00
Small bugfix
This commit is contained in:
parent
c0f291ecf3
commit
2d36903ffe
|
@ -3,7 +3,7 @@
|
|||
--License: WTFPL
|
||||
|
||||
local file_path = minetest.get_worldpath() .. "/bitchange_bank_currency"
|
||||
local exchange_worth = 8 -- default worth in "money" for 10 MineCoins, change if not okay
|
||||
local exchange_worth = 12 -- default worth in "money" for 10 MineCoins, change if not okay
|
||||
local bank = {}
|
||||
local changes_made = false
|
||||
|
||||
|
@ -52,7 +52,7 @@ local function get_bank_formspec(number, pos)
|
|||
"label[0,0;Bank]"..
|
||||
"label[2,0;(View reserve with (E) + (Right click))]"..
|
||||
"label[1,1;Current worth of a MineCoin:]"..
|
||||
"label[3,1.5;~ "..round(exchange_worth, 2).." MineGeld]"..
|
||||
"label[3,1.5;~ "..round(exchange_worth / 10, 2).." MineGeld]"..
|
||||
"button[2,3;3,1;sell10;Buy 10 MineCoins]"..
|
||||
"button[2,2;3,1;buy10;Sell 10 MineCoins]"..
|
||||
"list[current_player;main;0,4;8,4;]")
|
||||
|
@ -60,7 +60,7 @@ local function get_bank_formspec(number, pos)
|
|||
-- owner
|
||||
formspec = ("size[8,9;]"..
|
||||
"label[0,0;Bank]"..
|
||||
"label[1,0.5;Current MineCoin reserve: (Editable by owner)]"..
|
||||
"label[1,0.5;Current MineCoin and MineGelt reserve: (Editable by owner)]"..
|
||||
"list["..name..";coins;0,1;8,3;]"..
|
||||
"list[current_player;main;0,5;8,4;]")
|
||||
end
|
||||
|
@ -210,4 +210,4 @@ minetest.register_node("bitchange:bank", {
|
|||
end
|
||||
return 0
|
||||
end,
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user