Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bitchange
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
bitchange
Commits
2d36903f
Commit
2d36903f
authored
11 years ago
by
SmallJoker
Browse files
Options
Downloads
Patches
Plain Diff
Small bugfix
parent
c0f291ec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bank_currency.lua
+4
-4
4 additions, 4 deletions
bank_currency.lua
with
4 additions
and
4 deletions
bank_currency.lua
+
4
−
4
View file @
2d36903f
...
...
@@ -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
,
})
\ No newline at end of file
})
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment