Fix lower bound for radiant heat overlay
This commit is contained in:
parent
429c914e99
commit
95bebf9bbb
@ -65,7 +65,7 @@ local function applyheat()
|
||||
local img = ""
|
||||
if ow and ow > 0.1 then
|
||||
nodecore.addphealth(p, -ow, "radiant")
|
||||
ow = math_sqrt(ow) * 255
|
||||
ow = math_sqrt(ow - 0.1) * 255
|
||||
if ow > 255 then ow = 255 end
|
||||
img = "nc_player_health_radiant.png^[opacity:" .. math_floor(ow)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user