mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add option to disable proxy generation #700
This commit is contained in:
parent
621ab4e33a
commit
37032ca222
6
NewHorizons/External/Modules/BaseModule.cs
vendored
6
NewHorizons/External/Modules/BaseModule.cs
vendored
@ -79,6 +79,12 @@ namespace NewHorizons.External.Modules
|
||||
/// </summary>
|
||||
public bool pushable;
|
||||
|
||||
/// <summary>
|
||||
/// Set this to true to have no proxy be generated for this planet.
|
||||
/// This is a small representation of the planet that appears when it is outside of the regular Unity camera range.
|
||||
/// </summary>
|
||||
public bool hideProxy;
|
||||
|
||||
#region Obsolete
|
||||
|
||||
[Obsolete("IsSatellite is deprecated, please use ShowMinimap instead")]
|
||||
|
||||
@ -493,7 +493,7 @@ namespace NewHorizons.Handlers
|
||||
var remnant = otherBodies.Where(x => x.Config.isStellarRemnant && x.Config.name == body.Config.name).FirstOrDefault();
|
||||
// TODO: add proxies for quantum states
|
||||
//var quantumStates = otherBodies.Where(x => x.Config.isQuantumState && x.Config.name == body.Config.name).ToArray();
|
||||
if (!(body.Config.Cloak != null && body.Config.Cloak.radius != 0f))
|
||||
if (!(body.Config.Cloak != null && body.Config.Cloak.radius != 0f) && !body.Config.Base.hideProxy)
|
||||
{
|
||||
Delay.FireOnNextUpdate(() =>
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user