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

Allow Damaging Items to Override Graze Damage #108

Open
wants to merge 18 commits into
base: release-0.1.2
Choose a base branch
from

Conversation

zithith
Copy link
Contributor

@zithith zithith commented Oct 23, 2024

Type
What type of pull request is this? (e.g., Bug fix, Feature, Refactor, etc.)

  • Bug fix
  • Feature
  • Refactor
  • Other (please describe):

Description
Allow damaging effects to specify a new formula for calculating graze damage value. This is mostly to satisfy the requirement for NPCs/Adversaries who can have values in official statblocks for grazing hits that don't follow the standard rules for attacks.

Related Issue
Closes #102

How Has This Been Tested?
Describe how you tested the changes and how others can replicate the testing steps.
In Progress

Screenshots (if applicable)
Add screenshots or GIFs that help illustrate the changes, especially if they affect the UI or user-facing aspects of the system.

Checklist:

  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes do not introduce any new warnings or errors.
  • My PR does not contain any copyrighted works that I do not have permission to use.
  • I have tested my changes on Foundry VTT version: [insert version here].

Additional context
I will presume that this change won't add any sorts of flags or complexity such as a checkbox to add ability mod to the damage or the like. If GMs want an odd action that uses a mod in the grazing formula, then they can just use the @ property shorthand?

@stanavdb
Copy link
Owner

Can you drop a comment in #102 so that I can assign it to you?

@zithith
Copy link
Contributor Author

zithith commented Oct 28, 2024

@zithith zithith changed the base branch from main to release-0.1.2 November 2, 2024 14:50
@zithith zithith marked this pull request as ready for review November 3, 2024 00:23
src/system/documents/item.ts Show resolved Hide resolved
src/system/documents/item.ts Outdated Show resolved Hide resolved
src/system/documents/item.ts Show resolved Hide resolved
src/system/documents/item.ts Outdated Show resolved Hide resolved
src/system/documents/item.ts Outdated Show resolved Hide resolved
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.

Add an option to damage rolls to freely customise graze damage
3 participants