Added characterSpotlight automation

This commit is contained in:
WBHarry 2025-11-18 18:19:48 +01:00
parent 6536e84afe
commit cd7c61af42
3 changed files with 8 additions and 0 deletions

View file

@ -931,6 +931,7 @@
}
},
"CountdownType": {
"characterSpotlight": "Character Spotlight",
"spotlight": "Spotlight",
"custom": "Custom",
"characterAttack": "Character Attack"

View file

@ -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) {

View file

@ -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'