ShipRigTests: the muzzle-on-a-joint refusal now says a thruster emitter may ride one too
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5a5fde07c8
commit
1052a445fb
1 changed files with 5 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ public sealed class ShipRigTests : IDisposable
|
|||
}
|
||||
|
||||
[Fact]
|
||||
public void AJointRidesOnlyAWeaponMountThatNamesARealJoint()
|
||||
public void AJointRidesOnlyAWeaponMountOrAThrusterEmitterThatNamesARealJoint()
|
||||
{
|
||||
var ship = Armed("ghost");
|
||||
Assert.Contains("names an unknown joint", Refusal(ship));
|
||||
|
|
@ -170,7 +170,10 @@ 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 rides one", Refusal(ship));
|
||||
Assert.Contains("only a weapon mount or a thruster emitter rides one", Refusal(ship));
|
||||
|
||||
var thruster = Thrusting((null, 90f, "ghost"));
|
||||
Assert.Contains("thruster-emitter anchor t0 names an unknown joint", Refusal(thruster));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
|
|||
Loading…
Reference in a new issue