mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 19:02:26 +01:00
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
Block a user