Visual Indicator for Bad Touch Quirk (#56474)

Adds a visual indicator for when you trigger someone's Bad Touch quirk.

Players who have this quirk may not have the time to convey that they do
when hugged, as the hugger may be off-screen by the time the quirk holder
has finished typing a say or emote. This provides a clear indicator that
the quirk holder gets a negative moodlet from hugs.

Co-authored-by: Y0SH1M4S73R <Y0SH1M4S73R@github.com>
This commit is contained in:
Y0SH1M4S73R
2021-01-29 14:54:17 +00:00
committed by GitHub
co-authored by Y0SH1M4S73R
parent 4ea16463a3
commit 75da4a0b70
4 changed files with 19 additions and 0 deletions
@@ -450,6 +450,9 @@
null, "<span class='hear'>You hear a soft patter.</span>", DEFAULT_MESSAGE_RANGE, list(M, src))
to_chat(M, "<span class='notice'>You give [src] a pat on the head to make [p_them()] feel better!</span>")
to_chat(src, "<span class='notice'>[M] gives you a pat on the head to make you feel better! </span>")
if(HAS_TRAIT(src, TRAIT_BADTOUCH))
to_chat(M, "<span class='warning'>[src] looks visibly upset as you pat [p_them()] on the head.</span>")
else
SEND_SIGNAL(src, COMSIG_CARBON_HUGGED, M)
@@ -489,6 +492,9 @@
SEND_SIGNAL(src, COMSIG_ADD_MOOD_EVENT, "friendly_hug", /datum/mood_event/besthug, M)
else if (hugger_mood.sanity >= SANITY_DISTURBED)
SEND_SIGNAL(src, COMSIG_ADD_MOOD_EVENT, "friendly_hug", /datum/mood_event/betterhug, M)
if(HAS_TRAIT(src, TRAIT_BADTOUCH))
to_chat(M, "<span class='warning'>[src] looks visibly upset as you hug [p_them()].</span>")
AdjustStun(-60)
AdjustKnockdown(-60)