From: Ilya246 <57039557+Ilya246@users.noreply.github.com> Date: Tue, 2 May 2023 22:12:09 +0000 (+0400) Subject: [tweak] make maxcaps sqrt-scaling (#16016) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=ca6a92a7465aebf464ab094577f556eefb9c707b;p=space-station-14.git [tweak] make maxcaps sqrt-scaling (#16016) --- diff --git a/Content.Server/Atmos/Components/GasTankComponent.cs b/Content.Server/Atmos/Components/GasTankComponent.cs index 37fc58377c..ce9f4f3e79 100644 --- a/Content.Server/Atmos/Components/GasTankComponent.cs +++ b/Content.Server/Atmos/Components/GasTankComponent.cs @@ -83,7 +83,7 @@ namespace Content.Server.Atmos.Components /// Increases explosion for each scale kPa above threshold. /// [DataField("tankFragmentScale")] - public float TankFragmentScale { get; set; } = 10 * Atmospherics.OneAtmosphere; + public float TankFragmentScale { get; set; } = 2 * Atmospherics.OneAtmosphere; [DataField("toggleAction", required: true)] public InstantAction ToggleAction = new(); diff --git a/Content.Server/Atmos/EntitySystems/GasTankSystem.cs b/Content.Server/Atmos/EntitySystems/GasTankSystem.cs index f39fdcb8b0..220d47520c 100644 --- a/Content.Server/Atmos/EntitySystems/GasTankSystem.cs +++ b/Content.Server/Atmos/EntitySystems/GasTankSystem.cs @@ -263,7 +263,7 @@ namespace Content.Server.Atmos.EntitySystems } pressure = component.Air.Pressure; - var range = (pressure - component.TankFragmentPressure) / component.TankFragmentScale; + var range = MathF.Sqrt((pressure - component.TankFragmentPressure) / component.TankFragmentScale); // Let's cap the explosion, yeah? // !1984