Closed david-a-rivera closed 2 months ago
This pull request adds support for skill override functionality in the Better Rolls for SWADE 2 module. The changes primarily involve expanding the list of item types and adding a new field for skill override in the WorldGlobalActions class.
Change | Details | Files |
---|---|---|
Expanded the list of item types to include 'skill' |
|
betterrolls-swade2/scripts/global_actions.js |
Added support for skill override in WorldGlobalActions class |
|
betterrolls-swade2/scripts/global_actions.js |
Fixed an issue with get_roll_options failing when optional parameter is not passed in.
Thanks for the PR. I'll think a bit about adding skill to actor_has_item, right now I'm a little against it.
The rest of the PR is great, I'll merge it when I made a decision about the former issue.
Thanks for the PR. I'll think a bit about adding skill to actor_has_item, right now I'm a little against it.
The rest of the PR is great, I'll merge it when I made a decision about the former issue.
I've added a separate PR for an actor_has_skill selector so skill can be removed from the list.
Allow user to set a skill to use as an override. Also, makes sure "actor_has_item" treats a skill as an item, which it is.
Current behavior: Custom global actions do not provide access to the skillOverride property. The actor_has_item selector does not include "skill" as an option.
New behavior: Custom global actions will now provide access to the skillOverride property to allow access to the functionality that item actions currently have. Also, the actor_has_item selector will now include "skill" as an option. This will allow custom global actions to determine if an actor has a skill in order to show the action.