From f9f2abc484850e93f6de03e8633f1794d3309ebe Mon Sep 17 00:00:00 2001 From: WBHarry Date: Thu, 20 Nov 2025 02:11:50 +0100 Subject: [PATCH] Added automation on fear to countdowns --- lang/en.json | 5 +++-- module/config/generalConfig.mjs | 18 +++++++++++------- module/dice/dhRoll.mjs | 4 ++++ ..._Dragon__Ashen_Tyrant_pMuXGCSOQaxpi5tb.json | 6 +++--- ...vironment_Cult_Ritual_QAXXiOKBDmCTauHD.json | 6 +++--- 5 files changed, 24 insertions(+), 15 deletions(-) diff --git a/lang/en.json b/lang/en.json index 684f9fa2..7e4d3923 100755 --- a/lang/en.json +++ b/lang/en.json @@ -932,10 +932,11 @@ }, "CountdownType": { "actionRoll": "Action Roll", + "characterAttack": "Character Attack", "characterSpotlight": "Character Spotlight", - "spotlight": "Spotlight", "custom": "Custom", - "characterAttack": "Character Attack" + "fear": "Fear", + "spotlight": "Spotlight" }, "DamageType": { "physical": { diff --git a/module/config/generalConfig.mjs b/module/config/generalConfig.mjs index 33de1956..2c2b1316 100644 --- a/module/config/generalConfig.mjs +++ b/module/config/generalConfig.mjs @@ -616,21 +616,25 @@ export const countdownProgressionTypes = { id: 'actionRoll', label: 'DAGGERHEART.CONFIG.CountdownType.actionRoll' }, - spotlight: { - id: 'spotlight', - label: 'DAGGERHEART.CONFIG.CountdownType.spotlight' + characterAttack: { + id: 'characterAttack', + label: 'DAGGERHEART.CONFIG.CountdownType.characterAttack' }, characterSpotlight: { id: 'characterSpotlight', label: 'DAGGERHEART.CONFIG.CountdownType.characterSpotlight' }, - characterAttack: { - id: 'characterAttack', - label: 'DAGGERHEART.CONFIG.CountdownType.characterAttack' - }, custom: { id: 'custom', label: 'DAGGERHEART.CONFIG.CountdownType.custom' + }, + fear: { + id: 'fear', + label: 'DAGGERHEART.CONFIG.CountdownType.fear' + }, + spotlight: { + id: 'spotlight', + label: 'DAGGERHEART.CONFIG.CountdownType.spotlight' } }; export const rollTypes = { diff --git a/module/dice/dhRoll.mjs b/module/dice/dhRoll.mjs index d01077c2..053445a7 100644 --- a/module/dice/dhRoll.mjs +++ b/module/dice/dhRoll.mjs @@ -248,6 +248,10 @@ export const registerRollDiceHooks = () => { ) { const { updateCountdowns } = game.system.api.applications.ui.DhCountdowns; await updateCountdowns(CONFIG.DH.GENERAL.countdownProgressionTypes.actionRoll.id); + + if (config.roll.result.duality === -1) { + await updateCountdowns(CONFIG.DH.GENERAL.countdownProgressionTypes.fear.id); + } } const hopeFearAutomation = automationSettings.hopeFear; diff --git a/src/packs/adversaries/adversary_Volcanic_Dragon__Ashen_Tyrant_pMuXGCSOQaxpi5tb.json b/src/packs/adversaries/adversary_Volcanic_Dragon__Ashen_Tyrant_pMuXGCSOQaxpi5tb.json index 588cbfec..64e6f4f9 100644 --- a/src/packs/adversaries/adversary_Volcanic_Dragon__Ashen_Tyrant_pMuXGCSOQaxpi5tb.json +++ b/src/packs/adversaries/adversary_Volcanic_Dragon__Ashen_Tyrant_pMuXGCSOQaxpi5tb.json @@ -861,7 +861,7 @@ "img": "icons/creatures/abilities/mouth-teeth-fire-orange.webp", "progress": { "looping": "noLooping", - "type": "custom", + "type": "fear", "max": "1d12", "current": 1 }, @@ -939,9 +939,9 @@ "exportSource": null, "coreVersion": "13.351", "systemId": "daggerheart", - "systemVersion": "1.2.3", + "systemVersion": "1.2.4", "createdTime": 1754140011482, - "modifiedTime": 1763489806693, + "modifiedTime": 1763601068928, "lastModifiedBy": "Q4RzhhaPfvLUzzbw" }, "_key": "!actors.items!pMuXGCSOQaxpi5tb.uWiyaJPXcoW06pOM" diff --git a/src/packs/environments/environment_Cult_Ritual_QAXXiOKBDmCTauHD.json b/src/packs/environments/environment_Cult_Ritual_QAXXiOKBDmCTauHD.json index efa1ce21..ae7902e2 100644 --- a/src/packs/environments/environment_Cult_Ritual_QAXXiOKBDmCTauHD.json +++ b/src/packs/environments/environment_Cult_Ritual_QAXXiOKBDmCTauHD.json @@ -373,7 +373,7 @@ "img": "icons/magic/unholy/barrier-fire-pink.webp", "progress": { "looping": "noLooping", - "type": "custom", + "type": "fear", "max": "6", "current": 1 }, @@ -430,9 +430,9 @@ "exportSource": null, "coreVersion": "13.351", "systemId": "daggerheart", - "systemVersion": "1.2.3", + "systemVersion": "1.2.4", "createdTime": 1754215458731, - "modifiedTime": 1763493605083, + "modifiedTime": 1763600981803, "lastModifiedBy": "Q4RzhhaPfvLUzzbw" }, "_key": "!actors.items!QAXXiOKBDmCTauHD.oFfu3hUhp4ta4qwT"