From ecbc1bea552d447c71e3074d6d03cc60c368a84e Mon Sep 17 00:00:00 2001 From: moxian Date: Sat, 9 Nov 2019 19:32:21 -0800 Subject: [PATCH] Singulo can now expand when placed directly by containment wall. (#12720) --- code/modules/power/singularity/singularity.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/power/singularity/singularity.dm b/code/modules/power/singularity/singularity.dm index 531bde2b000..c67e676ee13 100644 --- a/code/modules/power/singularity/singularity.dm +++ b/code/modules/power/singularity/singularity.dm @@ -110,8 +110,12 @@ /obj/singularity/process() - if(current_size >= STAGE_TWO) + if(allowed_size >= STAGE_TWO) + // Start moving even before we reach "true" stage two. + // If we are stage one and are sufficiently energetic to be allowed to 2, + // it might mean we are stuck in a corner somewere. So move around to try to expand. move() + if(current_size >= STAGE_TWO) pulse() if(prob(event_chance))//Chance for it to run a special event TODO:Come up with one or two more that fit event()