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

[#5003] Add ability attack, spell attack, & spell ability labels #5004

Open
wants to merge 1 commit into
base: 4.2.x
Choose a base branch
from

Conversation

arbron
Copy link
Collaborator

@arbron arbron commented Jan 15, 2025

Adds attack to each ability which is the default attack to hit using that ability (e.g. prof + mod).

Also adds the spell attack and ability label to actor attributes inside a new attributes.spells object. This moves the old spelldc and spellmod into that object with deprecation warnings.

Closes #5003

Adds `attack` to each ability which is the default attack to hit
using that ability (e.g. prof + mod).

Also adds the spell attack and ability label to actor attributes
inside a new `attributes.spells` object. This moves the old
`spelldc` and `spellmod` into that object with deprecation
warnings.

Closes #5003
@arbron arbron added this to the D&D5E 4.2.0 milestone Jan 15, 2025
@arbron arbron requested a review from Fyorl January 15, 2025 22:28
@arbron arbron self-assigned this Jan 15, 2025
@@ -149,6 +149,7 @@ export default class CommonTemplate extends ActorDataModel.mixin(CurrencyTemplat

abl.save = abl.mod + abl.saveBonus;
if ( Number.isNumeric(abl.saveProf.term) ) abl.save += abl.saveProf.flat;
abl.attack = abl.mod + prof;
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is meant only for display purposes, should it not rather be a string? A numeric value won't support proficiency dice.

@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.

Add pre-calculated spell attack & ability labels for NPCs usable in lookups
2 participants