* Refactor: handle button data attrs the same.
A small refactor to handle `button.dataset.move` (which was assigned to a
local const) and `button.dataset.category` (which was accessed directly)
in the same way by assigning them both to local consts.
* Fix right-click on downtime activities on macOS.
On macOS with a single-button mouse (e.g. a laptop trackpad) it's common to
trigger a right-click with ctrl+click.
In Chrome, this triggers both a `contextmenu` event and a regular `click`
event. In the context of downtime actions, this meant that we were
deselecting an action in the `contextmenu` handler but then immediately
re-selecting it again in the `click` handler.
This commit works around the problem by stopping the event from propagating
further. This fixes the bug, but also stops Foundry's default `contextmenu`
handler from firing and preventing the browser context menu from appearing,
so we also have prevent the event's default behaviour from firing.
* Unify healing & damage
* create DHResourceData
* Damages parts roll
* h
* ChatMessage & takeDamage updates
* Adapt healing
* No, there was not a console.log !
* Fixed so that the dropdown for activeEffectAutocomplete never ends up behind dialog
* Downtime can now display both ShortRest and LongRest options depending on character rules
* Initial downtime layout rework
* Fixed styling for downtime tooltip
* Added icon to homebrew menu for DowntimeActions
* Fixed columns if both types of moves are not available
* Changed the lightmode to darkmode
* Added downtime buttons
* .
* Moved extra rest options from rules to bonuses
* Improved dialog width
* Added RollMode to standalone DamageDialog and to RollDialog. ChatMessage now add ChatSpeaker
* Just a little fix for Damage Action
---------
Co-authored-by: Dapoolp <elcatnet@gmail.com>
* Initial
* Resource setup finished
* Fixed so that costs can be used
* Corrected standard resources
* Actions can only use item resources from their parent item
* Fixed up dice
* Fixed resource dice positioning
* Fixed parsing of resource.max
* Fixed styling on settings tab
* Added manual input for Dice Resources
* Lightmode fixes
* Fixed Feature spellcasting modifier
* Bugfix for item input to resourceDiceDialog
* Item fix for TokenInput
* PR Fixes
* Added parsing of effect values from Item data model. Almost finished with itemConfig.
* Added the last to itemConfig
* Fixed armor
* ContextMenu localization fixes
* Better tooltips for tagify
* Corrected resource logic
* Organized language
* Organized high level folders
* Some deeper organization
* More org. That's enough ._.
* Capitalized initial system localization categories
* Restructured all the files
* Moved build/daggerheart.js to ./daggerheart.js. Changed rollup to use the css file instead of the less
* Restored build/ folder
* Mvoed config out form under application
* Moved roll.mjs to module/dice and renamed to dhRolls.mjs
* Update module/canvas/placeables/_module.mjs
Co-authored-by: joaquinpereyra98 <24190917+joaquinpereyra98@users.noreply.github.com>
* Le massive export update
* Removed unncessary import
---------
Co-authored-by: joaquinpereyra98 <24190917+joaquinpereyra98@users.noreply.github.com>