Gas injector visuals & balance (#8963)

This commit is contained in:
Leon Friedrich
2022-06-21 14:04:55 +12:00
committed by GitHub
parent a59ceabfbe
commit 229627a934
8 changed files with 66 additions and 10 deletions

View File

@@ -66,6 +66,8 @@ namespace Content.Server.Atmos.Piping.Binary.EntitySystems
return;
}
appearance?.SetData(PumpVisuals.Enabled, true);
var inputStartingPressure = inlet.Air.Pressure;
var outputStartingPressure = outlet.Air.Pressure;
@@ -77,7 +79,6 @@ namespace Content.Server.Atmos.Piping.Binary.EntitySystems
if ((outputStartingPressure - inputStartingPressure > pump.OverclockThreshold) && pump.Overclocked)
return;
appearance?.SetData(PumpVisuals.Enabled, true);
_ambientSoundSystem.SetAmbience(pump.Owner, true);
// We multiply the transfer rate in L/s by the seconds passed since the last process to get the liters.