Show volume on the gas analyzer (#25720)
The gas analyzer now shows the volume of pipes, tanks, canisters and the environment. Adjust gas analyzers so that the volume and number of moles shown corresponds to only the scanned element, e.g. a canister or single pipe in a pipenet.
This commit is contained in:
@@ -151,7 +151,8 @@ public sealed class RadiationCollectorSystem : EntitySystem
|
||||
if (!TryGetLoadedGasTank(uid, out var gasTankComponent))
|
||||
return;
|
||||
|
||||
args.GasMixtures = new Dictionary<string, GasMixture?> { { Name(uid), gasTankComponent.Air } };
|
||||
args.GasMixtures ??= new List<(string, GasMixture?)>();
|
||||
args.GasMixtures.Add((Name(uid), gasTankComponent.Air));
|
||||
}
|
||||
|
||||
public void ToggleCollector(EntityUid uid, EntityUid? user = null, RadiationCollectorComponent? component = null)
|
||||
|
||||
Reference in New Issue
Block a user