Add atmos time compression (#21954)
Add atmos.speedup which is effectively a atmos-only time compression CVar. This adjusts heat capacities and transfer rates to effectively globally speed up the time constants of atmos. This allows faster response to heating/cooling changes and faster cleanups (by buffing scrubbers, pumps, and everything else) that is tunable through one global time compression CVar. It also achieves this without any thermodynamic unsoundness.
This commit is contained in:
@@ -145,7 +145,7 @@ namespace Content.Server.Atmos.Portable
|
||||
|
||||
private bool Scrub(float timeDelta, PortableScrubberComponent scrubber, GasMixture? tile)
|
||||
{
|
||||
return _scrubberSystem.Scrub(timeDelta, scrubber.TransferRate, ScrubberPumpDirection.Scrubbing, scrubber.FilterGases, tile, scrubber.Air);
|
||||
return _scrubberSystem.Scrub(timeDelta, scrubber.TransferRate * _atmosphereSystem.PumpSpeedup(), ScrubberPumpDirection.Scrubbing, scrubber.FilterGases, tile, scrubber.Air);
|
||||
}
|
||||
|
||||
private void UpdateAppearance(EntityUid uid, bool isFull, bool isRunning)
|
||||
|
||||
Reference in New Issue
Block a user