-
Notifications
You must be signed in to change notification settings - Fork 56
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
Fix roll formula not being displayed in roll tags #499
Conversation
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.
Left a question/request, but I'm good with this if what I'm asking for can't be done.
17fb6c7
to
7f0cb6d
Compare
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.
LGTM
I noted that there might be a merge conflict while trying to merge after #497, which I can take care of
src/module/item/entity.js
Outdated
@@ -188,9 +188,8 @@ export default class OseItem extends Item { | |||
|
|||
_getRollTag(data) { | |||
if (data.roll) { | |||
const roll = `${data.roll}${ | |||
data.rollTarget ? CONFIG.OSE.roll_type[data.rollType] : "" | |||
}${data.rollTarget ? data.rollTarget : ""}`; |
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.
Same as in #497 (not a problem)
Sounds good, these ended up related and I forgot to update the formatting on this. 👍 |
This updates the roll tags on abilities and spells so roll formulas can be displayed in the footer cards properly if they include @attributes.
Regarding #488. Duration and Range could likely be calculated similarly but they would probably need to return totals instead and involve adding additional data for turns/rounds/ft etc.
Before when using a 2nd level character:
After: