From e1ad1df2cb7a4b43f4437f45acac8c47fd72c894 Mon Sep 17 00:00:00 2001 From: ArrisFairburne Date: Tue, 22 Apr 2025 14:07:33 -0400 Subject: [PATCH] Synth brain messenger notif (#3510) ## About The Pull Request Getting a message to your brain PDA, as a synth, will now show the detailed messenger app chat message (instead of the notification sound only). ## Why It's Good For The Game Convenience, so synth crew know more easily when they get a message on their brain PDAs. ## Proof Of Testing
Screenshots/Videos Did this with the roundstart RD PDA and a synthetic character's brain PDA. The message with the positronic brain icon (it is fuckin small) indicates it comes from the synth brain. ![image](https://github.com/user-attachments/assets/4e894b8e-e825-49dc-8a66-cc15a2ad3d2b)
## Changelog :cl: qol: synth brain PDAs now have the detailed NTOS messenger notification to their brain owners /:cl: --- .../file_system/programs/messenger/messenger_program.dm | 8 ++++++++ .../code/bodyparts/internal_computer/internal_computer.dm | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm b/code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm index 78af8af7136..3600fb7129a 100644 --- a/code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm +++ b/code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm @@ -717,6 +717,14 @@ if(computer.loc && isliving(computer.loc)) receievers += computer.loc + /// BUBBER EDIT BEGINS - Synths get notified if their brain PDA is messaged + if(istype(computer, /obj/item/modular_computer/pda/synth)) + var/obj/item/organ/brain/synth/brain_loc = computer.loc + var/mob/living/carbon/owner = brain_loc?.bodypart_owner?.owner + if(istype(owner)) + receievers += owner + /// BUBBER EDIT ENDS + // resolving w/o nullcheck here, assume the messenger exists if a real person sent a message var/datum/computer_file/program/messenger/sender_messenger = chat.recipient?.resolve() diff --git a/modular_skyrat/modules/synths/code/bodyparts/internal_computer/internal_computer.dm b/modular_skyrat/modules/synths/code/bodyparts/internal_computer/internal_computer.dm index e39b8fca3f4..c8d42d4e88c 100644 --- a/modular_skyrat/modules/synths/code/bodyparts/internal_computer/internal_computer.dm +++ b/modular_skyrat/modules/synths/code/bodyparts/internal_computer/internal_computer.dm @@ -1,7 +1,10 @@ /// Custom computer for synth brains /obj/item/modular_computer/pda/synth name = "virtual persocom" - + icon = 'icons/obj/devices/assemblies.dmi' + icon_state = "posibrain" + base_icon_state = "posibrain" + greyscale_config = null base_active_power_usage = 0 WATTS base_idle_power_usage = 0 WATTS