[MIRROR] Auto-AFK (#8450)

Co-authored-by: Killian <49700375+KillianKirilenko@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2
2024-06-03 19:53:51 -07:00
committed by GitHub
parent e6de58400f
commit df317e82e1
6 changed files with 35 additions and 1 deletions

View File

@@ -416,6 +416,13 @@ var/list/_client_preferences_by_type
disabled_description = "Silent"
// CHOMPAdd End
/datum/client_preference/auto_afk
description = "Automatic AFK Status"
key = "AUTO_AFK"
enabled_by_default = TRUE
enabled_description = "Automatic"
disabled_description = "Manual Only"
/********************
* Staff Preferences *

View File

@@ -167,3 +167,14 @@
toggle_preference(pref_path)
to_chat(src, "The cooldown between pain messages for minor (under 20/5 injury. Multi-limb injuries are still faster) is now [ (is_preference_enabled(pref_path)) ? "extended" : "default"].")
/client/verb/toggle_automatic_afk()
set name = "Toggle Automatic AFK"
set category = "Preferences"
set desc = "When enabled, causes you to be automatically marked as AFK if you are idle for too long."
var/pref_path = /datum/client_preference/auto_afk
toggle_preference(pref_path)
to_chat(src, "You will [ (is_preference_enabled(pref_path)) ? "now" : "not"] be automatically marked as AFK if you are idle for ten minutes or more.")