Merge branch 'master' of https://github.com/Citadel-Station-13/Citadel-Station-13 into proc-define-shit
This commit is contained in:
@@ -49,11 +49,11 @@
|
||||
|
||||
/datum/component/summoning/proc/do_spawn_mob(atom/spawn_location, summoner)
|
||||
if(spawned_mobs.len >= max_mobs)
|
||||
return 0
|
||||
return FALSE
|
||||
if(last_spawned_time > world.time)
|
||||
return 0
|
||||
return FALSE
|
||||
if(!prob(spawn_chance))
|
||||
return 0
|
||||
return FALSE
|
||||
last_spawned_time = world.time + spawn_delay
|
||||
var/chosen_mob_type = pick(mob_types)
|
||||
var/mob/living/simple_animal/L = new chosen_mob_type(spawn_location)
|
||||
|
||||
Reference in New Issue
Block a user