contact-hud: NothingReadsSelection reads the paint inbox on every tick

A warning lives one tick, so the end-state read could not see a paint selection wrote; a hand mutant that paints
on SetTarget survived. Builds (test-only change).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-13 07:30:48 +02:00
commit 8f184a8f69

View file

@ -1233,9 +1233,14 @@ public sealed partial class ContactRevealTests : IDisposable
selector.SetTarget(selected);
Assert.Same(selected, selector.Target.Value.Entity); // fixture: it is selected
for (var i = 0; i < 20; i++) Tick(.1f);
var paints = 0;
for (var i = 0; i < 20; i++)
{
Tick(.1f);
paints += selected.IncomingPaints.Count; // a warning lives one tick, so it is read on every tick
}
Assert.Empty(selected.IncomingPaints);
Assert.Equal(0, paints);
Assert.False(selected.ContactOf(selector).Detected);
Assert.Empty(selected.RevealedSubjects);
}