Merge pull request #6960 from Citadel-Station-13/upstream-merge-38165

[MIRROR] Adds config for monkey cap
This commit is contained in:
deathride58
2018-06-05 23:38:54 +00:00
committed by GitHub
3 changed files with 6 additions and 3 deletions
-1
View File
@@ -7,7 +7,6 @@ SUBSYSTEM_DEF(mobs)
var/list/currentrun = list()
var/static/list/clients_by_zlevel[][]
var/static/list/cubemonkeys = list()
var/cubemonkeycap = 64
/datum/controller/subsystem/mobs/stat_entry()
..("P:[GLOB.mob_living_list.len]")
@@ -33,9 +33,10 @@
. = ..()
if (cubespawned)
if (LAZYLEN(SSmobs.cubemonkeys) > SSmobs.cubemonkeycap)
var/cap = CONFIG_GET(number/monkeycap)
if (LAZYLEN(SSmobs.cubemonkeys) > cap)
if (spawner)
to_chat(spawner, "<span class='warning'>Bluespace harmonics prevent the spawning of more than [SSmobs.cubemonkeycap] monkeys on the station at one time!</span>")
to_chat(spawner, "<span class='warning'>Bluespace harmonics prevent the spawning of more than [cap] monkeys on the station at one time!</span>")
return INITIALIZE_HINT_QDEL
SSmobs.cubemonkeys += src