From 52b32a4d1213b01e01b743c020afc25317d25b42 Mon Sep 17 00:00:00 2001 From: Nick Salyzyn Date: Fri, 26 Dec 2025 17:38:29 -0700 Subject: [PATCH 1/4] Adding myself as a contributor (#1476) --- system.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system.json b/system.json index ef2c2432..f613cd91 100644 --- a/system.json +++ b/system.json @@ -54,6 +54,12 @@ { "name": "chrisryan10", "discord": "lazjen" + }, + { + "name": "nsalyzyn", + "url": "https://github.com/nsalyzyn", + "email": "nsalyzyn@gmail.com", + "discord": "nsalyzyn" } ], "esmodules": ["build/daggerheart.js"], From 09aafd0999e5741e4db36824d14db6ecd24c680b Mon Sep 17 00:00:00 2001 From: Nikhil Nagarajan Date: Sat, 27 Dec 2025 11:02:24 -0500 Subject: [PATCH 2/4] Icon for Action Changed (#1478) --- module/config/actionConfig.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/config/actionConfig.mjs b/module/config/actionConfig.mjs index d64fd9e9..c9b70193 100644 --- a/module/config/actionConfig.mjs +++ b/module/config/actionConfig.mjs @@ -2,7 +2,7 @@ export const actionTypes = { attack: { id: 'attack', name: 'DAGGERHEART.ACTIONS.TYPES.attack.name', - icon: 'fa-khanda', + icon: 'fa-hand-fist', tooltip: 'DAGGERHEART.ACTIONS.TYPES.attack.tooltip' }, countdown: { From ab7ea03d84fd87101c1c204b3c965811f2a34321 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Sat, 27 Dec 2025 18:15:56 +0100 Subject: [PATCH 3/4] [Fix] Actor Roll Data (#1477) * . * . --- module/data/action/baseAction.mjs | 15 +++++++-------- module/documents/actor.mjs | 5 ++++- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/module/data/action/baseAction.mjs b/module/data/action/baseAction.mjs index a9521b4a..6c7b8c59 100644 --- a/module/data/action/baseAction.mjs +++ b/module/data/action/baseAction.mjs @@ -164,14 +164,13 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel getRollData(data = {}) { const actorData = this.actor ? this.actor.getRollData(false) : {}; - return { - ...actorData, - result: data.roll?.total ?? 1, - scale: data.costs?.length // Right now only return the first scalable cost. - ? (data.costs.find(c => c.scalable)?.total ?? 1) - : 1, - roll: {} - }; + actorData.result = data.roll?.total ?? 1; + actorData.scale = data.costs?.length // Right now only return the first scalable cost. + ? (data.costs.find(c => c.scalable)?.total ?? 1) + : 1; + actorData.roll = {}; + + return actorData; } /** diff --git a/module/documents/actor.mjs b/module/documents/actor.mjs index 06b60447..9f4db5e2 100644 --- a/module/documents/actor.mjs +++ b/module/documents/actor.mjs @@ -539,7 +539,10 @@ export default class DhpActor extends Actor { /**@inheritdoc */ getRollData() { - const rollData = super.getRollData().clone(); + const rollData = foundry.utils.deepClone(super.getRollData()); + /* system gets repeated infinately which causes issues when trying to use the data for document creation */ + delete rollData.system; + rollData.name = this.name; rollData.system = this.system.getRollData(); rollData.prof = this.system.proficiency ?? 1; From 87dfebec2f4465c08aefb02d8abec041600b1cc4 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sat, 27 Dec 2025 18:17:05 +0100 Subject: [PATCH 4/4] Raised version --- system.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system.json b/system.json index f613cd91..0dcbc398 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "daggerheart", "title": "Daggerheart", "description": "An unofficial implementation of the Daggerheart system", - "version": "1.4.1", + "version": "1.4.2", "compatibility": { "minimum": "13.346", "verified": "13.351",