Allow for oxygen tank refill message without trees.

This commit is contained in:
Noah Pilarski 2022-08-23 03:11:55 -04:00
parent 9d6993fdf6
commit c3d2073bc7
2 changed files with 6 additions and 1 deletions

View File

@ -46,7 +46,7 @@ namespace NewHorizons.Builder.Atmosphere
if (config.Atmosphere.hasOxygen) if (config.Atmosphere.hasOxygen)
{ {
airGO.AddComponent<OxygenVolume>(); airGO.AddComponent<OxygenVolume>()._treeVolume = config.Atmosphere.hasTrees;
} }
if (config.Atmosphere.hasRain) if (config.Atmosphere.hasRain)

View File

@ -74,6 +74,11 @@ namespace NewHorizons.External.Modules
/// </summary> /// </summary>
public bool hasOxygen; public bool hasOxygen;
/// <summary>
/// Does this planet have trees? This will change the "Oxygen tank refilled" to "Trees detected, oxygen tank refilled".
/// </summary>
public bool hasTrees;
/// <summary> /// <summary>
/// Does this planet have rain? /// Does this planet have rain?
/// </summary> /// </summary>