From 2b27140534efa7d45e1732cb3815d4ef39a8c634 Mon Sep 17 00:00:00 2001 From: crazyclonetheninja Date: Sun, 16 Jan 2011 05:32:27 +0000 Subject: [PATCH] Singularity now releases itself at 1000 energy and EXPLODES at 2000. Coded by Barhandar. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@864 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/machinery/singularity.dm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/game/machinery/singularity.dm b/code/game/machinery/singularity.dm index cdce2af684..84de93a018 100644 --- a/code/game/machinery/singularity.dm +++ b/code/game/machinery/singularity.dm @@ -116,6 +116,14 @@ However people seem to like it for some reason. else energy -= 5 + switch(energy) + if(1000 to 1999) + for(var/obj/machinery/field_generator/F in orange(5,src)) + F.turn_off() + if(2000 to INFINITY) + explosion(src.loc, 4, 8, 15, 0) + src.ex_act(1) //if it survived the explosion + if(prob(15))//Chance for it to run a special event event() var/turf/T = get_turf(src)