Tidy Processor Overload event code (#36277)

This commit is contained in:
Tad Hardesty
2018-03-10 02:03:43 -06:00
committed by duncathan salt
parent e65e36818a
commit ec6f62fd07
+9 -11
View File
@@ -27,14 +27,12 @@
/datum/round_event/processor_overload/start()
for(var/obj/machinery/telecomms/T in GLOB.telecomms_list)
if(istype(T, /obj/machinery/telecomms/processor))
var/obj/machinery/telecomms/processor/P = T
if(prob(10))
// Damage the surrounding area to indicate that it popped
explosion(get_turf(P), 0, 0, 2)
// Only a level 1 explosion actually damages the machine
// at all
P.ex_act(EXPLODE_DEVASTATE)
else
P.emp_act(EMP_HEAVY)
for(var/obj/machinery/telecomms/processor/P in GLOB.telecomms_list)
if(prob(10))
// Damage the surrounding area to indicate that it popped
explosion(get_turf(P), 0, 0, 2)
// Only a level 1 explosion actually damages the machine
// at all
P.ex_act(EXPLODE_DEVASTATE)
else
P.emp_act(EMP_HEAVY)