Remove unncessary isRelativeToGroup property on quantum sockets

This commit is contained in:
Joshua Thome 2023-03-18 10:54:51 -05:00
parent 62dcc92dbb
commit 1c0466f04f
2 changed files with 1 additions and 12 deletions

View File

@ -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];

View File

@ -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>