fix(ci): correct bidirectional relationship check target (#515)

Check 9 tested `target in npc_rels` which missed NPCs with no
relationship entries. Changed to `target in self.npcs` so the
advisory warning fires correctly for all NPCs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-18 12:41:35 +01:00
co-authored by Claude Opus 4.6
parent b4a3784218
commit 76efc979b9
+2 -2
View File
@@ -472,8 +472,8 @@ class ContentIndex:
if pair in checked:
continue
checked.add(pair)
if target in npc_rels and cid not in npc_rels.get(target, set()):
print(f"XREF WARNING: {cid} has relationship to {target} but no reciprocal found")
if target in self.npcs and cid not in npc_rels.get(target, set()):
print(f"XREF WARNING: {cid} has relationship to {target} but {target} has no reciprocal entry")
warnings += 1
return warnings