Scanner progress reads 0 on another target; Program.RoleMapOf exposes roles-backfill's map
Scanner.Progress is bound to the target the scan was built on, so a retarget with the scanner switched off no longer draws the old scan on the new target (scan-progress-shown-on-retarget). RoleMapOf is the one accessor HasRoleMap now delegates to. Not yet built or tested. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
095efacd79
commit
eb2dc1e501
2 changed files with 10 additions and 4 deletions
|
|
@ -285,8 +285,12 @@ public static class Program
|
|||
_ => null,
|
||||
};
|
||||
|
||||
// Whether CB-R1 maps this design's stats to roles; the catalog test asks the tool, so it keeps no copy of the kinds.
|
||||
public static bool HasRoleMap(EquippableItemData item) => RoleMapFor(item, KindOf(item)) != null;
|
||||
// The field->role map roles-backfill would apply to this design, or null; the catalog tests ask the tool, so they keep no
|
||||
// copy of the kinds or the maps.
|
||||
public static IReadOnlyDictionary<string, string> RoleMapOf(EquippableItemData item) => RoleMapFor(item, KindOf(item));
|
||||
|
||||
// Whether CB-R1 maps this design's stats to roles.
|
||||
public static bool HasRoleMap(EquippableItemData item) => RoleMapOf(item) != null;
|
||||
|
||||
private sealed record RoleAuthoring(
|
||||
EquippableItemData Item, string Kind, List<(string Behavior, string Field, string Role)> StatsAssigned,
|
||||
|
|
|
|||
Loading…
Reference in a new issue