Buffed saturation

This commit is contained in:
WillConker 2024-07-14 11:12:51 +01:00
parent 026ea5940c
commit 1992cdd75e
1 changed files with 3 additions and 3 deletions

View File

@ -941,14 +941,14 @@ mcl_potions.register_effect({
name = "saturation",
description = S("Saturation"),
get_tt = function(factor)
return S("saturates by @1 per second", factor)
return S("saturates by @1 per second", factor*20)
end,
res_condition = function(object)
return (not object:is_player()) -- TODO what should it do for mobs?
end,
on_step = function(dtime, object, factor, duration)
mcl_hunger.set_hunger(object, math.min(mcl_hunger.get_hunger(object)+dtime*factor, 20))
mcl_hunger.saturate(object:get_player_name(), dtime*factor)
mcl_hunger.set_hunger(object, math.min(mcl_hunger.get_hunger(object)+dtime*factor*20, 20))
mcl_hunger.saturate(object:get_player_name(), dtime*factor*40)
end,
particle_color = "#CEAE29",
uses_factor = true,