From b55fa396fbed0f43fd4fbd664ac9b0b69829a463 Mon Sep 17 00:00:00 2001 From: BrunoMine Date: Sun, 22 Jul 2018 22:30:51 -0300 Subject: [PATCH] =?UTF-8?q?corre=C3=A7=C3=A3o=20da=20loja=20de=20premios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mods_suportados/minetest_game.lua | 3 +-- shop.lua | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mods_suportados/minetest_game.lua b/mods_suportados/minetest_game.lua index 01e1820..981bbca 100644 --- a/mods_suportados/minetest_game.lua +++ b/mods_suportados/minetest_game.lua @@ -101,8 +101,7 @@ for _,dados in ipairs({ {name=nil, item="default:mese_crystal", qtd=3, custo=180}, {name=nil, item="default:diamond", qtd=3, custo=250}, {name=nil, item="default:gold_ingot", qtd=5, custo=400}, - {name=nil, item="default:steel_ingot", qtd=10, custo=300}, - {name=nil, item="default:steel_ingot", qtd=10, custo=200}, + {name=nil, item="default:steel_ingot", qtd=10, custo=250}, {name=nil, item="default:coal_lump", qtd=30, custo=100}, {name=nil, item="default:brick", qtd=30, custo=180}, {name=nil, item="default:clay", qtd=40, custo=180}, diff --git a/shop.lua b/shop.lua index c330364..c0288d7 100644 --- a/shop.lua +++ b/shop.lua @@ -111,6 +111,10 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) else player:set_attribute("xpro_xp_gasto", (xp_gasto+escolha.custo)) xpro.acessar_shop(name, minetest.colorize("#0C0", S("Adiquirido"))) + -- Limpa o inventario para exibir novo cash disponivel + if sfinv then + sfinv.set_player_inventory_formspec(minetest.get_player_by_name(name)) + end end end end