mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Correct tooltip for healing/harming potions
This commit is contained in:
parent
acea309564
commit
2ca2f25e58
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ local function register_potion(def)
|
||||||
_tt = "1/2 Heart/"..effect.."sec | "..time_string(dur)
|
_tt = "1/2 Heart/"..effect.."sec | "..time_string(dur)
|
||||||
end
|
end
|
||||||
elseif def.name == "healing" or def.name == "harming" then
|
elseif def.name == "healing" or def.name == "harming" then
|
||||||
_tt = (effect / 2).." Hearts"
|
_tt = ((effect / 2) - ((effect / 2)% 0.5)).." Hearts"
|
||||||
else
|
else
|
||||||
_tt = tt or time_string(dur) or S("No effect")
|
_tt = tt or time_string(dur) or S("No effect")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue