mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +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)
|
||||
end
|
||||
elseif def.name == "healing" or def.name == "harming" then
|
||||
_tt = (effect / 2).." Hearts"
|
||||
_tt = ((effect / 2) - ((effect / 2)% 0.5)).." Hearts"
|
||||
else
|
||||
_tt = tt or time_string(dur) or S("No effect")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue