mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
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:
@@ -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 ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user