Correct regeneration amount - 1/2 heart per cycle

This commit is contained in:
Brandon 2020-06-18 19:44:29 -04:00
parent 3ab5035312
commit 38a4e6ed89

View file

@ -77,7 +77,7 @@ function mcl_potions.regeneration_func(player, factor, duration)
for i=1,math.floor(duration/factor) do
minetest.after(i*factor, function()
if player:get_hp() < 20 then
player:set_hp(player:get_hp() + 0.5)
player:set_hp(player:get_hp() + 1)
end
end )
end