Don't show grilles in the power monitor (#16962)
This commit is contained in:
committed by
GitHub
parent
004c2017ff
commit
e3ec80b648
@@ -16,6 +16,10 @@ namespace Content.Server.Power.Components
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float DrawRate { get => NetworkLoad.DesiredPower; set => NetworkLoad.DesiredPower = value; }
|
||||
|
||||
[DataField("showInMonitor")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool ShowInMonitor { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// How much power this is currently receiving from <see cref="PowerSupplierComponent"/>s.
|
||||
/// </summary>
|
||||
|
||||
@@ -53,6 +53,9 @@ internal sealed class PowerMonitoringConsoleSystem : EntitySystem
|
||||
{
|
||||
foreach (PowerConsumerComponent pcc in netQ.Consumers)
|
||||
{
|
||||
if (!pcc.ShowInMonitor)
|
||||
continue;
|
||||
|
||||
loads.Add(LoadOrSource(pcc, pcc.DrawRate, false));
|
||||
totalLoads += pcc.DrawRate;
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: FlimsyMetallic
|
||||
- type: PowerConsumer
|
||||
showInMonitor: false
|
||||
- type: Electrified
|
||||
requirePower: true
|
||||
noWindowInTile: true
|
||||
|
||||
Reference in New Issue
Block a user