mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Removable Star Controller
Adds an option to not add a star controller.
This commit is contained in:
parent
ed49e8b6af
commit
c2f2ddde7b
@ -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;
|
||||
|
||||
@ -24,5 +24,6 @@ namespace NewHorizons.External.Modules.VariableSize
|
||||
|
||||
[DefaultValue(true)]
|
||||
public bool GoSupernova { get; set; } = true;
|
||||
public bool HasStarController { get; set; } = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user