[MIRROR] Tidy Processor Overload event code (#5876)
* Tidy Processor Overload event code (#36277) * Tidy Processor Overload event code
This commit is contained in:
committed by
Poojawa
parent
4b550b40e8
commit
2aa4fef8e1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user