From d87d280b749298c1942a49bf4c8cba446ba998a0 Mon Sep 17 00:00:00 2001
From: Christer2222 <25958019+Christer2222@users.noreply.github.com>
Date: Fri, 5 Dec 2025 23:12:28 +0100
Subject: [PATCH] Targeting either hands on help intent now requests a
handshake (#30927)
* handshake
* removed unused comment
* linting
* formatting
---
.../modules/mob/living/carbon/carbon_procs.dm | 26 ++++++++++++-------
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/code/modules/mob/living/carbon/carbon_procs.dm b/code/modules/mob/living/carbon/carbon_procs.dm
index 2aa971636a4..23f6ed283ba 100644
--- a/code/modules/mob/living/carbon/carbon_procs.dm
+++ b/code/modules/mob/living/carbon/carbon_procs.dm
@@ -286,16 +286,24 @@
return
// BEGIN HUGCODE - N3X
playsound(get_turf(src), 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
- if(M.zone_selected == "head")
- M.visible_message(\
- "[M] pats [src] on the head.",\
- "You pat [src] on the head.",\
- )
- return
- M.visible_message(\
- "[M] gives [src] a [pick("hug","warm embrace")].",\
- "You hug [src].",\
+
+ switch(M.zone_selected)
+ if("head")
+ M.visible_message(
+ "[M] pats [src] on the head.",
+ "You pat [src] on the head.",
+ )
+ return
+ if("l_hand", "r_hand")
+ M.emote("handshake")
+ return
+
+ M.visible_message(
+ "[M] gives [src] a [pick("hug","warm embrace")].",
+ "You hug [src].",
)
+
+
if(ishuman(src))
var/mob/living/carbon/human/H = src
if(H.wear_suit)