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