forked from VoxeLibre/VoxeLibre
Added missing effect descriptions
This commit is contained in:
parent
e26a35cf51
commit
ffba5824a0
|
@ -149,6 +149,9 @@ end
|
||||||
mcl_potions.register_effect({
|
mcl_potions.register_effect({
|
||||||
name = "invisibility",
|
name = "invisibility",
|
||||||
description = S("Invisiblity"),
|
description = S("Invisiblity"),
|
||||||
|
get_tt = function(factor)
|
||||||
|
return S("body is invisible")
|
||||||
|
end,
|
||||||
on_start = function(object, factor)
|
on_start = function(object, factor)
|
||||||
mcl_potions.make_invisible(object, true)
|
mcl_potions.make_invisible(object, true)
|
||||||
end,
|
end,
|
||||||
|
@ -230,6 +233,9 @@ mcl_potions.register_effect({
|
||||||
mcl_potions.register_effect({
|
mcl_potions.register_effect({
|
||||||
name = "water_breathing",
|
name = "water_breathing",
|
||||||
description = S("Water Breathing"),
|
description = S("Water Breathing"),
|
||||||
|
get_tt = function(factor)
|
||||||
|
return S("limitless breathing under water")
|
||||||
|
end,
|
||||||
on_step = function(dtime, object, factor, duration)
|
on_step = function(dtime, object, factor, duration)
|
||||||
if not object:is_player() then return end
|
if not object:is_player() then return end
|
||||||
if object:get_breath() then
|
if object:get_breath() then
|
||||||
|
@ -308,6 +314,9 @@ mcl_potions.register_effect({
|
||||||
mcl_potions.register_effect({
|
mcl_potions.register_effect({
|
||||||
name = "night_vision",
|
name = "night_vision",
|
||||||
description = S("Night Vision"),
|
description = S("Night Vision"),
|
||||||
|
get_tt = function(factor)
|
||||||
|
return S("improved vision during the night")
|
||||||
|
end,
|
||||||
res_condition = function(object)
|
res_condition = function(object)
|
||||||
return (not object:is_player())
|
return (not object:is_player())
|
||||||
end,
|
end,
|
||||||
|
@ -330,6 +339,9 @@ mcl_potions.register_effect({
|
||||||
mcl_potions.register_effect({
|
mcl_potions.register_effect({
|
||||||
name = "fire_resistance",
|
name = "fire_resistance",
|
||||||
description = S("Fire Resistance"),
|
description = S("Fire Resistance"),
|
||||||
|
get_tt = function(factor)
|
||||||
|
return S("resistance to fire damage")
|
||||||
|
end,
|
||||||
res_condition = function(object)
|
res_condition = function(object)
|
||||||
return (not object:is_player())
|
return (not object:is_player())
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue