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;
|
proxyShadowLight._light = light;
|
||||||
|
|
||||||
StarController starController = null;
|
StarController starController = null;
|
||||||
if (starModule.SolarLuminosity != 0)
|
if (starModule.SolarLuminosity != 0 && starModule.HasStarController)
|
||||||
{
|
{
|
||||||
starController = planetGO.AddComponent<StarController>();
|
starController = planetGO.AddComponent<StarController>();
|
||||||
starController.Light = light;
|
starController.Light = light;
|
||||||
|
|||||||
@ -24,5 +24,6 @@ namespace NewHorizons.External.Modules.VariableSize
|
|||||||
|
|
||||||
[DefaultValue(true)]
|
[DefaultValue(true)]
|
||||||
public bool GoSupernova { get; set; } = true;
|
public bool GoSupernova { get; set; } = true;
|
||||||
|
public bool HasStarController { get; set; } = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -666,6 +666,11 @@
|
|||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": true,
|
"default": true,
|
||||||
"description": "Should this star explode after 22 minutes?"
|
"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