From baf810e53f787c51ebf2bdce04c1825ca156f872 Mon Sep 17 00:00:00 2001 From: Henri215 <77684085+Henri215@users.noreply.github.com> Date: Sun, 17 Sep 2023 14:24:30 -0300 Subject: [PATCH] Being slapped now wakes you up (#22408) * wake up already * moar * better now * Update code/game/objects/items/hand_item.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * lets make this run --------- Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --- code/game/objects/items/hand_item.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/game/objects/items/hand_item.dm b/code/game/objects/items/hand_item.dm index 1ebc82b8b8f..628b4cd1664 100644 --- a/code/game/objects/items/hand_item.dm +++ b/code/game/objects/items/hand_item.dm @@ -15,6 +15,10 @@ user.do_attack_animation(M) playsound(M, hitsound, 50, TRUE, -1) user.visible_message("[user] slaps [M]!", "You slap [M]!", "You hear a slap.") + if(iscarbon(M)) + var/mob/living/carbon/C = M + if(C.IsSleeping()) + C.AdjustSleeping(-15 SECONDS) if(force) return ..()