Skip to content

Commit

Permalink
1.24.5 (#994)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
MegaPiggy authored Nov 7, 2024
2 parents c7e1e6e + 8924811 commit ad5f725
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NewHorizons/Builder/General/SpawnPointBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static SpawnPoint Make(GameObject planetGO, SpawnModule module, OWRigidbo
var minPriority = new SpawnModule.PlayerSpawnPoint() { isDefault = true }.GetPriority();
if (point.GetPriority() < minPriority)
{
//flagUseTHSpawn = true;
flagUseTHSpawn = true;
}
}

Expand Down
4 changes: 2 additions & 2 deletions NewHorizons/Builder/Props/DialogueBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ private static void MakeAttentionPoints(GameObject go, Sector sector, CharacterD
{
var ptGo = GeneralPropBuilder.MakeNew("AttentionPoint", go, sector, info.attentionPoint, defaultParent: dialogue.transform);
dialogue._attentionPoint = ptGo.transform;
dialogue._attentionPointOffset = info.attentionPoint.offset;
dialogue._attentionPointOffset = info.attentionPoint.offset ?? Vector3.zero;
ptGo.SetActive(true);
}
if (info.swappedAttentionPoints != null && info.swappedAttentionPoints.Length > 0)
Expand All @@ -354,7 +354,7 @@ private static void MakeAttentionPoints(GameObject go, Sector sector, CharacterD
var swapper = ptGo.AddComponent<DialogueAttentionPointSwapper>();
swapper._dialogueTree = dialogue;
swapper._attentionPoint = ptGo.transform;
swapper._attentionPointOffset = pointInfo.offset;
swapper._attentionPointOffset = pointInfo.offset ?? Vector3.zero;
swapper._nodeName = pointInfo.dialogueNode;
swapper._dialoguePage = pointInfo.dialoguePage;
swapper._lookEasing = pointInfo.lookEasing;
Expand Down
2 changes: 1 addition & 1 deletion NewHorizons/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "xen, Bwc9876, JohnCorby, MegaPiggy, Trifid, and friends",
"name": "New Horizons",
"uniqueName": "xen.NewHorizons",
"version": "1.24.4",
"version": "1.24.5",
"owmlVersion": "2.12.1",
"dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
"conflicts": [ "PacificEngine.OW_CommonResources" ],
Expand Down

0 comments on commit ad5f725

Please sign in to comment.