From 76efc979b9a16a33e04ed973f0171b0bb3af5d1b Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Wed, 18 Feb 2026 12:41:35 +0100 Subject: [PATCH] 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 --- tooling/validate-content | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tooling/validate-content b/tooling/validate-content index 830ffd466..c8ffab01b 100755 --- a/tooling/validate-content +++ b/tooling/validate-content @@ -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