mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Rename onlyAffectsPlayerAndShip to onlyAffectsPlayerRelatedBodies
because this is what it actually does
This commit is contained in:
parent
5503d2aad0
commit
b51b702313
@ -26,7 +26,7 @@ namespace NewHorizons.Builder.Volumes
|
|||||||
|
|
||||||
volume._collider = collider;
|
volume._collider = collider;
|
||||||
volume._shrinkBodies = info.shrinkBodies;
|
volume._shrinkBodies = info.shrinkBodies;
|
||||||
volume._onlyAffectsPlayerAndShip = info.onlyAffectsPlayerAndShip;
|
volume._onlyAffectsPlayerAndShip = info.onlyAffectsPlayerRelatedBodies;
|
||||||
|
|
||||||
go.SetActive(true);
|
go.SetActive(true);
|
||||||
|
|
||||||
|
|||||||
8
NewHorizons/External/Configs/PlanetConfig.cs
vendored
8
NewHorizons/External/Configs/PlanetConfig.cs
vendored
@ -616,6 +616,14 @@ namespace NewHorizons.External.Configs
|
|||||||
CometTail.rotationOverride = Base.cometTailRotation;
|
CometTail.rotationOverride = Base.cometTailRotation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Volumes?.destructionVolumes != null)
|
||||||
|
{
|
||||||
|
foreach (var destructionVolume in Volumes.destructionVolumes)
|
||||||
|
{
|
||||||
|
if (destructionVolume.onlyAffectsPlayerAndShip) destructionVolume.onlyAffectsPlayerRelatedBodies = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
|
||||||
namespace NewHorizons.External.Modules.Volumes.VolumeInfos
|
namespace NewHorizons.External.Modules.Volumes.VolumeInfos
|
||||||
@ -12,9 +13,11 @@ namespace NewHorizons.External.Modules.Volumes.VolumeInfos
|
|||||||
[DefaultValue(true)] public bool shrinkBodies = true;
|
[DefaultValue(true)] public bool shrinkBodies = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether this volume only affects the player and ship.
|
/// Whether this volume only affects the player, ship, probe/scout, model rocket ship, and nomai shuttle.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool onlyAffectsPlayerAndShip;
|
public bool onlyAffectsPlayerRelatedBodies;
|
||||||
|
|
||||||
|
[Obsolete] public bool onlyAffectsPlayerAndShip;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user