mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Remove unncessary isRelativeToGroup property on quantum sockets
This commit is contained in:
parent
62dcc92dbb
commit
1c0466f04f
@ -50,14 +50,7 @@ namespace NewHorizons.Builder.Props
|
||||
{
|
||||
var socketInfo = quantumGroup.sockets[i];
|
||||
|
||||
var socket = GeneralPropBuilder.MakeNew("Socket " + i, sector?.transform ?? go.transform, socketInfo);
|
||||
|
||||
if (socketInfo.isRelativeToGroup)
|
||||
{
|
||||
socket.transform.parent = groupRoot.transform;
|
||||
socket.transform.localPosition = socketInfo.position;
|
||||
socket.transform.localEulerAngles = socketInfo.rotation;
|
||||
}
|
||||
var socket = GeneralPropBuilder.MakeNew("Socket " + i, groupRoot.transform, socketInfo);
|
||||
|
||||
sockets[i] = socket.AddComponent<QuantumSocket>();
|
||||
sockets[i]._lightSources = new Light[0];
|
||||
|
||||
4
NewHorizons/External/Modules/PropModule.cs
vendored
4
NewHorizons/External/Modules/PropModule.cs
vendored
@ -801,10 +801,6 @@ namespace NewHorizons.External.Modules
|
||||
[JsonObject]
|
||||
public class QuantumSocketInfo : GeneralPropInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether the socket will be placed relative to the group it belongs to. Overrides `isRelativeToParent`
|
||||
/// </summary>
|
||||
[DefaultValue(true)] public bool isRelativeToGroup = true;
|
||||
/// <summary>
|
||||
/// The probability any props that are part of this group will occupy this socket
|
||||
/// </summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user