From 582a15be77971e28e82a33414b35e3add646c32a Mon Sep 17 00:00:00 2001 From: WBHarry Date: Thu, 2 Apr 2026 11:23:57 +0200 Subject: [PATCH 01/73] Fixed scene-navigation styling for levels --- .../ui/sceneNavigation/scene-navigation.hbs | 61 +++++-------------- 1 file changed, 15 insertions(+), 46 deletions(-) diff --git a/templates/ui/sceneNavigation/scene-navigation.hbs b/templates/ui/sceneNavigation/scene-navigation.hbs index 68df761e..5bdbbdad 100644 --- a/templates/ui/sceneNavigation/scene-navigation.hbs +++ b/templates/ui/sceneNavigation/scene-navigation.hbs @@ -11,19 +11,21 @@ {{> ".scene" }} {{/with}} - - {{#each scenes.levels}} -
  • - {{#with button}} - - {{/with}} -
    - {{ name }} -
    -
  • - {{/each}} -
    + {{#if scenes.levels}} + + {{#each scenes.levels}} +
  • + {{#with button}} + + {{/with}} +
    + {{ name }} +
    +
  • + {{/each}} +
    + {{/if}} {{#each scenes.active}} {{> ".scene" }} @@ -34,39 +36,6 @@ {{> ".scene" }} {{/each}} - {{!-- - {{#each scenes.active as |scene|}} -
  • -
      -
    • - {{scene.name}} - {{#if scene.users}} -
        - {{#each scene.users as |user|}} -
      • {{user.letter}}
      • - {{/each}} -
      - {{/if}} -
    • -
    - {{#if scene.hasEnvironments}} - - {{/if}} -
  • - {{/each}} -
    - - {{#each scenes.inactive as |scene|}} -
  • -
      -
    • - {{scene.name}} -
    • -
    -
  • - {{/each}} -
    --}} {{#*inline ".scene"}} From e8ac3012ad390f2e0a9c36bd3e8206db20cc40cc Mon Sep 17 00:00:00 2001 From: WBHarry Date: Thu, 2 Apr 2026 11:24:17 +0200 Subject: [PATCH 02/73] Raised version --- system.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system.json b/system.json index b1fe74d8..ea71aaba 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "daggerheart", "title": "Daggerheart", "description": "An unofficial implementation of the Daggerheart system", - "version": "2.0.0", + "version": "2.0.1", "compatibility": { "minimum": "14.359", "verified": "14.359", From 0f1ac406df4a4e866ea089798d131ef73af827eb Mon Sep 17 00:00:00 2001 From: WBHarry Date: Thu, 2 Apr 2026 12:22:31 +0200 Subject: [PATCH 03/73] Fixed adding a new damage instance to an action default to prof, which doesn't work for adversaries --- .../applications/sheets-configs/action-config.mjs | 1 - module/data/fields/action/damageField.mjs | 4 ++-- templates/actionTypes/effect.hbs | 15 --------------- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/module/applications/sheets-configs/action-config.mjs b/module/applications/sheets-configs/action-config.mjs index e15b0391..e073cfa6 100644 --- a/module/applications/sheets-configs/action-config.mjs +++ b/module/applications/sheets-configs/action-config.mjs @@ -21,7 +21,6 @@ export default class DHActionConfig extends DHActionBaseConfig { static async addEffect(_event) { if (!this.action.effects) return; - const effectData = this._addEffectData.bind(this)(); const data = this.action.toObject(); const created = await this.action.item.createEmbeddedDocuments('ActiveEffect', [ diff --git a/module/data/fields/action/damageField.mjs b/module/data/fields/action/damageField.mjs index d41d2d4a..5d40a470 100644 --- a/module/data/fields/action/damageField.mjs +++ b/module/data/fields/action/damageField.mjs @@ -232,7 +232,7 @@ export class DHActionDiceData extends foundry.abstract.DataModel { return { multiplier: new fields.StringField({ choices: CONFIG.DH.GENERAL.multiplierTypes, - initial: 'prof', + initial: 'flat', label: 'DAGGERHEART.ACTIONS.Config.damage.multiplier', nullable: false, required: true @@ -244,7 +244,7 @@ export class DHActionDiceData extends foundry.abstract.DataModel { }), dice: new fields.StringField({ choices: CONFIG.DH.GENERAL.diceTypes, - initial: 'd6', + initial: CONFIG.DH.GENERAL.diceTypes.d6, label: 'DAGGERHEART.GENERAL.Dice.single', nullable: false, required: true diff --git a/templates/actionTypes/effect.hbs b/templates/actionTypes/effect.hbs index dd6a7974..8c5e6e68 100644 --- a/templates/actionTypes/effect.hbs +++ b/templates/actionTypes/effect.hbs @@ -4,21 +4,6 @@