mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
An unofficial Foundry VTT implementation of the Daggerheart system
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. |
||
|---|---|---|
| .github | ||
| .husky | ||
| assets | ||
| lang | ||
| module | ||
| src/packs | ||
| styles | ||
| templates | ||
| tools | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| coc.md | ||
| contributing.md | ||
| daggerheart.d.ts | ||
| daggerheart.mjs | ||
| gulpfile.js | ||
| jsconfig.json | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| pull_request_template.md | ||
| README.md | ||
| rollup.config.mjs | ||
| system.json | ||
Daggerheart
Table of Contents
Overview
This is a community repo for a Foundry VTT implementation of Daggerheart. It is not associated with Critical Role or Darrington Press.
User Install
- (Not Yet Supported - No Releases Yet) Pasting
https://raw.githubusercontent.com/Foundryborne/daggerheart/refs/heads/main/system.jsoninto the Install System dialog on the Setup menu of the application. - (Not Yet Supported - No Releases Yet) Browsing the repository's Releases page, where you can copy any system.json link for use in the Install System dialog.
- (Not Yet Supported - No Releases Yet) Downloading one of the .zip archives from the Releases page and extracting it into your foundry Data folder, under Data/systems/daggerheart.
Development Setup
- Open a terminal in the directory with the repo
cd <path>/<to>/<repo> - NOTE: The repo should be placed in the system files are or somewhere else and a link (if on linux) is placed in the system directory
- NOTE: Linux link can be made using
ln -snf <path to development folder> daggerheartinside the system folder - Install npm
npm install - Update package.json to match your profile
"start": "concurrently \"rollup -c --watch\" \"node C:/FoundryDev/resources/app/main.js --dataPath=C:/FoundryDevFiles --noupnp\" \"gulp\"",
"start-test": "node C:/FoundryDev/resources/app/main.js --dataPath=C:/FoundryDevFiles && rollup -c --watch && gulp",
- Replace
C:/FoundryDev/resources/app/main.jswith<your>/<path>/<to>/<foundry>/<main.js> - The main is likely in
<Foundry Install Location>/resouces/app/main.js - Replace
--dataPath=C:/FoundryDevFileswith<your>/<path>/<to>/<foundry>/<data>
Now you should be able to build the app using npm start
Foundry VTT Website
Contributing
Looking to contribute to the project? Look no further, check out our contributing guide, and keep the Code of Conduct in mind when working on things.