REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

This commit is contained in:
Aurorablade
2017-02-08 11:45:50 -05:00
parent b35eb8e96f
commit 9e38a049f7
2 changed files with 8 additions and 3 deletions
+4
View File
@@ -103,6 +103,7 @@
// Booleans
var/resting = FALSE
var/rest_CD = 0
/*
STATUS EFFECTS
@@ -140,12 +141,15 @@
/mob/living/proc/StartResting(updating = 1)
var/val_change = !resting
resting = TRUE
rest_CD = world.time + 20//this is for tracking it for the verb
to_chat(src, "<span class='notice'>You are now resting.</span>")
if(updating && val_change)
update_canmove()
/mob/living/proc/StopResting(updating = 1)
var/val_change = !!resting
resting = FALSE
to_chat(src, "<span class='notice'>You are now getting up.</span>")
if(updating && val_change)
update_canmove()
+4 -3
View File
@@ -361,9 +361,10 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM)
set name = "Rest"
set category = "IC"
resting = !resting
update_canmove()
to_chat(src, "<span class='notice'>You are now [resting ? "resting" : "getting up"].</span>")
if(!resting)
StartResting()
else if(resting && !(rest_CD > world.time))
StopResting()
/proc/is_blind(A)
if(iscarbon(A))