]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
[tweak] make maxcaps sqrt-scaling (#16016)
authorIlya246 <57039557+Ilya246@users.noreply.github.com>
Tue, 2 May 2023 22:12:09 +0000 (02:12 +0400)
committerGitHub <noreply@github.com>
Tue, 2 May 2023 22:12:09 +0000 (16:12 -0600)
Content.Server/Atmos/Components/GasTankComponent.cs
Content.Server/Atmos/EntitySystems/GasTankSystem.cs

index 37fc58377c8fce47358d27b9009ec2babdce7877..ce9f4f3e797a9e7aeab5c53505694922ac494806 100644 (file)
@@ -83,7 +83,7 @@ namespace Content.Server.Atmos.Components
         ///     Increases explosion for each scale kPa above threshold.
         /// </summary>
         [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();
index f39fdcb8b099edb81999f8d72c1d2028c739686e..220d47520c960ff2075500113292f6162f36e6a6 100644 (file)
@@ -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