NPC: Force trade msg only on gold ingot
This commit is contained in:
parent
45dd644e0c
commit
9778c591c6
@ -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 not gold.trade(self.npc_trade, self.npc_type, clicker) then
|
||||||
if hp >= self.hp_max-7 then
|
if hp >= self.hp_max-7 then
|
||||||
if iname ~= "" then
|
if iname == "gold:ingot_gold" then
|
||||||
say_random("trade", name)
|
say_random("trade", name)
|
||||||
else
|
else
|
||||||
local r = math.random(1,3)
|
local r = math.random(1,3)
|
||||||
|
Loading…
Reference in New Issue
Block a user