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>
This commit is contained in:
Henri215
2023-09-17 18:24:30 +01:00
committed by GitHub
co-authored by DGamerL
parent 05c6654fce
commit baf810e53f
+4
View File
@@ -15,6 +15,10 @@
user.do_attack_animation(M)
playsound(M, hitsound, 50, TRUE, -1)
user.visible_message("<span class='danger'>[user] slaps [M]!</span>", "<span class='notice'>You slap [M]!</span>", "<span class='hear'>You hear a slap.</span>")
if(iscarbon(M))
var/mob/living/carbon/C = M
if(C.IsSleeping())
C.AdjustSleeping(-15 SECONDS)
if(force)
return ..()