forked from VoxeLibre/VoxeLibre
Buffed saturation
This commit is contained in:
parent
026ea5940c
commit
1992cdd75e
|
@ -941,14 +941,14 @@ mcl_potions.register_effect({
|
||||||
name = "saturation",
|
name = "saturation",
|
||||||
description = S("Saturation"),
|
description = S("Saturation"),
|
||||||
get_tt = function(factor)
|
get_tt = function(factor)
|
||||||
return S("saturates by @1 per second", factor)
|
return S("saturates by @1 per second", factor*20)
|
||||||
end,
|
end,
|
||||||
res_condition = function(object)
|
res_condition = function(object)
|
||||||
return (not object:is_player()) -- TODO what should it do for mobs?
|
return (not object:is_player()) -- TODO what should it do for mobs?
|
||||||
end,
|
end,
|
||||||
on_step = function(dtime, object, factor, duration)
|
on_step = function(dtime, object, factor, duration)
|
||||||
mcl_hunger.set_hunger(object, math.min(mcl_hunger.get_hunger(object)+dtime*factor, 20))
|
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)
|
mcl_hunger.saturate(object:get_player_name(), dtime*factor*40)
|
||||||
end,
|
end,
|
||||||
particle_color = "#CEAE29",
|
particle_color = "#CEAE29",
|
||||||
uses_factor = true,
|
uses_factor = true,
|
||||||
|
|
Loading…
Reference in New Issue