From 4b849174d02820c8a78a35696f6d4e0919da4dbe Mon Sep 17 00:00:00 2001 From: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Date: Sun, 28 Dec 2025 22:01:29 -0500 Subject: [PATCH] Messenger no longer force opens its UI (#94628) ## About The Pull Request By default, ``use_energy`` will take 0 as the amount of energy to use, turning it into a basic "check if we have power" check, however if we don't exclude ``check_programs`` arg, and because it doesn't use any power, it will loop through every PDA app to see if they are able to be opened while unpowered, and opening those that can operate while powered (aka the PDA messenger). This is the case for PDA Messenger, so if you're using any app and get a PDA message, or you reply to one, it will call ``ring()``, which will call ``use_energy``, which will swap the PDA app to messenger as if the PDA has no power. This fixes that. ## Why It's Good For The Game Closes https://github.com/tgstation/tgstation/issues/76965 ## Changelog :cl: fix: PDA messenger will no longer force itself as your active program when sending/receiving PDA messages. /:cl: --- code/modules/modular_computers/computers/item/computer.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/modular_computers/computers/item/computer.dm b/code/modules/modular_computers/computers/item/computer.dm index 8fd0fbcf70e..c213b351e88 100644 --- a/code/modules/modular_computers/computers/item/computer.dm +++ b/code/modules/modular_computers/computers/item/computer.dm @@ -625,7 +625,7 @@ physical.loc.visible_message(span_notice("[icon2html(physical, viewers(physical.loc))] \The [src] displays a [call_source.filedesc] notification: [alerttext]")) /obj/item/modular_computer/proc/ring(ringtone, list/balloon_alertees) // bring bring - if(!use_energy()) + if(!use_energy(check_programs = FALSE)) return if(HAS_TRAIT(SSstation, STATION_TRAIT_PDA_GLITCHED)) playsound(src, pick(