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

Direct calls of getRollData in Actor5e to the system model #2698

Closed
krbz999 opened this issue Dec 30, 2023 · 1 comment
Closed

Direct calls of getRollData in Actor5e to the system model #2698

krbz999 opened this issue Dec 30, 2023 · 1 comment
Assignees
Labels
Milestone

Comments

@krbz999
Copy link
Contributor

krbz999 commented Dec 30, 2023

Currently we just skip over group actor specifically in Actor5e, but this fails for any other actor types added by modules.

If getRollData instead returned system.getRollData each added actor type could change behaviour any way it pleases.

Currently a new actor type is forced to have system.attributes.prof, otherwise they cannot even render owned items' sheets.

In fact, a whole slew of methods fail if an added actor type does not have system.attributes.

@Fyorl Fyorl added the api label Dec 30, 2023
@Fyorl Fyorl added this to the D&D5E 2.5.0 milestone Dec 30, 2023
krbz999 added a commit to krbz999/dnd5e that referenced this issue Dec 30, 2023
@JPMeehan
Copy link

Would appreciate this for sure, it's blocking me using items in my knw-actors module.

arbron added a commit that referenced this issue Jan 18, 2024
@arbron arbron closed this as completed Jan 18, 2024
Fyorl pushed a commit that referenced this issue Jan 31, 2024
[#2698] Move getRollData for items into system model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants