Add Smacker bank note, Prevent Shop Banach-Tarski
This commit is contained in:
parent
8305e5970f
commit
32a6dd0e58
@ -35,6 +35,7 @@ end
|
||||
|
||||
register_comm_currency("minegeld_1000_gabriel", "1000 MineGeld Note, Featuring Gabriel")
|
||||
register_comm_currency("minegeld_1000_nadine", "1000 MineGeld Note, Featuring Nadine")
|
||||
register_comm_currency("minegeld_1000_smacker", "1000 MineGeld Note, Featuring Smacker")
|
||||
register_comm_currency("minegeld_1000_och_noe", "1000 MineGeld Note, Featuring Och Nö")
|
||||
register_comm_currency("minegeld_1000_melinka", "1000 MineGeld Note, Featuring Melinka Town")
|
||||
register_comm_currency("minegeld_1000_mese_miracle", "1000 MineGeld Note, Featuring Mese Fairy Miracle")
|
||||
|
9
shop.lua
9
shop.lua
@ -195,13 +195,14 @@ minetest.register_on_player_receive_fields(function(sender, formname, fields)
|
||||
end
|
||||
end
|
||||
if can_exchange then
|
||||
local it
|
||||
for i, item in pairs(wants) do
|
||||
pinv:remove_item("customer_gives",item)
|
||||
minv:add_item("customers_gave",item)
|
||||
it = pinv:remove_item("customer_gives",item)
|
||||
minv:add_item("customers_gave",it)
|
||||
end
|
||||
for i, item in pairs(gives) do
|
||||
minv:remove_item("stock",item)
|
||||
pinv:add_item("customer_gets",item)
|
||||
it = minv:remove_item("stock",item)
|
||||
pinv:add_item("customer_gets",it)
|
||||
end
|
||||
minetest.chat_send_player(name,S("Exchanged!"))
|
||||
else
|
||||
|
BIN
textures/minegeld_1000_smacker.png
Normal file
BIN
textures/minegeld_1000_smacker.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
Loading…
x
Reference in New Issue
Block a user