From 6ac6637cf526e74cf4311c0e60fb0a38e1a534a7 Mon Sep 17 00:00:00 2001 From: the-real-herowl Date: Tue, 9 Apr 2024 01:44:52 +0200 Subject: [PATCH] Tooltip and color fixes --- mods/ITEMS/mcl_potions/functions.lua | 7 ++++--- mods/ITEMS/mcl_potions/potions.lua | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index 9a2b760d1..edf1dae5c 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -463,7 +463,7 @@ mcl_potions.register_effect({ name = "darkness", description = S("Darkness"), get_tt = function(factor) - return S("surrounded by darkness\nnot seeing anything beyond @1 nodes", factor) + return S("surrounded by darkness").."\n"..S("not seeing anything beyond @1 nodes", factor) end, res_condition = function(object) return (not object:is_player()) @@ -751,6 +751,7 @@ mcl_potions.register_effect({ on_start = function(object, factor) mcl_burning.extinguish(object) playerphysics.add_physics_factor(object, "speed", "mcl_potions:frost", 1-factor) + if EF.frost[object].vignette then return end EF.frost[object].vignette = object:hud_add({ hud_elem_type = "image", position = {x = 0.5, y = 0.5}, @@ -838,7 +839,7 @@ mcl_potions.register_effect({ name = "nausea", description = S("Nausea"), get_tt = function(factor) - return S("not feeling very well...\nfrequency: @1 / 1 s", factor) + return S("not feeling very well...").."\n"..S("frequency: @1 / 1 s", factor) end, res_condition = function(object) return (not object:is_player()) @@ -1026,7 +1027,7 @@ mcl_potions.register_effect({ name = "conduit_power", description = S("Conduit Power"), get_tt = function(factor) - return S("+@1% mining and attack speed in water\nlimitless breathing under water", math.floor(factor*100)) + return S("+@1% mining and attack speed in water").."\n"..S("limitless breathing under water", math.floor(factor*100)) end, res_condition = function(object) return (not object:is_player()) diff --git a/mods/ITEMS/mcl_potions/potions.lua b/mods/ITEMS/mcl_potions/potions.lua index bd5760455..6199ea5df 100644 --- a/mods/ITEMS/mcl_potions/potions.lua +++ b/mods/ITEMS/mcl_potions/potions.lua @@ -633,7 +633,7 @@ mcl_potions.register_potion({ desc_suffix = S("of Health Boost"), _tt = nil, _longdesc = S("Increases health."), - color = "#FF2222", + color = "#BE1919", _effect_list = { health_boost = {}, },