mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 14:01:07 +01:00
Correct regeneration amount - 1/2 heart per cycle
This commit is contained in:
parent
3ab5035312
commit
38a4e6ed89
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ function mcl_potions.regeneration_func(player, factor, duration)
|
||||||
for i=1,math.floor(duration/factor) do
|
for i=1,math.floor(duration/factor) do
|
||||||
minetest.after(i*factor, function()
|
minetest.after(i*factor, function()
|
||||||
if player:get_hp() < 20 then
|
if player:get_hp() < 20 then
|
||||||
player:set_hp(player:get_hp() + 0.5)
|
player:set_hp(player:get_hp() + 1)
|
||||||
end
|
end
|
||||||
end )
|
end )
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue