Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
espositos committed Jun 22, 2020
2 parents fad04c6 + ba8b6f5 commit 45475b0
Show file tree
Hide file tree
Showing 7 changed files with 151 additions and 83 deletions.
2 changes: 1 addition & 1 deletion adding_systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The goal is not for the Token Action HUD to cover all edge cases and obscure use
If your favourite system or roller is not yet supported, or you have strong objections about how I have divided actions for your system, please contact me and we can work together to improve the HUD.

# Action Handlers
Currently I only plan to have one action handler per system.
Currently I only plan to have one action handler per system. They are found in [the rolls](scripts/rolls/) and [actions folders](scripts/actions/)

The action handler has one public method, buildActionList(token), which takes a token with an actor and returns an action list that looks like:

Expand Down
10 changes: 9 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Changelog

##[0.1.17] 2020-06-21
## [0.1.18] 2020-06-22
### Added
- DND5e - the order of feats and items now follows their draggable order in the inventory.

### Changed
- CSS - changed appearance of info next to subcategory name (currently only used to indicate spell slots).
- DND5e - spells should now be sorted by level and then alphabetically.

## [0.1.17] 2020-06-21
### Added
- MinorQOL & BetterRolls - added ability to right click weapons for versatile attack when one exists (right-click acts as normal click if item has no versatile property). Has a slight problem with BetterRolls which uses shift for advantage, because shift right click is hardcoded to bring up the context menu in some browsers, but I don't want to mess with BR's shift/ctrl/alt preferences.

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Should be able to support most systems, although currently limited to DND5e and
* WFRP4e (proof of concept only at the moment)
* Any other system? I believe the HUD is modular enough that anyone who understands what the players of their system want and how actions in their system are handled could quickly build it into the HUD. Please contact me if you'd like to add support for your favourite system.

[Explanation of the system](adding_systems.md)
[Developing for your system or module](adding_systems.md)

# Support
For questions, feature requests, or bug reports, feel free to contact me on the Foundry Discord (^ and stick#0520) or open an issue here directly.
Expand Down
19 changes: 19 additions & 0 deletions scripts/actions/actionHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,24 @@ export class ActionHandler {
constructor() {}

buildActionList(token) {};

initializeEmptySubcategory() {
return {
info: '',
actions: {},
subcategories: {}}
}

initializeEmptyActions() {
return {actions: []};
}

initializeEmptyCategory() {
return {subcategories: {}}
}

initializeEmptyActionList(){
return { tokenId: '', actorId: '', categories: {}};
}
}

Loading

0 comments on commit 45475b0

Please sign in to comment.