mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-25 08:05:31 +01:00
07bfaeca8b
## About The Pull Request During message hearing, mobs are displayed two versions of the message they hear, determined by the languages they understand, their mob type (AI's and ghosts get follow buttons, for example), and special handling for runechat. It's a bit of a deep drive, but this bug's been present since #62130. This implements a check for the flag being sent down, so that when the runechat is generated, we don't get the cleared placeholder string set in `/mob/proc/check_for_custom_say_emote()` - set because the message is never meant to be parsed as a chat message. Before, the message string sent down `/mob/dead/observer/Hear()` did not know the message was an emote, so the message passed to the function that generates the runechat receives the placeholder string. With this PR, that function now receives the correct string, the same as living would handle it. While searching for this bug, I found that a variable was set, but never used more than once in `/mob/living/Hear()` - I changed the code that accesses this variable to access the saved inline version instead (hopefully saving some cpu!!). ## Why It's Good For The Game ## Changelog 🆑 fix: fixed runechat's for radio emotes appearing incorrectly for observers code: reuse the emote check from living's hearing function /🆑