mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Added automation on fear to countdowns
This commit is contained in:
parent
498e6b9aa2
commit
f9f2abc484
5 changed files with 24 additions and 15 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue