mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 12:01:06 +01:00
Added luck and bad luck effects
They're no-op for now
This commit is contained in:
parent
bbe2964d48
commit
c503a5fb8c
1 changed files with 32 additions and 0 deletions
|
@ -602,6 +602,38 @@ mcl_potions.register_effect({
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
mcl_potions.register_effect({
|
||||||
|
name = "luck",
|
||||||
|
description = S("Luck"),
|
||||||
|
particle_color = "#7BFF42",
|
||||||
|
res_condition = function(object)
|
||||||
|
return (not object:is_player())
|
||||||
|
end,
|
||||||
|
on_start = function(object, factor)
|
||||||
|
-- mcl_luck.add_luck_modifier(object, "mcl_potions:luck", factor)
|
||||||
|
end,
|
||||||
|
on_end = function(object)
|
||||||
|
-- mcl_luck.remove_luck_modifier(object, "mcl_potions:luck")
|
||||||
|
end,
|
||||||
|
uses_factor = true,
|
||||||
|
})
|
||||||
|
|
||||||
|
mcl_potions.register_effect({
|
||||||
|
name = "bad_luck",
|
||||||
|
description = S("Bad Luck"),
|
||||||
|
particle_color = "#887343",
|
||||||
|
res_condition = function(object)
|
||||||
|
return (not object:is_player())
|
||||||
|
end,
|
||||||
|
on_start = function(object, factor)
|
||||||
|
-- mcl_luck.add_luck_modifier(object, "mcl_potions:bad_luck", -factor)
|
||||||
|
end,
|
||||||
|
on_end = function(object)
|
||||||
|
-- mcl_luck.remove_luck_modifier(object, "mcl_potions:bad_luck")
|
||||||
|
end,
|
||||||
|
uses_factor = true,
|
||||||
|
})
|
||||||
|
|
||||||
mcl_potions.register_effect({
|
mcl_potions.register_effect({
|
||||||
name = "bad_omen",
|
name = "bad_omen",
|
||||||
description = S("Bad Omen"),
|
description = S("Bad Omen"),
|
||||||
|
|
Loading…
Reference in a new issue