Added missing effect descriptions

This commit is contained in:
the-real-herowl 2024-01-08 00:25:47 +01:00
parent 0b1cc6ad57
commit 5a7a533bf6
1 changed files with 12 additions and 0 deletions

View File

@ -149,6 +149,9 @@ end
mcl_potions.register_effect({
name = "invisibility",
description = S("Invisiblity"),
get_tt = function(factor)
return S("body is invisible")
end,
on_start = function(object, factor)
mcl_potions.make_invisible(object, true)
end,
@ -230,6 +233,9 @@ mcl_potions.register_effect({
mcl_potions.register_effect({
name = "water_breathing",
description = S("Water Breathing"),
get_tt = function(factor)
return S("limitless breathing under water")
end,
on_step = function(dtime, object, factor, duration)
if not object:is_player() then return end
if object:get_breath() then
@ -308,6 +314,9 @@ mcl_potions.register_effect({
mcl_potions.register_effect({
name = "night_vision",
description = S("Night Vision"),
get_tt = function(factor)
return S("improved vision during the night")
end,
res_condition = function(object)
return (not object:is_player())
end,
@ -330,6 +339,9 @@ mcl_potions.register_effect({
mcl_potions.register_effect({
name = "fire_resistance",
description = S("Fire Resistance"),
get_tt = function(factor)
return S("resistance to fire damage")
end,
res_condition = function(object)
return (not object:is_player())
end,