Fixes Skeleton Crew Access Revokation Spam (#31431)

* Update SSjobs.dm

* spooky scary skeleton closet announcement
This commit is contained in:
CRUNCH
2026-01-11 22:15:36 +00:00
committed by GitHub
parent 090671b2a9
commit 8fd14ca095
2 changed files with 6 additions and 4 deletions
@@ -36,8 +36,8 @@
/datum/configuration_section/job_configuration/load_data(list/data)
// Use the load wrappers here. That way the default isnt made 'null' if you comment out the config line
CONFIG_LOAD_BOOL(allow_skeleton_crew_access, data["allow_skeleton_crew_access"])
CONFIG_LOAD_BOOL(skeleton_crew_threshold, data["skeleton_crew_threshold"])
CONFIG_LOAD_BOOL(skeleton_crew_escape_threshold, data["skeleton_crew_escape_threshold"])
CONFIG_LOAD_NUM(skeleton_crew_threshold, data["skeleton_crew_threshold"])
CONFIG_LOAD_NUM(skeleton_crew_escape_threshold, data["skeleton_crew_escape_threshold"])
CONFIG_LOAD_BOOL(restrict_jobs_on_account_age, data["restrict_jobs_on_account_age"])
CONFIG_LOAD_BOOL(restrict_jobs_on_account_age_admin_bypass, data["restrict_jobs_on_account_age_admin_bypass"])
CONFIG_LOAD_BOOL(enable_exp_tracking, data["enable_exp_tracking"])
+4 -2
View File
@@ -601,8 +601,10 @@ SUBSYSTEM_DEF(jobs)
if(!skeleton_crew)
GLOB.minor_announcement.Announce("Due to reduced crew numbers, extended departmental access has been unlocked on crew IDs.", "Extended Access Enabled")
skeleton_crew = TRUE
else
if(skeleton_crew >= GLOB.configuration.jobs.skeleton_crew_escape_threshold)
return
if(skeleton_crew >= GLOB.configuration.jobs.skeleton_crew_escape_threshold)
if(skeleton_crew && !skeleton_revoke_timer)
GLOB.minor_announcement.Announce("Crew count is now above minimal levels, extended departmental access will be revoked from crew IDs in 2 minutes. \
If your ID access has not been upgraded by the Head of Personnel, please vacate any areas you do not normally have access to.", "Extended Access Disabled")
skeleton_revoke_timer = addtimer(CALLBACK(src, PROC_REF(deactivate_skeleton_access)), 2 MINUTES, TIMER_STOPPABLE)