Configurable shock speeds

This commit is contained in:
Noah Pilarski 2022-07-14 23:26:17 -04:00
parent 4069a21684
commit 7c981b32a4
2 changed files with 12 additions and 0 deletions

View File

@ -27,6 +27,8 @@ namespace NewHorizons.Builder.Atmosphere
ShockLayerRuleset shockLayerRuleset = planetGO.GetComponentInChildren<PlanetoidRuleset>().gameObject.AddComponent<ShockLayerRuleset>();
shockLayerRuleset._type = ShockLayerRuleset.ShockType.Atmospheric;
shockLayerRuleset._radialCenter = airGO.transform;
shockLayerRuleset._minShockSpeed = config.Atmosphere.minShockSpeed;
shockLayerRuleset._maxShockSpeed = config.Atmosphere.maxShockSpeed;
if (config.Atmosphere.clouds != null)
{

View File

@ -86,6 +86,16 @@ namespace NewHorizons.External.Modules
/// </summary>
public bool useAtmosphereShader;
/// <summary>
/// Minimum speed that your ship can go in the atmosphere where flames will appear.
/// </summary>
[DefaultValue(100f)] public float minShockSpeed = 100f;
/// <summary>
/// Maximum speed that your ship can go in the atmosphere where flames will appear at their brightest.
/// </summary>
[DefaultValue(300f)] public float maxShockSpeed = 300f;
[JsonObject]
public class CloudInfo
{