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({
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue