From 0d6fdb394331eb3dfbad819da02224b8607e3d94 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 18 Nov 2021 13:01:22 +0000 Subject: [PATCH] [MIRROR] Fixes an oversight with tail pulling and the Bad Touch trait [MDB IGNORE] (#9542) * Fixes an oversight with tail pulling and the Bad Touch trait * Fex Co-authored-by: necromanceranne <40847847+necromanceranne@users.noreply.github.com> Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> --- code/datums/quirks/negative.dm | 4 ++-- code/modules/mob/living/carbon/carbon_defense.dm | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/code/datums/quirks/negative.dm b/code/datums/quirks/negative.dm index cda331adeee..7e91e66b3f9 100644 --- a/code/datums/quirks/negative.dm +++ b/code/datums/quirks/negative.dm @@ -835,10 +835,10 @@ hardcore_value = 1 /datum/quirk/bad_touch/add() - RegisterSignal(quirk_holder, list(COMSIG_LIVING_GET_PULLED, COMSIG_CARBON_HUGGED, COMSIG_CARBON_HEADPAT), .proc/uncomfortable_touch) + RegisterSignal(quirk_holder, list(COMSIG_LIVING_GET_PULLED, COMSIG_CARBON_HUGGED, COMSIG_CARBON_HEADPAT, COMSIG_CARBON_TAILPULL), .proc/uncomfortable_touch) /datum/quirk/bad_touch/remove() - UnregisterSignal(quirk_holder, list(COMSIG_LIVING_GET_PULLED, COMSIG_CARBON_HUGGED, COMSIG_CARBON_HEADPAT)) + UnregisterSignal(quirk_holder, list(COMSIG_LIVING_GET_PULLED, COMSIG_CARBON_HUGGED, COMSIG_CARBON_HEADPAT, COMSIG_CARBON_TAILPULL)) /datum/quirk/bad_touch/proc/uncomfortable_touch() SIGNAL_HANDLER diff --git a/code/modules/mob/living/carbon/carbon_defense.dm b/code/modules/mob/living/carbon/carbon_defense.dm index 20a89a83887..d4c5fd1dcf4 100644 --- a/code/modules/mob/living/carbon/carbon_defense.dm +++ b/code/modules/mob/living/carbon/carbon_defense.dm @@ -491,7 +491,10 @@ null, span_hear("You hear a soft patter."), DEFAULT_MESSAGE_RANGE, list(M, src)) to_chat(M, span_notice("You pull on [src]'s tail!")) to_chat(src, span_notice("[M] pulls on your tail!")) - SEND_SIGNAL(src, COMSIG_ADD_MOOD_EVENT, "tailpulled", /datum/mood_event/tailpulled) + if(HAS_TRAIT(src, TRAIT_BADTOUCH)) //How dare they! + to_chat(M, span_warning("[src] makes a grumbling noise as you pull on [p_their()] tail.")) + else + SEND_SIGNAL(src, COMSIG_ADD_MOOD_EVENT, "tailpulled", /datum/mood_event/tailpulled) */ // SKYRAT EDIT END else SEND_SIGNAL(src, COMSIG_CARBON_HUGGED, M)