[MIRROR] Add config for station traits [MDB IGNORE] (#18468)

* Add config for station traits

* Update station.dm

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-01-09 07:13:20 +00:00
committed by GitHub
co-authored by Mothblocks Zonespace
parent c2393621e9
commit 26274a342c
3 changed files with 7 additions and 5 deletions
@@ -339,6 +339,8 @@
/datum/config_entry/flag/allow_random_events // Enables random events mid-round when set
/datum/config_entry/flag/forbid_station_traits
/datum/config_entry/number/events_min_time_mul // Multipliers for random events minimal starting time and minimal players amounts
default = 1
min_val = 0
@@ -26,11 +26,8 @@ PROCESSING_SUBSYSTEM_DEF(station)
///Rolls for the amount of traits and adds them to the traits list
/datum/controller/subsystem/processing/station/proc/SetupTraits()
// SKYRAT EDIT ADDITION
#ifdef LOWMEMORYMODE // NO MORE FUCKING STUPID STATION TRAITS ON STARTUP WHEN IM TESTING SHIT FUCK YOU
return
#endif
// SKYRAT EDIT END
if (CONFIG_GET(flag/forbid_station_traits))
return
if (fexists(FUTURE_STATION_TRAITS_FILE))
var/forced_traits_contents = file2text(FUTURE_STATION_TRAITS_FILE)
+3
View File
@@ -135,6 +135,9 @@ DYNAMIC_CONFIG_ENABLED
## Comment this out to disable random events during the round.
ALLOW_RANDOM_EVENTS
## Uncomment this to disable station traits.
#FORBID_STATION_TRAITS
## Multiplier for earliest start time of dangerous events.
## Set to 0 to make dangerous events avaliable from round start.
EVENTS_MIN_TIME_MUL 1