Merge branch 'master' of repo.or.cz:waspsaliva

This commit is contained in:
cron 2020-10-05 19:33:14 +00:00
commit 7652a30c72

View File

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