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
This commit is contained in:
@@ -40,7 +40,14 @@ namespace Content.Client.Power.APC.UI
|
||||
|
||||
if (PowerLabel != null)
|
||||
{
|
||||
PowerLabel.Text = Loc.GetString("apc-menu-power-state-label-text", ("power", castState.Power));
|
||||
if (castState.Tripped)
|
||||
{
|
||||
PowerLabel.Text = Loc.GetString("apc-menu-power-state-label-tripped");
|
||||
}
|
||||
else
|
||||
{
|
||||
PowerLabel.Text = Loc.GetString("apc-menu-power-state-label-text", ("power", castState.Power), ("maxLoad", castState.MaxLoad));
|
||||
}
|
||||
}
|
||||
|
||||
if (ExternalPowerStateLabel != null)
|
||||
|
||||
Reference in New Issue
Block a user