Bearing markers read the observer's live stance; a ship out of the zone holds no warnings
The hostility stamp (Reveal.Hostile, Contact.Hostile) is deleted: the observer knows its own stance live. The real fault was the IFF override being dropped when its subject departs while the book still remembers it; the override now goes when the book drops the subject (ReleaseStance), so RememberedHostiles reads IsHostileTo. A ship removed from the zone clears its paint inbox and incoming warnings at the owner, so the Parent == null gate in ActionGameManager is deleted. Tests pin both stance directions after the act, the departed override hostile, the exclusive memory window at the equality, and the empty inbox. Unbuilt until the verify job; Unity side not compiled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2ea329e6f1
commit
2ba41373bd
4 changed files with 126 additions and 30 deletions
|
|
@ -1375,10 +1375,8 @@ public class ActionGameManager : MonoBehaviour
|
|||
{
|
||||
if (Zone != steppedZone) return;
|
||||
steppedZone.Update(delta);
|
||||
// A warning lives one tick, so sweeps are collected per tick, never read per frame. A docked ship is out of the
|
||||
// zone's updates, so its published warnings go stale and are not collected (UpdateTargetIndicators drains only
|
||||
// while it is free).
|
||||
if (CurrentEntity != null && CurrentEntity.Zone == steppedZone && CurrentEntity.Parent == null)
|
||||
// A warning lives one tick, so sweeps are collected per tick, never read per frame.
|
||||
if (CurrentEntity != null && CurrentEntity.Zone == steppedZone)
|
||||
foreach (var warning in CurrentEntity.IncomingPaints)
|
||||
if (warning.Mode == PaintMode.Search) _pendingSweeps.Add((warning.Bearing, steppedZone.Time));
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue