This commit is contained in:
Aurorablade
2017-02-08 12:17:36 -05:00
parent 9e38a049f7
commit 01a660298e
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -141,7 +141,7 @@
/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()
+4 -2
View File
@@ -361,9 +361,11 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM)
set name = "Rest"
set category = "IC"
if(!resting)
if(!resting && (world.time > rest_CD))
rest_CD = world.time + 20
StartResting()
else if(resting && !(rest_CD > world.time))
else if(resting && (world.time > rest_CD))
rest_CD = world.time + 20
StopResting()
/proc/is_blind(A)