mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
Tooltip and color fixes
This commit is contained in:
parent
b5367a77a7
commit
7c1f9805e2
@ -463,7 +463,7 @@ mcl_potions.register_effect({
|
|||||||
name = "darkness",
|
name = "darkness",
|
||||||
description = S("Darkness"),
|
description = S("Darkness"),
|
||||||
get_tt = function(factor)
|
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,
|
end,
|
||||||
res_condition = function(object)
|
res_condition = function(object)
|
||||||
return (not object:is_player())
|
return (not object:is_player())
|
||||||
@ -751,6 +751,7 @@ mcl_potions.register_effect({
|
|||||||
on_start = function(object, factor)
|
on_start = function(object, factor)
|
||||||
mcl_burning.extinguish(object)
|
mcl_burning.extinguish(object)
|
||||||
playerphysics.add_physics_factor(object, "speed", "mcl_potions:frost", 1-factor)
|
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({
|
EF.frost[object].vignette = object:hud_add({
|
||||||
hud_elem_type = "image",
|
hud_elem_type = "image",
|
||||||
position = {x = 0.5, y = 0.5},
|
position = {x = 0.5, y = 0.5},
|
||||||
@ -838,7 +839,7 @@ mcl_potions.register_effect({
|
|||||||
name = "nausea",
|
name = "nausea",
|
||||||
description = S("Nausea"),
|
description = S("Nausea"),
|
||||||
get_tt = function(factor)
|
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,
|
end,
|
||||||
res_condition = function(object)
|
res_condition = function(object)
|
||||||
return (not object:is_player())
|
return (not object:is_player())
|
||||||
@ -1026,7 +1027,7 @@ mcl_potions.register_effect({
|
|||||||
name = "conduit_power",
|
name = "conduit_power",
|
||||||
description = S("Conduit Power"),
|
description = S("Conduit Power"),
|
||||||
get_tt = function(factor)
|
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,
|
end,
|
||||||
res_condition = function(object)
|
res_condition = function(object)
|
||||||
return (not object:is_player())
|
return (not object:is_player())
|
||||||
|
@ -633,7 +633,7 @@ mcl_potions.register_potion({
|
|||||||
desc_suffix = S("of Health Boost"),
|
desc_suffix = S("of Health Boost"),
|
||||||
_tt = nil,
|
_tt = nil,
|
||||||
_longdesc = S("Increases health."),
|
_longdesc = S("Increases health."),
|
||||||
color = "#FF2222",
|
color = "#BE1919",
|
||||||
_effect_list = {
|
_effect_list = {
|
||||||
health_boost = {},
|
health_boost = {},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user