mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
change to rename because its better and matches other things
This commit is contained in:
parent
5c9c487201
commit
752f080099
@ -28,7 +28,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
{
|
{
|
||||||
if (quantumGroup.details == null || !quantumGroup.details.Any())
|
if (quantumGroup.details == null || !quantumGroup.details.Any())
|
||||||
{
|
{
|
||||||
NHLogger.LogError($"Found quantum group with no details - [{planetGO.name}] [{quantumGroup.name}]");
|
NHLogger.LogError($"Found quantum group with no details - [{planetGO.name}] [{quantumGroup.rename}]");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
lightningController._models = propsInGroup.Select(x => x.go).ToArray();
|
lightningController._models = propsInGroup.Select(x => x.go).ToArray();
|
||||||
lightningController.enabled = true;
|
lightningController.enabled = true;
|
||||||
|
|
||||||
lightning.name = "Quantum Lightning - " + quantumGroup.name;
|
lightning.name = quantumGroup.rename;
|
||||||
lightning.SetActive(true);
|
lightning.SetActive(true);
|
||||||
|
|
||||||
// Not sure why but it isn't enabling itself
|
// Not sure why but it isn't enabling itself
|
||||||
@ -96,7 +96,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
propsInGroup = propsInGroupList.ToArray();
|
propsInGroup = propsInGroupList.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
var groupRoot = new GameObject("Quantum Sockets - " + quantumGroup.name);
|
var groupRoot = new GameObject(quantumGroup.rename);
|
||||||
groupRoot.transform.parent = sector?.transform ?? planetGO.transform;
|
groupRoot.transform.parent = sector?.transform ?? planetGO.transform;
|
||||||
groupRoot.transform.localPosition = Vector3.zero;
|
groupRoot.transform.localPosition = Vector3.zero;
|
||||||
groupRoot.transform.localEulerAngles = Vector3.zero;
|
groupRoot.transform.localEulerAngles = Vector3.zero;
|
||||||
@ -179,7 +179,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
|
|
||||||
var propsInGroup = quantumGroup.details.Select(x => DetailBuilder.Make(go, sector, mod, x)).ToArray();
|
var propsInGroup = quantumGroup.details.Select(x => DetailBuilder.Make(go, sector, mod, x)).ToArray();
|
||||||
|
|
||||||
var groupRoot = new GameObject("Quantum States - " + quantumGroup.name);
|
var groupRoot = new GameObject(quantumGroup.rename);
|
||||||
groupRoot.transform.parent = sector?.transform ?? go.transform;
|
groupRoot.transform.parent = sector?.transform ?? go.transform;
|
||||||
groupRoot.transform.localPosition = Vector3.zero;
|
groupRoot.transform.localPosition = Vector3.zero;
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
public static void MakeShuffleGroup(GameObject go, Sector sector, BaseQuantumGroupInfo quantumGroup, GameObject[] propsInGroup)
|
public static void MakeShuffleGroup(GameObject go, Sector sector, BaseQuantumGroupInfo quantumGroup, GameObject[] propsInGroup)
|
||||||
{
|
{
|
||||||
//var averagePosition = propsInGroup.Aggregate(Vector3.zero, (avg, prop) => avg + prop.transform.position) / propsInGroup.Count();
|
//var averagePosition = propsInGroup.Aggregate(Vector3.zero, (avg, prop) => avg + prop.transform.position) / propsInGroup.Count();
|
||||||
GameObject shuffleParent = new GameObject("Quantum Shuffle - " + quantumGroup.name);
|
GameObject shuffleParent = new GameObject(quantumGroup.rename);
|
||||||
shuffleParent.SetActive(false);
|
shuffleParent.SetActive(false);
|
||||||
shuffleParent.transform.parent = sector?.transform ?? go.transform;
|
shuffleParent.transform.parent = sector?.transform ?? go.transform;
|
||||||
shuffleParent.transform.localPosition = Vector3.zero;
|
shuffleParent.transform.localPosition = Vector3.zero;
|
||||||
|
|||||||
4
NewHorizons/External/Configs/PlanetConfig.cs
vendored
4
NewHorizons/External/Configs/PlanetConfig.cs
vendored
@ -711,7 +711,7 @@ namespace NewHorizons.External.Configs
|
|||||||
{
|
{
|
||||||
var socketQuantumGroups = Props.quantumGroups.Where(x => x.type == QuantumGroupType.Sockets).Select(x => new SocketQuantumGroupInfo()
|
var socketQuantumGroups = Props.quantumGroups.Where(x => x.type == QuantumGroupType.Sockets).Select(x => new SocketQuantumGroupInfo()
|
||||||
{
|
{
|
||||||
name = x.id,
|
rename = "Quantum Shuffle - " + x.id,
|
||||||
sockets = x.sockets,
|
sockets = x.sockets,
|
||||||
details = Props.details.Where(y => y.quantumGroupID == x.id).Select(x => new QuantumDetailInfo(x)).ToArray()
|
details = Props.details.Where(y => y.quantumGroupID == x.id).Select(x => new QuantumDetailInfo(x)).ToArray()
|
||||||
});
|
});
|
||||||
@ -721,7 +721,7 @@ namespace NewHorizons.External.Configs
|
|||||||
}
|
}
|
||||||
var stateQuantumGroups = Props.quantumGroups.Where(x => x.type == QuantumGroupType.States).Select(x => new StateQuantumGroupInfo()
|
var stateQuantumGroups = Props.quantumGroups.Where(x => x.type == QuantumGroupType.States).Select(x => new StateQuantumGroupInfo()
|
||||||
{
|
{
|
||||||
name = x.id,
|
rename = "Quantum State - " + x.id,
|
||||||
hasEmptyState = x.hasEmptyState,
|
hasEmptyState = x.hasEmptyState,
|
||||||
loop = x.loop,
|
loop = x.loop,
|
||||||
sequential = x.sequential,
|
sequential = x.sequential,
|
||||||
|
|||||||
@ -5,7 +5,7 @@ public class BaseQuantumGroupInfo
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Optional name to help identify this group
|
/// Optional name to help identify this group
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string name;
|
public string rename;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// List of props which will be used in this quantum group
|
/// List of props which will be used in this quantum group
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user