mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-08-18 21:14:11 +02:00
Added missing effect descriptions
This commit is contained in:
parent
0b1cc6ad57
commit
5a7a533bf6
@ -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
Block a user