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
@@ -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