diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-03-06 00:49:07 +0100 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-03-06 00:49:07 +0100 |
commit | 32a6dd0e587a8db860f6889807b238924bc0fda1 (patch) | |
tree | 5cd8368adc951761df1956b7129d8a7595a01992 | |
parent | 8305e5970f3c74d7b132f73443df0b083a15d7ef (diff) | |
download | currency-32a6dd0e587a8db860f6889807b238924bc0fda1.tar.gz currency-32a6dd0e587a8db860f6889807b238924bc0fda1.tar.bz2 currency-32a6dd0e587a8db860f6889807b238924bc0fda1.zip |
Add Smacker bank note, Prevent Shop Banach-Tarski
-rw-r--r-- | craftitems.lua | 1 | ||||
-rw-r--r-- | shop.lua | 9 | ||||
-rw-r--r-- | textures/minegeld_1000_smacker.png | bin | 0 -> 3319 bytes |
3 files changed, 6 insertions, 4 deletions
diff --git a/craftitems.lua b/craftitems.lua index 02b6e54..c9d4f76 100644 --- a/craftitems.lua +++ b/craftitems.lua @@ -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")
@@ -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
diff --git a/textures/minegeld_1000_smacker.png b/textures/minegeld_1000_smacker.png Binary files differnew file mode 100644 index 0000000..014c1b5 --- /dev/null +++ b/textures/minegeld_1000_smacker.png |