NPC: Force trade msg only on gold ingot

This commit is contained in:
Wuzzy 2019-08-29 17:04:51 +02:00
parent 45dd644e0c
commit 9778c591c6

View File

@ -190,7 +190,7 @@ for _, npc_type_table in pairs(npc_types) do
if not gold.trade(self.npc_trade, self.npc_type, clicker) then
if hp >= self.hp_max-7 then
if iname ~= "" then
if iname == "gold:ingot_gold" then
say_random("trade", name)
else
local r = math.random(1,3)