From c537c480d371398ea19c3782e0cbe7fbb50ea9a6 Mon Sep 17 00:00:00 2001 From: soul Date: Tue, 1 Dec 2026 01:16:11 +0100 Subject: [PATCH] Joint-rider refusal names the assembly root among the roles that may ride a joint Co-Authored-By: Claude Sonnet 5.5 --- Assets/Scripts/ServerShared/ShipAuthoring.cs | 2 +- tests/Aetheria.Shared.Tests/ShipRigTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/ServerShared/ShipAuthoring.cs b/Assets/Scripts/ServerShared/ShipAuthoring.cs index e266193be..1907a1dab 100644 --- a/Assets/Scripts/ServerShared/ShipAuthoring.cs +++ b/Assets/Scripts/ServerShared/ShipAuthoring.cs @@ -499,7 +499,7 @@ public static class ShipAuthoringStore if (anchor.Role == "radiator-mesh") throw new InvalidOperationException($"{ship.Id}: {anchor.Role} anchor {anchor.Id} may not ride a joint."); if (!RigChains.Actuates(anchor.Role)) - throw new InvalidOperationException($"{ship.Id}: {anchor.Role} anchor {anchor.Id} may not name a joint; only a weapon mount or a thruster emitter, or an assembly's root, rides one."); + throw new InvalidOperationException($"{ship.Id}: {anchor.Role} anchor {anchor.Id} may not name a joint; only a weapon mount, a thruster emitter or an assembly root rides one."); if (!byId.ContainsKey(anchor.Joint)) throw new InvalidOperationException($"{ship.Id}: {anchor.Role} anchor {anchor.Id} names an unknown joint."); } diff --git a/tests/Aetheria.Shared.Tests/ShipRigTests.cs b/tests/Aetheria.Shared.Tests/ShipRigTests.cs index 657a2f03b..351fd288b 100644 --- a/tests/Aetheria.Shared.Tests/ShipRigTests.cs +++ b/tests/Aetheria.Shared.Tests/ShipRigTests.cs @@ -175,7 +175,7 @@ public sealed class ShipRigTests : IDisposable ship = Armed("j"); ship.Visual.Joints.Add(Joint("j", null, (Up, -180f, 180f))); ship.Visual.Anchors.Single(anchor => anchor.Id == "g0.muzzle").Joint = "j"; - Assert.Contains("only a weapon mount or a thruster emitter rides one", Refusal(ship)); + Assert.Contains("only a weapon mount, a thruster emitter or an assembly root rides one", Refusal(ship)); var thruster = Thrusting((null, 90f, "ghost")); Assert.Contains("thruster-emitter anchor t0 names an unknown joint", Refusal(thruster));