Skip to content

Fix reprinted class source resolution in subclass links#864

Merged
ebullient merged 1 commit intomainfrom
claude/modest-germain
Mar 31, 2026
Merged

Fix reprinted class source resolution in subclass links#864
ebullient merged 1 commit intomainfrom
claude/modest-germain

Conversation

@ebullient
Copy link
Copy Markdown
Owner

Changes

  • Added resolveClassSource() method in Tools5eIndex to resolve reprinted class sources (e.g., PHB → XPHB)
  • Updated getSubclassResource() in Tools5eLinkifier to use the resolved class source when generating subclass links
  • Added XPHB to the included sources in test configuration

Issue

Resolves #779 - Subclass links were not accounting for reprinted parent classes when generating resource paths.

Details

When a class is reprinted (moved to a new source book), subclass links now correctly follow the parent class to its new source location.

Add resolveClassSource() to Tools5eIndex to look up reprinted class
sources (e.g. PHB→XPHB). Call it in getSubclassResource() so that
subclass file links use the correct class prefix when both PHB and
XPHB are included. Add XPHB to homebrew test sources to reproduce.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ebullient ebullient merged commit 000e78c into main Mar 31, 2026
6 checks passed
@ebullient ebullient deleted the claude/modest-germain branch March 31, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Can't find the subclass features for TDCSR & TCE Twilight Cleric

1 participant