From cd7c61af420326d635773f4ec8269dbdfbcdc686 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Tue, 18 Nov 2025 18:19:48 +0100 Subject: [PATCH] Added characterSpotlight automation --- lang/en.json | 1 + module/applications/ui/combatTracker.mjs | 3 +++ module/config/generalConfig.mjs | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/lang/en.json b/lang/en.json index 4afcd65c..30b275a0 100755 --- a/lang/en.json +++ b/lang/en.json @@ -931,6 +931,7 @@ } }, "CountdownType": { + "characterSpotlight": "Character Spotlight", "spotlight": "Spotlight", "custom": "Custom", "characterAttack": "Character Attack" diff --git a/module/applications/ui/combatTracker.mjs b/module/applications/ui/combatTracker.mjs index 7b7d584a..370e62e2 100644 --- a/module/applications/ui/combatTracker.mjs +++ b/module/applications/ui/combatTracker.mjs @@ -137,6 +137,9 @@ export default class DhCombatTracker extends foundry.applications.sidebar.tabs.C if (this.viewed.turn !== toggleTurn) { const { updateCountdowns } = game.system.api.applications.ui.DhCountdowns; await updateCountdowns(CONFIG.DH.GENERAL.countdownProgressionTypes.spotlight.id); + if (combatant.actor.type === 'character') { + await updateCountdowns(CONFIG.DH.GENERAL.countdownProgressionTypes.characterSpotlight.id); + } const autoPoints = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Automation).actionPoints; if (autoPoints) { diff --git a/module/config/generalConfig.mjs b/module/config/generalConfig.mjs index f6d864d0..58081db9 100644 --- a/module/config/generalConfig.mjs +++ b/module/config/generalConfig.mjs @@ -616,6 +616,10 @@ export const countdownProgressionTypes = { id: 'spotlight', label: 'DAGGERHEART.CONFIG.CountdownType.spotlight' }, + characterSpotlight: { + id: 'characterSpotlight', + label: 'DAGGERHEART.CONFIG.CountdownType.characterSpotlight' + }, characterAttack: { id: 'characterAttack', label: 'DAGGERHEART.CONFIG.CountdownType.characterAttack'