From fdb17a83ded447e07ebfbaadeefc8aad6faea6e4 Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Fri, 7 Jul 2023 08:26:50 -0400 Subject: [PATCH] showers wake you up (#21530) --- code/modules/mob/living/living_defense.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm index fa5ad75f4b6..924b2a93e7d 100644 --- a/code/modules/mob/living/living_defense.dm +++ b/code/modules/mob/living/living_defense.dm @@ -237,6 +237,9 @@ /mob/living/water_act(volume, temperature, source, method = REAGENT_TOUCH) . = ..() adjust_fire_stacks(-(volume * 0.2)) + if(method == REAGENT_TOUCH) + // 100 volume - 20 seconds of lost sleep + AdjustSleeping(-(volume * 0.2 SECONDS), bound_lower = 1 SECONDS) // showers cannot save you from sleeping gas, 1 second lower boundary //This is called when the mob is thrown into a dense turf /mob/living/proc/turf_collision(turf/T, speed)