AFK Status/Toggle (#15982)

* disable ingame changelog notification

* afk marker
This commit is contained in:
Killian
2024-05-18 10:14:27 +01:00
committed by GitHub
parent 349b1425b6
commit 313e6bc7a8
3 changed files with 14 additions and 0 deletions
+13
View File
@@ -121,6 +121,19 @@
else
to_chat(src, span_blue("You are not injured enough to succumb to death!"))
/mob/living/verb/toggle_afk()
set name = "Toggle AFK"
set category = "IC"
set desc = "Mark yourself as Away From Keyboard, or clear that status!"
if(away_from_keyboard)
remove_status_indicator("afk")
to_chat(src, "<span class='notice'>You are no longer marked as AFK.</span>")
away_from_keyboard = FALSE
else
add_status_indicator("afk")
to_chat(src, "<span class='notice'>You are now marked as AFK.</span>")
away_from_keyboard = TRUE
/mob/living/proc/updatehealth()
if(status_flags & GODMODE)
health = 100
+1
View File
@@ -156,6 +156,7 @@
var/faction = "neutral" //Used for checking whether hostile simple animals will attack you, possibly more stuff later
var/can_be_antagged = FALSE // To prevent pAIs/mice/etc from getting antag in autotraitor and future auto- modes. Uses inheritance instead of a bunch of typechecks.
var/away_from_keyboard = FALSE //are we at, or away, from our keyboard?
//Generic list for proc holders. Only way I can see to enable certain verbs/procs. Should be modified if needed.
var/proc_holder_list[] = list()//Right now unused.