Don't make hasRain obsolete

This commit is contained in:
Nick 2023-08-24 14:11:42 -04:00
parent 34a27f8c70
commit acadcc8300
2 changed files with 7 additions and 6 deletions

View File

@ -57,7 +57,6 @@ namespace NewHorizons.Builder.Atmosphere
airGO.AddComponent<OxygenVolume>()._treeVolume = config.Atmosphere.hasTrees;
}
// TODO: figure out what to change "config.Atmosphere.hasRain" to...
if (config.Atmosphere.hasRain)
{
var vref = airGO.AddComponent<VisorRainEffectVolume>();

View File

@ -74,6 +74,13 @@ namespace NewHorizons.External.Modules
/// </summary>
public bool hasTrees;
/// <summary>
/// Does this planet have rain?
/// This is equivalent to effects of setting a rain vection field, rain audio volume, and visor effect volume, combined for convenience.
/// For more control over the rain, use those individual components.
/// </summary>
public bool hasRain;
/// <summary>
/// Scale height of the atmosphere
/// </summary>
@ -163,7 +170,6 @@ namespace NewHorizons.External.Modules
/// How fast the clouds will rotate relative to the planet in degrees per second.
/// </summary>
[DefaultValue(0f)] public float rotationSpeed = 0f;
#region Obsolete
@ -179,10 +185,6 @@ namespace NewHorizons.External.Modules
#region Obsolete
[Obsolete("HasRain is deprecated, please use VectionFields instead")]
public bool hasRain;
[Obsolete("HasSnow is deprecated, please use VectionFields instead")]
public bool hasSnow;