From ae1a3f38609b216f69543cf961f8578b283436cf Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Sun, 14 Sep 2014 17:14:39 +0200 Subject: [PATCH] Sanity checks ninja spawns Reduces the risk of ninjas spawning in the middle of space, having no idea which direction the station is. --- code/game/gamemodes/events/space_ninja.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/gamemodes/events/space_ninja.dm b/code/game/gamemodes/events/space_ninja.dm index 57ec2bc7ae..479bdfbf01 100644 --- a/code/game/gamemodes/events/space_ninja.dm +++ b/code/game/gamemodes/events/space_ninja.dm @@ -142,7 +142,7 @@ Malf AIs/silicons aren't added. Monkeys aren't added. Messes with objective comp //Here we pick a location and spawn the ninja. if(ninjastart.len == 0) for(var/obj/effect/landmark/L in landmarks_list) - if(L.name == "carpspawn") + if(L.name == "carpspawn" && locate(/turf/simulated) in range(7, L)) ninjastart.Add(L) var/ninja_key = null