Swaps HV/MV/LV scaling to supply power scaling (#20880)

This commit is contained in:
TemporalOroboros
2023-10-18 14:04:47 -07:00
committed by GitHub
parent dffc32163e
commit 414701dd3b
5 changed files with 45 additions and 45 deletions

View File

@@ -170,6 +170,7 @@ namespace Content.Server.Power.Pow3r
}
}
network.LastCombinedLoad = demand;
network.LastCombinedSupply = totalSupply + totalBatterySupply;
network.LastCombinedMaxSupply = totalMaxSupply + totalMaxBatterySupply;

View File

@@ -488,6 +488,11 @@ namespace Content.Server.Power.Pow3r
/// </summary>
[ViewVariables] public List<NodeId> BatterySupplies = new();
/// <summary>
/// The total load on the power network as of last tick.
/// </summary>
[ViewVariables] public float LastCombinedLoad = 0f;
/// <summary>
/// Available supply, including both normal supplies and batteries.
/// </summary>