From a5c223c0c3d14d790b987f368f89534e1b6dd281 Mon Sep 17 00:00:00 2001 From: Partmedia Date: Fri, 21 Nov 2025 07:01:23 -0800 Subject: [PATCH] Trip APCs when they exceed a power limit (#41377) * Implement APC overloading * Add power test * Review * Some more reviews * Show map coordinates for test failures * Widen column 2 * Reduce singularity beacon power consumption * Try to get grid coordinates --- Content.Client/Power/APC/UI/ApcMenu.xaml | 2 +- Content.Client/Power/APC/UI/ApcMenu.xaml.cs | 9 ++- .../Tests/Power/StationPowerTests.cs | 75 ++++++++++++++----- .../Power/Components/ApcComponent.cs | 28 ++++++- .../Power/EntitySystems/ApcSystem.cs | 34 ++++++++- Content.Shared/APC/SharedApc.cs | 12 ++- Resources/Locale/en-US/ui/power-apc.ftl | 3 +- .../Syndicate_Gadgets/singularity_beacon.yml | 2 +- 8 files changed, 137 insertions(+), 28 deletions(-) diff --git a/Content.Client/Power/APC/UI/ApcMenu.xaml b/Content.Client/Power/APC/UI/ApcMenu.xaml index 4c14dcc0ad..682aea55d2 100644 --- a/Content.Client/Power/APC/UI/ApcMenu.xaml +++ b/Content.Client/Power/APC/UI/ApcMenu.xaml @@ -19,7 +19,7 @@