hpchange: actually set dmg %)

frenemies
flyc0r 2020-10-05 12:30:30 +02:00
parent cc4736d025
commit 096ce84ab6
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
hpchange = {}
local widget
local last_hp
local dmg
local function show_widget()
widget = minetest.localplayer:hud_add({
@ -25,8 +26,10 @@ local function update_hud(delta, potential)
local num = tostring(math.abs(delta))
if delta < 0 then
num = "-" .. num
dmg=true
else
num = "+" .. num
dmg=false
end
if potential then