Fixes an oversight with the forked tongue (#94303)

## About The Pull Request

It was discovered that if a forked tongue is in an inventory slot, be it
your hands or pocket it gave you lizard speech. This is likely an
oversight that was missed for a long while. It seems likely it is
unintended behavior. This PR just adds a check to in the speechmod to
check if the items is a organ or not.
<details>
<summary>Screenshots</summary>

<img width="734" height="757" alt="image"
src="https://github.com/user-attachments/assets/f42d7993-0fad-4716-a18e-2db168253c98"
/>

<img width="470" height="631" alt="image"
src="https://github.com/user-attachments/assets/c0a4fe07-0e09-4aba-94e5-a62d5c1312ab"
/>

</details>

## Why It's Good For The Game

Less bugs and no silly behavior with a tongue not being inside of your
body.
This commit is contained in:
SomeRandomOwl
2025-12-04 17:41:24 -06:00
committed by GitHub
parent 85c223f512
commit eed95f2a22
+7 -4
View File
@@ -50,10 +50,13 @@
targeted = owner.loc
RegisterSignal(targeted, COMSIG_MOB_SAY, PROC_REF(handle_speech))
RegisterSignal(parent, COMSIG_ITEM_EQUIPPED, PROC_REF(on_equipped))
RegisterSignal(parent, COMSIG_ITEM_DROPPED, PROC_REF(on_unequipped))
RegisterSignal(parent, COMSIG_ORGAN_IMPLANTED, PROC_REF(on_implanted))
RegisterSignal(parent, COMSIG_ORGAN_REMOVED, PROC_REF(on_removed))
if (isorgan(parent))
RegisterSignal(parent, COMSIG_ORGAN_IMPLANTED, PROC_REF(on_implanted))
RegisterSignal(parent, COMSIG_ORGAN_REMOVED, PROC_REF(on_removed))
else
RegisterSignal(parent, COMSIG_ITEM_EQUIPPED, PROC_REF(on_equipped))
RegisterSignal(parent, COMSIG_ITEM_DROPPED, PROC_REF(on_unequipped))
/datum/component/speechmod/proc/handle_speech(datum/source, list/speech_args)
SIGNAL_HANDLER