Fixes immortal anomalies having a death timer overlay (#68694)

Fixes immortal anomalies having a death timer countdown overlay
This commit is contained in:
ShizCalev
2022-07-27 15:36:50 -05:00
committed by GitHub
parent ac4af925c1
commit 1c95f34e27
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -53,8 +53,18 @@
countdown = new(src)
if(countdown_colour)
countdown.color = countdown_colour
if(immortal)
return
countdown.start()
/obj/effect/anomaly/vv_edit_var(vname, vval)
. = ..()
if(vname == NAMEOF(src, immortal))
if(vval)
countdown.stop()
else
countdown.start()
/obj/effect/anomaly/process(delta_time)
anomalyEffect(delta_time)
if(death_time < world.time && !immortal)
+2
View File
@@ -127,6 +127,8 @@
var/obj/effect/anomaly/A = attached_to
if(!istype(A))
return
else if(A.immortal) //we can't die, why are we still here? just to suffer?
stop()
else
var/time_left = max(0, (A.death_time - world.time) / 10)
return round(time_left)