From 7dfef3684bcc1c4e64efe901faa8a015cf6035c9 Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Wed, 17 Dec 2025 04:04:54 +0100 Subject: [PATCH] Fixes runechat offsets for stored mobs (#94470) ## About The Pull Request Stored mobs wider than 32 pixels, like worn purple raptors, would have offset runechat messages because they tried to use their own base_pixel_w instead of base_pixel_w of the atom that actually displayed the message ## Changelog :cl: fix: Fixed runechat offsets for stored mobs /:cl: --- code/datums/chatmessage.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/chatmessage.dm b/code/datums/chatmessage.dm index 90f577fe3dc..cf555170b68 100644 --- a/code/datums/chatmessage.dm +++ b/code/datums/chatmessage.dm @@ -270,7 +270,7 @@ message.appearance_flags = APPEARANCE_UI_IGNORE_ALPHA | KEEP_APART message.alpha = 0 message.pixel_z = starting_height - message.pixel_w = -target.base_pixel_w + message.pixel_w = -message_loc.base_pixel_w message.maptext_width = CHAT_MESSAGE_WIDTH message.maptext_height = mheight * 1.25 // We add extra because some characters are superscript, like actions message.maptext_x = (CHAT_MESSAGE_WIDTH - owner.bound_width) * -0.5