mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-23 12:47:13 +01:00
Removed unused SSD subsystem code
Removes the enabled check, warning time, getting ckey, logging, and alerting in chat. These features were unused.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
#define AFK_MINUTES_WARN 30 MINUTES // NOT IMPLEMENTED
|
||||
#define AFK_MINUTES_CRYO 40 MINUTES
|
||||
#define AFK_MINUTES_TEXT AFK_MINUTES_WARN/600
|
||||
#define AFK_CRYO_ENABLED TRUE
|
||||
|
||||
SUBSYSTEM_DEF(afk)
|
||||
name = "AFK Watcher"
|
||||
@@ -10,9 +8,7 @@ SUBSYSTEM_DEF(afk)
|
||||
flags = SS_BACKGROUND
|
||||
|
||||
/datum/controller/subsystem/afk/Initialize()
|
||||
// Check if this should run
|
||||
if(!AFK_CRYO_ENABLED)
|
||||
flags |= SS_NO_FIRE
|
||||
// Currently, this always runs by default
|
||||
return ..()
|
||||
|
||||
/datum/controller/subsystem/afk/fire()
|
||||
@@ -25,23 +21,12 @@ SUBSYSTEM_DEF(afk)
|
||||
// Check if client meets the time requirement
|
||||
if(!(afk_time > AFK_MINUTES_CRYO))
|
||||
continue
|
||||
|
||||
// Define ckey
|
||||
var/client/cryo_client = cryo_mob.ckey
|
||||
|
||||
// Log this occurrence
|
||||
log_admin("[key_name(cryo_client)] has been sent to cryo by the AFK Watcher subsystem after being AFK for [AFK_MINUTES_TEXT] minutes.")
|
||||
|
||||
// Alert user
|
||||
to_chat(cryo_client, "<span class='danger'>You have been sent to cryo for exceeding the [AFK_MINUTES_TEXT] minute AFK time limit.</span>")
|
||||
|
||||
// Send to cryo
|
||||
cryoMob(cryo_mob, effects = TRUE)
|
||||
|
||||
// Remove from SSD list
|
||||
GLOB.ssd_mob_list -= cryo_mob
|
||||
|
||||
#undef AFK_MINUTES_WARN
|
||||
#undef AFK_MINUTES_CRYO
|
||||
#undef AFK_MINUTES_TEXT
|
||||
#undef AFK_CRYO_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user