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

Feature Request: Provide a way to programatically roll damage with an item's context #17233

Open
JDCalvert opened this issue Nov 8, 2024 · 0 comments

Comments

@JDCalvert
Copy link
Contributor

Expose some way to replicate clicking an in-line roll or damage button on an item's sheet. Effectively, create some exposed function that takes the same, or similar, parameters to augmentInlineDamageRoll (as called here: https://github.com/foundryvtt/pf2e/blob/master/src/module/system/text-editor.ts#L168) and then follows the logic to rolling the damage (https://github.com/foundryvtt/pf2e/blob/master/src/module/system/text-editor.ts#L201).

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

No branches or pull requests

2 participants