An unofficial Foundry VTT implementation of the Daggerheart system
Find a file
WBHarry 187ee3e1bd
Refactor/84 data models structure (#131)
* - Move all DataModel item files to a new 'items' subfolder for better organization
- Add _module.mjs file to simplify imports
- Update all import paths
- Rename class for use the new acronym DH

* FIX: remove unnecessary import

* FEAT: BaseDataItem class
add TODO comments for future improvements
FIX: Remove effect field on template
FIX: remove unused DhpEffects file

* FEAT: new FormulaField class
FEAT: add getRollData on BaseDataItem Class
FEAT: weapon
FIX: remove inventoryWeapon field on Weapon Data Model

* FEAT: add class prepareBaseData for domains

* FEAT: new ForeignDocumentUUIDField
FIX: Remove unnecessary fields
FEAT: use ForeignDocumentUUIDField in the Item Class DataModel

* FIX: remove wrong option in String Field

* FIX: remove unused import

* FIX: ADD htmlFields description in manifest

* FIX: minor fixes

* REFACTOR: rename folder `data/items` -> `data/item`
REFACTOR: rename folder `data/messages` -> `data/chat-message`.

* FIX: imports
FIX: items sheet new paths
FIX: ItemDataModelMetadata type jsdoc

* FEAT: formatting code
FIX: fix fields used
FEAT: add jsdoc

* 110 - Class Data Model (#111)

* Added PreCreate/Create/Delete logic for Class/Subclass and set it as foreignUUID fields in PC

* Moved methods into TypedModelData

* Simplified Subclass

* Fixed up data model and a basic placeholder template (#117)

* 118 - adversary data model (#119)

* Fixed datamodel and set up basic template in new style

* Added in a temp attack button, because why not

* Restored HitPoints counting up

* 113 - Character Data Model (#114)

* Improved Character datamodel

* Removed additional unneccessary getters

* Preliminary cleanup in the class sheet

* Cleanup of 'pc' references

* Corrected Duality rolling from Character

* Fix to damage roll

* Added a basic BaseDataActor data model

* Gathered exports

* getRollData recursion fix

* Feature/112 items use action datamodel (#127)

* Create new actions classes

* actions types - attack roll

* fixes before merge

* First PR

* Add daggerheart.css to gitignore

* Update ToDo

* Remove console log

* Fixed chat /dr roll

* Remove jQuery

* Fixed so the different chat themes work again

* Fixed duality roll buttons

* Fix to advantage/disadvantage shortcut

* Extand action to other item types

* Roll fixes

* Fixes to adversary rolls

* resources

* Fixed adversary dice

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>

* Feature/116-implementation-of-pseudo-documents (#125)

* FEAT: add baseDataModel logic

* FEAT: new PseudoDocumentsField
FIX: BasePseudoDocument 's getEmbeddedDocument

* FEAT: PseudoDocument class

* FEAT: add TypedPseudoDocument
REFACTOR: PreudoDocument
FIX: Typos Bug

* FIX: CONFIG types

* FEAT: basic PseudoDocumentSheet

* FIX: remove schema
ADD: input of example

---------

Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
Co-authored-by: WBHarry <williambjrklund@gmail.com>

* Levelup Followup (#126)

* Levelup applies bonuses to character

* Added visualisation of domain card levels

* Fixed domaincard level max for selections in a tier

* A trait can now only be level up once within the same tier

---------

Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
Co-authored-by: joaquinpereyra98 <24190917+joaquinpereyra98@users.noreply.github.com>
Co-authored-by: Dapoulp <74197441+Dapoulp@users.noreply.github.com>
2025-06-13 14:17:13 +02:00
.github/workflows Initial commit 2025-05-22 16:53:39 +02:00
.husky Adding Prettier 2025-05-23 18:57:50 +02:00
assets enhace feature sheet and apply new standard style to applications 2025-05-26 12:39:59 -03:00
lang Refactor/84 data models structure (#131) 2025-06-13 14:17:13 +02:00
module Refactor/84 data models structure (#131) 2025-06-13 14:17:13 +02:00
src/packs Compendium Reorg (#94) 2025-05-31 22:20:10 +02:00
styles Refactor/84 data models structure (#131) 2025-06-13 14:17:13 +02:00
templates Refactor/84 data models structure (#131) 2025-06-13 14:17:13 +02:00
tools Levelup Remake (#100) 2025-06-07 01:50:50 +02:00
.gitignore Refactor/84 data models structure (#131) 2025-06-13 14:17:13 +02:00
.prettierignore PR-Fixes 2025-05-24 22:25:54 +02:00
.prettierrc Adding Prettier 2025-05-23 18:57:50 +02:00
daggerheart.d.ts Refactor/84 data models structure (#131) 2025-06-13 14:17:13 +02:00
daggerheart.mjs Refactor/84 data models structure (#131) 2025-06-13 14:17:13 +02:00
gulpfile.js Adding Prettier 2025-05-23 18:57:50 +02:00
jsconfig.json #98 jsconfig and symlink setup (#99) 2025-06-01 02:54:45 +02:00
LICENSE Initial commit 2025-05-22 16:53:39 +02:00
package-lock.json feat(equipmentFeatures): update itemConfig (#26) 2025-05-23 21:45:25 +02:00
package.json #98 jsconfig and symlink setup (#99) 2025-06-01 02:54:45 +02:00
postcss.config.js Adding Prettier 2025-05-23 18:57:50 +02:00
README.md Updated Readme with style code 2025-05-23 19:05:02 +02:00
rollup.config.mjs Adding Prettier 2025-05-23 18:57:50 +02:00
system.json Refactor/84 data models structure (#131) 2025-06-13 14:17:13 +02:00

Daggerheart

For Foundry VTT

This is a repo for a Foundry VTT implementation of daggerheart. It is not associated with critical role or darrington press.

Table Of Contents

Overview

Developer Guide

Coding Practises

Style Code

The project is set up for Prettify. Make sure you've run npm install since it was added. There is a pre-commit hook that will automatically run prettify on the files you've changed whenever you do a commit to maintain the formating.

Branches And Pull Requests

During pre-release development, we are making use of main as the development branch. Once release is getting closer we will instead be making a dev branch to base development from to make main more stable.

When you work on an issue or feature, start from main and make a new branch. Branches should be topically named and with the associated Issue number if it relates to an Issue. EX: #6/Level-Up-Bugginess.


Once you're finished with an issue or feature, open a Pull Request on Github for that branch.

The Reviewers Team will be approving submissions. This is mainly since we have a wide spread of experience with system building and the system itself, and we do want the system to become something great. As time goes on, more collaborators are likely to be added as reviewers.

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> daggerheart inside 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.js with <your>/<path>/<to>/<foundry>/<main.js>
  • The main is likely in <Foundry Install Location>/resouces/app/main.js
  • Replace --dataPath=C:/FoundryDevFiles with <your>/<path>/<to>/<foundry>/<data>

Now you should be able to build the app using npm start Foundry VTT Website