Drowsiness Changes (#11996)

* Drowsiness Changes

* Spelling Fixes
This commit is contained in:
Doxxmedearly
2021-06-24 21:48:15 -03:00
committed by GitHub
parent da1ba3bd84
commit d548614525
18 changed files with 73 additions and 49 deletions
@@ -225,7 +225,7 @@
if(ishuman(toucher) && prob(weakness * 100))
var/mob/living/carbon/human/H = toucher
to_chat(H, pick("<span class='notice'>You feel like taking a nap.</span>","<span class='notice'>You feel a yawn coming on.</span>","<span class='notice'>You feel a little tired.</span>"))
H.drowsyness = min(H.drowsyness + rand(5,25) * weakness, 50 * weakness)
H.drowsiness = min(H.drowsiness + rand(5,25) * weakness, 50 * weakness)
H.eye_blurry = min(H.eye_blurry + rand(1,3) * weakness, 50 * weakness)
else
to_chat(toucher, SPAN_WARNING("SYSTEM ALERT: CPU cycles slowing down!"))
@@ -244,7 +244,7 @@
if(prob(weakness * 100))
if(prob(10))
to_chat(H, pick("<span class='notice'>You feel like taking a nap.</span>","<span class='notice'>You feel a yawn coming on.</span>","<span class='notice'>You feel a little tired.</span>"))
H.drowsyness = min(H.drowsyness + 1 * weakness, 25 * weakness)
H.drowsiness = min(H.drowsiness + 1 * weakness, 25 * weakness)
H.eye_blurry = min(H.eye_blurry + 1 * weakness, 25 * weakness)
return TRUE
@@ -260,7 +260,7 @@
var/weakness = GetAnomalySusceptibility(H)
if(prob(weakness * 100))
to_chat(H, pick("<span class='notice'>You feel like taking a nap.</span>","<span class='notice'>You feel a yawn coming on.</span>","<span class='notice'>You feel a little tired.</span>"))
H.drowsyness = min(H.drowsyness + rand(5,15) * weakness, 50 * weakness)
H.drowsiness = min(H.drowsiness + rand(5,15) * weakness, 50 * weakness)
H.eye_blurry = min(H.eye_blurry + rand(5,15) * weakness, 50 * weakness)
return TRUE