From 5a7a533bf6eff1535933b3467a8ace850ba92b2c Mon Sep 17 00:00:00 2001 From: the-real-herowl Date: Mon, 8 Jan 2024 00:25:47 +0100 Subject: [PATCH] Added missing effect descriptions --- mods/ITEMS/mcl_potions/functions.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index 12b0c08ec..efc4896fa 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -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,