Subtype modifier tests: deactivate the ship before equipping the guns
TryEquip refuses on a deployed ship. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7ee40255ca
commit
a7f801c4b9
1 changed files with 1 additions and 1 deletions
|
|
@ -96,10 +96,10 @@ public sealed class StatResolverTests : IDisposable
|
|||
cache.FlushAsync().Wait();
|
||||
var items = new ItemManager(cache, new ProvenanceLedger(), Settings(), _ => { });
|
||||
var ship = BuildActivatedShip(cache, items, withBooster: true);
|
||||
ship.Deactivate(); // TryEquip refuses while deployed
|
||||
Assert.True(ship.TryEquip(Mint(cache, items, cache.GetByName<GearData>("AutoGun")), FirstGunCell));
|
||||
Assert.True(ship.TryEquip(Mint(cache, items, cache.GetByName<GearData>("ChargedGun")), SecondGunCell));
|
||||
// Re-activate so the booster's Initialize sees the guns it did not see at the first activation.
|
||||
ship.Deactivate();
|
||||
ship.Activate();
|
||||
var booster = ship.Equipment.Single(e => e.Data.Name == "Booster");
|
||||
var behavior = booster.GetBehavior<StatModifier>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue