[MIRROR] Tidy Processor Overload event code (#5876)

* Tidy Processor Overload event code (#36277)

* Tidy Processor Overload event code
This commit is contained in:
CitadelStationBot
2018-03-10 07:17:25 -06:00
committed by Poojawa
parent 4b550b40e8
commit 2aa4fef8e1
+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)