Electrocution. (#4958)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
This commit is contained in:
committed by
GitHub
parent
66a3d5bf29
commit
ed3bf94a3b
@@ -171,6 +171,9 @@ namespace Content.Server.Power.Pow3r
|
||||
battery.LoadingDemandMarked = true;
|
||||
}
|
||||
|
||||
network.LastAvailableSupplySum = availableSupplySum;
|
||||
network.LastMaxSupplySum = maxSupplySum;
|
||||
|
||||
var met = Math.Min(demand, availableSupplySum);
|
||||
|
||||
if (met != 0)
|
||||
|
||||
@@ -451,6 +451,9 @@ namespace Content.Server.Power.Pow3r
|
||||
// "Supplying" means the network is connected to the OUTPUT port of the battery.
|
||||
[ViewVariables] public List<NodeId> BatteriesDischarging = new();
|
||||
|
||||
[ViewVariables] public float LastAvailableSupplySum = 0f;
|
||||
[ViewVariables] public float LastMaxSupplySum = 0f;
|
||||
|
||||
[ViewVariables] [JsonIgnore] public int Height;
|
||||
[JsonIgnore] public bool HeightTouched;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user