mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user