-
Notifications
You must be signed in to change notification settings - Fork 234
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
base: 4.3.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a number on |
||
abl.dc = 8 + abl.mod + prof + dcBonus; | ||
|
||
if ( !Number.isFinite(abl.max) ) abl.max = CONFIG.DND5E.maxAbilityScore; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems a bit weird that
spellLevel
is underdetails
for NPCs (andattributes.spellLevel
doesn't seem to exist?). Maybe we should move it underattributes.spell.level
for consistency.