forked from VoxeLibre/VoxeLibre
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)
|
||||
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 New Issue