forked from MineClone5/MineClone5
Heal trader for unlocking trades
This commit is contained in:
parent
3e8ca5a1ca
commit
ed52e49408
|
@ -853,6 +853,9 @@ local trade_inventory = {
|
|||
trades[t].locked = false
|
||||
trades[t].trade_counter = 0
|
||||
end
|
||||
-- Also heal trader for unlocking stuff
|
||||
-- TODO: Replace by Regeneration I
|
||||
trader.health = math.min(trader.hp_max, trader.health + 4)
|
||||
end
|
||||
trade.trade_counter = trade.trade_counter + 1
|
||||
if trade.trade_counter >= 12 then
|
||||
|
|
Loading…
Reference in New Issue