From 8b2de1e33f43bf6e3d35204331e7184a28f6c9a4 Mon Sep 17 00:00:00 2001 From: the-real-herowl Date: Mon, 22 Jan 2024 22:06:39 +0100 Subject: [PATCH] Improved nausea --- mods/ITEMS/mcl_potions/functions.lua | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index 55fa79c45..27d07cff5 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -693,12 +693,12 @@ mcl_potions.register_effect({ end, on_hit_timer = function(object, factor, duration) if EF.nausea[object].high then - mcl_fovapi.remove_modifier(object, "mcl_potions:nausea_high") - mcl_fovapi.apply_modifier(object, "mcl_potions:nausea_low") + mcl_fovapi.remove_modifier(object, "mcl_potions:nausea_high", factor) + mcl_fovapi.apply_modifier(object, "mcl_potions:nausea_low", factor) EF.nausea[object].high = false else - mcl_fovapi.apply_modifier(object, "mcl_potions:nausea_high") - mcl_fovapi.remove_modifier(object, "mcl_potions:nausea_low") + mcl_fovapi.apply_modifier(object, "mcl_potions:nausea_high", factor) + mcl_fovapi.remove_modifier(object, "mcl_potions:nausea_low", factor) EF.nausea[object].high = true end end, @@ -710,9 +710,10 @@ mcl_potions.register_effect({ mcl_fovapi.remove_modifier(object, "mcl_potions:nausea_low") end, particle_color = "#60AA30", - uses_factor = false, - timer_uses_factor = false, - hit_timer_step = 1, + uses_factor = true, + lvl1_factor = 2, + lvl2_factor = 1, + timer_uses_factor = true, }) mcl_fovapi.register_modifier({ name = "mcl_potions:nausea_high",