mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 19:44:46 +01:00
AFK Status/Toggle (#15982)
* disable ingame changelog notification * afk marker
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user