Fix stray line in IsRevealed's comment; drop the seen-destroyed record of a departed subject with no book
The previous commit does not build (a leftover line in FireControl.cs). EndReveals only runs for subjects the book holds, so a record of a quiet departed ship was held for the sitting; Sense's prune now ends it too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f6c0d24dba
commit
a554d5ed08
3 changed files with 27 additions and 1 deletions
|
|
@ -153,6 +153,28 @@ public sealed partial class ContactRevealTests
|
|||
Assert.False(observer.TrySelectMount(reactor.Hardpoint));
|
||||
}
|
||||
|
||||
// ---- TheSeenDestroyedRecordGoesWithTheSubject ----
|
||||
|
||||
// The record is the observer's memory of one subject: when that subject has left the zone and the observer holds no book
|
||||
// of it (a quiet ship, never seen to act), the record is dropped at the observer's next Sense, not held for the sitting.
|
||||
[Theory]
|
||||
[InlineData("remove")]
|
||||
[InlineData("warp")]
|
||||
public void TheSeenDestroyedRecordGoesWithTheSubject(string how)
|
||||
{
|
||||
var (bay, observer, reactor) = Identified();
|
||||
var sense = SenseOf(observer);
|
||||
reactor.EquippableItem.Durability = 0f;
|
||||
sense();
|
||||
Assert.False(MountsOf(observer.AimCycle(bay)).Any(m => ReferenceEquals(m, reactor.Hardpoint)), "fixture: recorded while the ship is here");
|
||||
Assert.Empty(observer.RevealsOf(bay));
|
||||
|
||||
Leave(_zone, bay, how);
|
||||
sense();
|
||||
observer.EntityInfoGathered[bay] = 1f;
|
||||
Assert.True(MountsOf(observer.AimCycle(bay)).Any(m => ReferenceEquals(m, reactor.Hardpoint)), "the record went with the ship");
|
||||
}
|
||||
|
||||
// ---- ADestroyedClaimedMountIsNotSkippedUnderALie ----
|
||||
|
||||
// The known gap (follow-up perceived-destruction-under-hull-lie): perceiving a destruction reads the true item, and the
|
||||
|
|
|
|||
Loading…
Reference in a new issue