fixes ais being unable to use cameras after an emp sometimes (#21974)

This commit is contained in:
GDN
2023-08-16 15:45:10 -04:00
committed by GitHub
parent b4e5e3f505
commit 6eb57a98c7
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -98,7 +98,7 @@
network = list()
stat |= EMPED
turn_off(null, FALSE, TRUE)
addtimer(CALLBACK(src, PROC_REF(reactivate_after_emp)), (90 / severity) SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE)
addtimer(CALLBACK(src, PROC_REF(reactivate_after_emp)), (90 / severity) SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE)
..()
/obj/machinery/camera/proc/reactivate_after_emp()
@@ -59,11 +59,13 @@
stat &= BROKEN
if(prob(75))
explode()
return
if(2)
if(prob(25))
stat &= BROKEN
if(prob(10))
explode()
return
if(3)
if(prob(10))
stat &= BROKEN