more traits

This commit is contained in:
Timothy Teakettle
2020-09-30 02:58:58 +01:00
parent f9cf7429e1
commit d783eb58bd
3 changed files with 18 additions and 14 deletions
+6 -5
View File
@@ -10,11 +10,12 @@
//Force-set resting variable, without needing to resist/etc.
/mob/living/proc/set_resting(new_resting, silent = FALSE, updating = TRUE)
if(new_resting != resting)
resting = new_resting
if(!silent)
to_chat(src, "<span class='notice'>You are now [resting? "resting" : "getting up"].</span>")
update_resting(updating)
if(!HAS_TRAIT(src, TRAIT_REST_LOCKED))
if(new_resting != resting)
resting = new_resting
if(!silent)
to_chat(src, "<span class='notice'>You are now [resting? "resting" : "getting up"].</span>")
update_resting(updating)
/mob/living/proc/update_resting(update_mobility = TRUE)
if(update_mobility)