Skip to content

Display Heritages in the Features Tab#22249

Open
iDantar wants to merge 1 commit intofoundryvtt:v14-devfrom
iDantar:22235-show-heritages-in-feats-tab
Open

Display Heritages in the Features Tab#22249
iDantar wants to merge 1 commit intofoundryvtt:v14-devfrom
iDantar:22235-show-heritages-in-feats-tab

Conversation

@iDantar
Copy link
Copy Markdown
Collaborator

@iDantar iDantar commented May 6, 2026

Closes #22235
Supersedes #22233

Inserts the heritage in Ancestry Features list and renders it's nested feats, if any.
Some examples:
image

level: null,
feat: actor.heritage,
children: this.#getNestedSlots(actor.heritage),
} as never);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoid casting to never. There's gotta be another way.

@@ -247,6 +247,9 @@ class CharacterFeats<TActor extends CharacterPF2e> extends Collection<string, Fe
if (granter?.isOfType("feat") && granter.grants.includes(feat) && isNested) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the practicality of including the heritage in granter.grants? It looks like grants in FeatPF2e is FeatPF2e | HeritagePF2e, so doing granter?.isOfType("feat", "heritage") && granter.grants.includes(feat) && isNested should be more terse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display Heritages in the Features Tab in the Character Sheet

2 participants