[tweak] make maxcaps sqrt-scaling (#16016)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user