From 1834be9e46682ff41fa01f0eaf09936769e53e18 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 5 Aug 2020 19:53:14 +0200 Subject: [PATCH] Lingering potion: Reduce timer by constant value --- mods/ITEMS/mcl_potions/lingering.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_potions/lingering.lua b/mods/ITEMS/mcl_potions/lingering.lua index b9ed85f84f..0cba055d29 100644 --- a/mods/ITEMS/mcl_potions/lingering.lua +++ b/mods/ITEMS/mcl_potions/lingering.lua @@ -54,7 +54,7 @@ minetest.register_globalstep(function(dtime) -- Extinguish fire if water bottle if vals.is_water then if mcl_potions._extinguish_nearby_fire(pos, d) then - vals.timer = vals.timer / 2 + vals.timer = vals.timer - 3.25 end end @@ -65,7 +65,8 @@ minetest.register_globalstep(function(dtime) if obj:is_player() or entity._cmi_is_mob then vals.def.potion_fun(obj) - vals.timer = vals.timer / 2 + -- TODO: Apply timer penalty only if the potion effect was acutally applied + vals.timer = vals.timer - 3.25 end end