forked from Mineclonia/Mineclonia
Correct tooltip for healing/harming potions
This commit is contained in:
parent
acea309564
commit
2ca2f25e58
|
@ -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 New Issue