limit the amount of monkeys spawned from monkey cubes

This commit is contained in:
Coul
2019-09-14 21:18:45 -04:00
parent 74fe92477f
commit 00c3b6ad41
17 changed files with 36 additions and 17 deletions
+5
View File
@@ -242,6 +242,9 @@
// Lavaland
var/lavaland_budget = 60
//cube monkey limit
var/cubemonkeycap = 20
/datum/configuration/New()
for(var/T in subtypesof(/datum/game_mode))
var/datum/game_mode/M = T
@@ -782,6 +785,8 @@
config.enable_night_shifts = TRUE
if("lavaland_budget")
config.lavaland_budget = text2num(value)
if("cubemonkey_cap")
config.cubemonkeycap = text2num(value)
else
log_config("Unknown setting in configuration: '[name]'")
+1
View File
@@ -7,6 +7,7 @@ SUBSYSTEM_DEF(mobs)
var/list/currentrun = list()
var/static/list/clients_by_zlevel[][]
var/static/list/dead_players_by_zlevel[][] = list(list()) // Needs to support zlevel 1 here, MaxZChanged only happens when z2 is created and new_players can login before that.
var/static/list/cubemonkeys = list()
/datum/controller/subsystem/mobs/stat_entry()
..("P:[GLOB.mob_list.len]")