Gas analyzer fix for gas pipe manifolds (#41325)

Initial commit
This commit is contained in:
chromiumboy
2025-11-06 00:20:37 -06:00
committed by GitHub
parent 7b1583085a
commit 53083ef771
2 changed files with 9 additions and 2 deletions

View File

@@ -51,6 +51,7 @@ public sealed partial class GasPipeManifoldSystem : EntitySystem
return;
var pipeNames = ent.Comp.InletNames.Union(ent.Comp.OutletNames);
var pipeCount = pipeNames.Count();
foreach (var pipeName in pipeNames)
{
@@ -58,8 +59,8 @@ public sealed partial class GasPipeManifoldSystem : EntitySystem
continue;
var pipeLocal = pipe.Air.Clone();
pipeLocal.Multiply(pipe.Volume / pipe.Air.Volume);
pipeLocal.Volume = pipe.Volume;
pipeLocal.Multiply(pipe.Volume * pipeCount / pipe.Air.Volume);
pipeLocal.Volume = pipe.Volume * pipeCount;
args.GasMixtures.Add((Name(ent), pipeLocal));
break;

View File

@@ -366,31 +366,37 @@
nodeGroupID: Pipe
pipeDirection: South
pipeLayer: 0
volume: 50
south1:
!type:PipeNode
nodeGroupID: Pipe
pipeDirection: South
pipeLayer: 1
volume: 50
south2:
!type:PipeNode
nodeGroupID: Pipe
pipeDirection: South
pipeLayer: 2
volume: 50
north0:
!type:PipeNode
nodeGroupID: Pipe
pipeDirection: North
pipeLayer: 0
volume: 50
north1:
!type:PipeNode
nodeGroupID: Pipe
pipeDirection: North
pipeLayer: 1
volume: 50
north2:
!type:PipeNode
nodeGroupID: Pipe
pipeDirection: North
pipeLayer: 2
volume: 50
- type: GasPipeManifold
- type: AtmosMonitoringConsoleDevice
navMapBlip: GasPipeManifold