mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
Fixes an oversight with tail pulling and the Bad Touch trait (#62784)
This commit is contained in:
@@ -833,10 +833,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
|
||||
|
||||
@@ -423,7 +423,11 @@
|
||||
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)
|
||||
|
||||
else
|
||||
SEND_SIGNAL(src, COMSIG_CARBON_HUGGED, M)
|
||||
SEND_SIGNAL(M, COMSIG_CARBON_HUG, M, src)
|
||||
|
||||
Reference in New Issue
Block a user