mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
Heal trader for unlocking trades
This commit is contained in:
parent
3e8ca5a1ca
commit
ed52e49408
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue