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())
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
@ -72,7 +72,7 @@ namespace NewHorizons.Builder.Props
|
||||
lightningController._models = propsInGroup.Select(x => x.go).ToArray();
|
||||
lightningController.enabled = true;
|
||||
|
||||
lightning.name = "Quantum Lightning - " + quantumGroup.name;
|
||||
lightning.name = quantumGroup.rename;
|
||||
lightning.SetActive(true);
|
||||
|
||||
// Not sure why but it isn't enabling itself
|
||||
@ -96,7 +96,7 @@ namespace NewHorizons.Builder.Props
|
||||
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.localPosition = 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 groupRoot = new GameObject("Quantum States - " + quantumGroup.name);
|
||||
var groupRoot = new GameObject(quantumGroup.rename);
|
||||
groupRoot.transform.parent = sector?.transform ?? go.transform;
|
||||
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)
|
||||
{
|
||||
//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.transform.parent = sector?.transform ?? go.transform;
|
||||
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()
|
||||
{
|
||||
name = x.id,
|
||||
rename = "Quantum Shuffle - " + x.id,
|
||||
sockets = x.sockets,
|
||||
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()
|
||||
{
|
||||
name = x.id,
|
||||
rename = "Quantum State - " + x.id,
|
||||
hasEmptyState = x.hasEmptyState,
|
||||
loop = x.loop,
|
||||
sequential = x.sequential,
|
||||
|
||||
@ -5,7 +5,7 @@ public class BaseQuantumGroupInfo
|
||||
/// <summary>
|
||||
/// Optional name to help identify this group
|
||||
/// </summary>
|
||||
public string name;
|
||||
public string rename;
|
||||
|
||||
/// <summary>
|
||||
/// List of props which will be used in this quantum group
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user