mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-08-19 21:44:12 +02:00
Improved nausea
This commit is contained in:
parent
b6484a6d15
commit
e039642446
@ -693,12 +693,12 @@ mcl_potions.register_effect({
|
|||||||
end,
|
end,
|
||||||
on_hit_timer = function(object, factor, duration)
|
on_hit_timer = function(object, factor, duration)
|
||||||
if EF.nausea[object].high then
|
if EF.nausea[object].high then
|
||||||
mcl_fovapi.remove_modifier(object, "mcl_potions:nausea_high")
|
mcl_fovapi.remove_modifier(object, "mcl_potions:nausea_high", factor)
|
||||||
mcl_fovapi.apply_modifier(object, "mcl_potions:nausea_low")
|
mcl_fovapi.apply_modifier(object, "mcl_potions:nausea_low", factor)
|
||||||
EF.nausea[object].high = false
|
EF.nausea[object].high = false
|
||||||
else
|
else
|
||||||
mcl_fovapi.apply_modifier(object, "mcl_potions:nausea_high")
|
mcl_fovapi.apply_modifier(object, "mcl_potions:nausea_high", factor)
|
||||||
mcl_fovapi.remove_modifier(object, "mcl_potions:nausea_low")
|
mcl_fovapi.remove_modifier(object, "mcl_potions:nausea_low", factor)
|
||||||
EF.nausea[object].high = true
|
EF.nausea[object].high = true
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
@ -710,9 +710,10 @@ mcl_potions.register_effect({
|
|||||||
mcl_fovapi.remove_modifier(object, "mcl_potions:nausea_low")
|
mcl_fovapi.remove_modifier(object, "mcl_potions:nausea_low")
|
||||||
end,
|
end,
|
||||||
particle_color = "#60AA30",
|
particle_color = "#60AA30",
|
||||||
uses_factor = false,
|
uses_factor = true,
|
||||||
timer_uses_factor = false,
|
lvl1_factor = 2,
|
||||||
hit_timer_step = 1,
|
lvl2_factor = 1,
|
||||||
|
timer_uses_factor = true,
|
||||||
})
|
})
|
||||||
mcl_fovapi.register_modifier({
|
mcl_fovapi.register_modifier({
|
||||||
name = "mcl_potions:nausea_high",
|
name = "mcl_potions:nausea_high",
|
||||||
|
Loading…
Reference in New Issue
Block a user