Removable Star Controller

Adds an option to not add a star controller.
This commit is contained in:
Noah Pilarski 2022-05-19 23:26:31 -04:00
parent ed49e8b6af
commit c2f2ddde7b
3 changed files with 7 additions and 1 deletions

View File

@ -105,7 +105,7 @@ namespace NewHorizons.Builder.Body
proxyShadowLight._light = light;
StarController starController = null;
if (starModule.SolarLuminosity != 0)
if (starModule.SolarLuminosity != 0 && starModule.HasStarController)
{
starController = planetGO.AddComponent<StarController>();
starController.Light = light;

View File

@ -24,5 +24,6 @@ namespace NewHorizons.External.Modules.VariableSize
[DefaultValue(true)]
public bool GoSupernova { get; set; } = true;
public bool HasStarController { get; set; } = true;
}
}

View File

@ -666,6 +666,11 @@
"type": "boolean",
"default": true,
"description": "Should this star explode after 22 minutes?"
},
"hasStarController": {
"type": "boolean",
"default": true,
"description": "Should we add a star controller to this body? If you want clouds to work on a binary brown dwarf system, set this to false."
}
}
},