mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Tooltip and color fixes
This commit is contained in:
parent
b5367a77a7
commit
7c1f9805e2
2 changed files with 5 additions and 4 deletions
|
@ -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())
|
||||
|
|
|
@ -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 = {},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue