1
0
Fork 0

Heal trader for unlocking trades

This commit is contained in:
Wuzzy 2018-06-10 13:20:19 +02:00
parent 3e8ca5a1ca
commit ed52e49408
1 changed files with 3 additions and 0 deletions

View File

@ -853,6 +853,9 @@ local trade_inventory = {
trades[t].locked = false trades[t].locked = false
trades[t].trade_counter = 0 trades[t].trade_counter = 0
end end
-- Also heal trader for unlocking stuff
-- TODO: Replace by Regeneration I
trader.health = math.min(trader.hp_max, trader.health + 4)
end end
trade.trade_counter = trade.trade_counter + 1 trade.trade_counter = trade.trade_counter + 1
if trade.trade_counter >= 12 then if trade.trade_counter >= 12 then