diff --git a/module/vermine2047.mjs b/module/vermine2047.mjs index 74db316..90eb4b1 100644 --- a/module/vermine2047.mjs +++ b/module/vermine2047.mjs @@ -42,7 +42,7 @@ Hooks.once('init', async function () { * @type {String} */ CONFIG.Combat.initiative = { - formula: "(@abilities.reflexes.value + @skills.alertness.value)d10cs>=7", + formula: "(@abilities.reflexes.value + @skills.alertness.value)d10cs>=@combatStatus.difficulty", decimals: 2 }; diff --git a/template.json b/template.json index 6a8722d..1a7cc6e 100644 --- a/template.json +++ b/template.json @@ -374,6 +374,10 @@ "category": "world", "rarity": 1 } + }, + "combatStatus": { + "label": "", + "difficulty": 7 } }, "npc": { @@ -529,7 +533,10 @@ "templates": [ "base" ], - "needSkill": false + "needSkill": { + "value": false, + "skill": "" + } }, "weapon": { "templates": [