Drowsiness refactor (#62104)

Creates two procs in /mob/status_procs for handling drowsiness changes (with check for negative values), and refactors all code to use these procs instead of assigning values to the mob's drowsiness themselves.
This commit is contained in:
thatoneplebeian
2021-10-15 10:15:24 +01:00
committed by GitHub
parent e76eafd6cd
commit 2a826e7380
20 changed files with 68 additions and 55 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons)
if(ishuman(A))
var/mob/living/carbon/human/L = A
L.SetUnconscious(0)
L.drowsyness = 0
L.set_drowsyness(0)
L.SetSleeping(0)
sleep(30)
var/list/flooring_near_beacon = list()