forked from VoxeLibre/VoxeLibre
Make health regen from food not almost instant to balance spam eating
This came from testing the new mob combat balance that I noticed I can spam eat food and regen very quickly. This health regen time change is actually the same as Minecraft. "Whenever a player's hunger is 18 (🍗 × 9) or higher, they regenerate 1♥ every 4 seconds." https://minecraft.wiki/w/Healing
This commit is contained in:
parent
b2da2b2f63
commit
98a61ec0be
|
@ -173,7 +173,7 @@ minetest.register_globalstep(function(dtime)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif food_tick_timer > 0.5 and food_level == 20 and food_saturation_level > 0 then -- fast regeneration
|
elseif food_tick_timer > 4 and food_level == 20 and food_saturation_level > 0 then -- fast regeneration
|
||||||
if player_health > 0 and player_health < 20 then
|
if player_health > 0 and player_health < 20 then
|
||||||
food_tick_timer = 0
|
food_tick_timer = 0
|
||||||
player:set_hp(player_health+1)
|
player:set_hp(player_health+1)
|
||||||
|
|
Loading…
Reference in New Issue