mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
Configuration option for number of roundstart mice (#26133)
This was actually requested, because it turns out testing powernets is hard if mice randomly chew wires sometimes.
This commit is contained in:
@@ -260,6 +260,8 @@
|
||||
var/arrivals_shuttle_dock_window = 55 //Time from when a player late joins on the arrivals shuttle to when the shuttle docks on the station
|
||||
var/arrivals_shuttle_require_safe_latejoin = FALSE //Require the arrivals shuttle to be operational in order for latejoiners to join
|
||||
|
||||
var/mice_roundstart = 10 // how many wire chewing rodents spawn at roundstart.
|
||||
|
||||
/datum/configuration/New()
|
||||
gamemode_cache = typecacheof(/datum/game_mode,TRUE)
|
||||
for(var/T in gamemode_cache)
|
||||
@@ -772,6 +774,8 @@
|
||||
arrivals_shuttle_dock_window = max(PARALLAX_LOOP_TIME, text2num(value))
|
||||
if("arrivals_shuttle_require_safe_latejoin")
|
||||
arrivals_shuttle_require_safe_latejoin = text2num(value)
|
||||
if("mice_roundstart")
|
||||
mice_roundstart = text2num(value)
|
||||
else
|
||||
GLOB.diary << "Unknown setting in configuration: '[name]'"
|
||||
|
||||
|
||||
@@ -10,9 +10,11 @@ SUBSYSTEM_DEF(squeak)
|
||||
var/list/exposed_wires = list()
|
||||
|
||||
/datum/controller/subsystem/squeak/Initialize(timeofday)
|
||||
trigger_migration()
|
||||
trigger_migration(config.mice_roundstart)
|
||||
|
||||
/datum/controller/subsystem/squeak/proc/trigger_migration(num_mice=10)
|
||||
if(!num_mice)
|
||||
return
|
||||
find_exposed_wires()
|
||||
|
||||
var/mob/living/simple_animal/mouse/M
|
||||
|
||||
@@ -483,4 +483,9 @@ Space_Budget 16
|
||||
ARRIVALS_SHUTTLE_DOCK_WINDOW 55
|
||||
|
||||
#Set this to 1 to prevent late join players from spawning if the arrivals shuttle is depressurized
|
||||
ARRIVALS_SHUTTLE_REQUIRE_SAFE_LATEJOIN 0
|
||||
ARRIVALS_SHUTTLE_REQUIRE_SAFE_LATEJOIN 0
|
||||
|
||||
# How many wirechewing rodents you want to spawn on exposed maintenane wires at the start of the round. You may wish to set this to 0 if you're testing powernets.
|
||||
|
||||
MICE_ROUNDSTART 10
|
||||
|
||||
|
||||
Reference in New Issue
Block a user