mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
Fixes immortal anomalies having a death timer overlay (#68694)
Fixes immortal anomalies having a death timer countdown overlay
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user