mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 10:33:30 +01:00
@@ -66,7 +66,7 @@ var/datum/roundinfo/roundinfo = new()
|
||||
var/list/area_turfs = get_area_turfs(area)
|
||||
for(var/turf/T in area_turfs)
|
||||
if(T.density)
|
||||
turfs -= T
|
||||
area_turfs -= T
|
||||
vermin_spawn_turfs.Add(area_turfs)
|
||||
|
||||
/datum/controller/gameticker/proc/setup()
|
||||
@@ -331,7 +331,7 @@ var/datum/roundinfo/roundinfo = new()
|
||||
spawning_vermin = 0
|
||||
var/cur_alive_vermin = 0
|
||||
//check to see if there are too many already
|
||||
for(var/obj/effect/critter/roach/R in world))
|
||||
for(var/obj/effect/critter/roach/R in world)
|
||||
cur_alive_vermin++
|
||||
for(var/mob/living/simple_animal/mouse/M in world)
|
||||
if(!M.stat)
|
||||
|
||||
@@ -169,13 +169,13 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
eligible_targets.Add(M)
|
||||
|
||||
var/mob/living/simple_animal/mouse/target_mouse
|
||||
if(master_controller.game_ticker.spawn_vermin)
|
||||
if(ticker.spawn_vermin)
|
||||
if(eligible_targets.len)
|
||||
//grab a random existing one
|
||||
target_mouse = pick(eligible_targets)
|
||||
else
|
||||
//make a new mouse
|
||||
target_mouse = new(pick(master_controller.game_ticker.vermin_spawn_turfs))
|
||||
target_mouse = new(pick(ticker.vermin_spawn_turfs))
|
||||
|
||||
if(target_mouse)
|
||||
client.mob = target_mouse
|
||||
|
||||
Reference in New Issue
Block a user