## Bug fixes

- Resolve error when specifying a dialogue attention point but not an
offset for that attention point
- Uncomment that TH spawn fix because somehow it was commented out
This commit is contained in:
Noah Pilarski 2024-11-07 15:36:14 -05:00 committed by GitHub
commit ad5f72563d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ namespace NewHorizons.Builder.General
var minPriority = new SpawnModule.PlayerSpawnPoint() { isDefault = true }.GetPriority(); var minPriority = new SpawnModule.PlayerSpawnPoint() { isDefault = true }.GetPriority();
if (point.GetPriority() < minPriority) if (point.GetPriority() < minPriority)
{ {
//flagUseTHSpawn = true; flagUseTHSpawn = true;
} }
} }

View File

@ -343,7 +343,7 @@ namespace NewHorizons.Builder.Props
{ {
var ptGo = GeneralPropBuilder.MakeNew("AttentionPoint", go, sector, info.attentionPoint, defaultParent: dialogue.transform); var ptGo = GeneralPropBuilder.MakeNew("AttentionPoint", go, sector, info.attentionPoint, defaultParent: dialogue.transform);
dialogue._attentionPoint = ptGo.transform; dialogue._attentionPoint = ptGo.transform;
dialogue._attentionPointOffset = info.attentionPoint.offset; dialogue._attentionPointOffset = info.attentionPoint.offset ?? Vector3.zero;
ptGo.SetActive(true); ptGo.SetActive(true);
} }
if (info.swappedAttentionPoints != null && info.swappedAttentionPoints.Length > 0) if (info.swappedAttentionPoints != null && info.swappedAttentionPoints.Length > 0)
@ -354,7 +354,7 @@ namespace NewHorizons.Builder.Props
var swapper = ptGo.AddComponent<DialogueAttentionPointSwapper>(); var swapper = ptGo.AddComponent<DialogueAttentionPointSwapper>();
swapper._dialogueTree = dialogue; swapper._dialogueTree = dialogue;
swapper._attentionPoint = ptGo.transform; swapper._attentionPoint = ptGo.transform;
swapper._attentionPointOffset = pointInfo.offset; swapper._attentionPointOffset = pointInfo.offset ?? Vector3.zero;
swapper._nodeName = pointInfo.dialogueNode; swapper._nodeName = pointInfo.dialogueNode;
swapper._dialoguePage = pointInfo.dialoguePage; swapper._dialoguePage = pointInfo.dialoguePage;
swapper._lookEasing = pointInfo.lookEasing; swapper._lookEasing = pointInfo.lookEasing;

View File

@ -4,7 +4,7 @@
"author": "xen, Bwc9876, JohnCorby, MegaPiggy, Trifid, and friends", "author": "xen, Bwc9876, JohnCorby, MegaPiggy, Trifid, and friends",
"name": "New Horizons", "name": "New Horizons",
"uniqueName": "xen.NewHorizons", "uniqueName": "xen.NewHorizons",
"version": "1.24.4", "version": "1.24.5",
"owmlVersion": "2.12.1", "owmlVersion": "2.12.1",
"dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ], "dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
"conflicts": [ "PacificEngine.OW_CommonResources" ], "conflicts": [ "PacificEngine.OW_CommonResources" ],