Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#3798, #4842] Add legendary action description to stat blocks #4998

Open
wants to merge 2 commits into
base: 4.2.x
Choose a base branch
from

Conversation

arbron
Copy link
Collaborator

@arbron arbron commented Jan 14, 2025

Adds the legendary action description to embedded NPC stat blocks. This will automatically use the description of an item with the legendary-actions identifier if present, otherwise it use an auto-generated description based on the rules version.

The auto-generated description is also available from the roll data in resources.legact.label. A modification has been made to the lookup enricher so that if it finds a function at its target location, it will call that function with the enricher config as its paremter. This allows for substituting the actor's name: [[lookup @resources.legact.label name=dragon]].

Adds the legendary action description to embedded NPC stat blocks.
This will automatically use the description of an item with the
`legendary-actions` identifier if present, otherwise it use an
auto-generated description based on the rules version.

The auto-generated description is also available from the roll
data in `resources.legact.label`. A modification has been made to
the lookup enricher so that if it finds a function at its target
location, it will call that function with the enricher config as
its paremter. This allows for substituting the actor's name:
`[[lookup @resources.legact.label name=dragon]]`.
@arbron arbron added this to the D&D5E 4.2.0 milestone Jan 14, 2025
@arbron arbron requested a review from Fyorl January 14, 2025 20:56
@arbron arbron self-assigned this Jan 14, 2025
@arbron arbron modified the milestones: D&D5E 4.2.0, D&D5E 4.3.0 Jan 20, 2025
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.

1 participant