From 787027e2391b9d5b9bb81638007a1dd8e799064c Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Mon, 6 Sep 2010 08:24:52 +0000 Subject: [PATCH] Jeweler correctly deducts his fee when making a ring git-svn-id: http://svn.net-core.org/repos/t-engine4@1155 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/data/chats/jewelry-store.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game/modules/tome/data/chats/jewelry-store.lua b/game/modules/tome/data/chats/jewelry-store.lua index 96fb259148..4308163e1a 100644 --- a/game/modules/tome/data/chats/jewelry-store.lua +++ b/game/modules/tome/data/chats/jewelry-store.lua @@ -24,6 +24,7 @@ local imbue_ring = function(npc, player) if price > player.money then require("engine.Dialog"):simplePopup("Not enough money", "This costs "..price.." gold, you need more gold.") return end require("engine.Dialog"):yesnoPopup("Imbue cost", "This will cost you "..price.." gold, do you accept?", function(ret) if ret then + player.money = player.money - price player:removeObject(player:getInven("INVEN"), gem_item) ring.wielder = ring.wielder or {} table.mergeAdd(ring.wielder, gem.imbue_powers, true) @@ -44,6 +45,7 @@ local artifact_imbue_ring = function(npc, player) if price > player.money then require("engine.Dialog"):simplePopup("Not enough money", "Limmir needs more gold for the magical plating.") return end require("engine.Dialog"):yesnoPopup("Imbue cost", "You need to use "..price.." gold for the plating, do you accept?", function(ret) if ret then + player.money = player.money - price local gem3 = game.zone:makeEntity(game.level, "object", {type="gem"}, nil, true) print("Imbue third gem", gem3.name) -- GitLab