mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
An unofficial Foundry VTT implementation of the Daggerheart system
* Downtime: allow moves to be taken individually. Fixes https://github.com/Foundryborne/daggerheart/issues/374 Some downtime moves require a roll to see how successful they are. In these cases, the player might want to see how their first move works out before they select their next one. This commit updates the downtime dialog to allow for this behaviour: - The "Take Downtime" button is enabled whenever any moves are selected. - Clicking the button only closes the dialog when all moves have been made. To keep track of this, the `nrChoices` object has been expanded to include a `taken` counter, which is increased whenever a move is taken. After making one move the selection is reset, but the number of moves displayed in the dialog header and the number of permitted selections both take the number of taken moves into account. * Fix heading in short rest chat message. Prior to this commit the heading for a short rest chat message was "long rest". * Remove unused template context. * Extract method for repeated calculation. In the downtime dialog, we need to calculate the number of selected moves in several places. This commit extracts a method to handle that, which reduces repetition and hopefully makes the code more readable. |
||
|---|---|---|
| .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.