Fix simple mobs spawning into nullspace + helper for spawning atoms (#20669)

Fixes badminbomb cores and spawner grenades starting out mobs in
nullspace, also adds a helper proc to do spawning
This commit is contained in:
oranges
2016-09-26 08:47:03 +02:00
committed by AnturK
parent af137debfb
commit 5581fd9c72
3 changed files with 21 additions and 16 deletions
@@ -17,15 +17,8 @@
for(var/mob/living/carbon/C in viewers(T, null))
C.flash_act()
for(var/i=1, i<=deliveryamt, i++)
var/atom/movable/x = new spawner_type
x.admin_spawned = admin_spawned
x.loc = T
if(prob(50))
for(var/j = 1, j <= rand(1, 3), j++)
step(x, pick(NORTH,SOUTH,EAST,WEST))
// Spawn some hostile syndicate critters
// Spawn some hostile syndicate critters and spread them out
spawn_and_random_walk(spawner_type, T, deliveryamt, walk_chance=50, admin_spawn=admin_spawned)
qdel(src)