From 19a401f5ef64e7bb454ab7b09e357da3946d1f3a Mon Sep 17 00:00:00 2001 From: MaxPat931 <86370342+MaxPat931@users.noreply.github.com> Date: Tue, 14 Nov 2023 14:00:33 -0800 Subject: [PATCH] Ability Improvements, Quotation Marks --- wiki/Modifying-Your-Game-with-Scripts.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/wiki/Modifying-Your-Game-with-Scripts.md b/wiki/Modifying-Your-Game-with-Scripts.md index 48a7e019ae..922a177041 100644 --- a/wiki/Modifying-Your-Game-with-Scripts.md +++ b/wiki/Modifying-Your-Game-with-Scripts.md @@ -46,8 +46,9 @@ Hooks.once("init", () => { CONFIG.DND5E.abilities.grt = { label: "Grit", abbreviation: "grt", - type: "mental", ///mental or physical - defaults: {vehicle: 0} ///Optional + type: "mental", // mental or physical + defaults: {vehicle: 0}, // Optional + improvement: false, // Explicitly set this to 'false' to prevent it showing up for ASIs. }; }); ``` @@ -118,6 +119,8 @@ Hooks.once("init", () => { } }; }); +``` + ## Add a new Armor Calculation ```js /// Add a new AC Calculation @@ -151,12 +154,12 @@ Hooks.once("init", () => { ```js /// Adds in options to display in the Activation Cost dropdown Hooks.once("init", () => { - CONFIG.DND5E.abilityActivationTypes.crithit = 'Critical Hit'; - CONFIG.DND5E.abilityActivationTypes.attack = 'On Attack'; - CONFIG.DND5E.abilityActivationTypes.attack = 'Replaces Attack'; - CONFIG.DND5E.abilityActivationTypes.meleehit = 'On Melee Hit'; - CONFIG.DND5E.abilityActivationTypes.rangedhit = 'On Ranged Hit'; - CONFIG.DND5E.abilityActivationTypes.weaponhit = 'On Weapon Hit'; + CONFIG.DND5E.abilityActivationTypes.crithit = "Critical Hit"; + CONFIG.DND5E.abilityActivationTypes.attack = "On Attack"; + CONFIG.DND5E.abilityActivationTypes.replaceattack = "Replaces Attack"; + CONFIG.DND5E.abilityActivationTypes.meleehit = "On Melee Hit"; + CONFIG.DND5E.abilityActivationTypes.rangedhit = "On Ranged Hit"; + CONFIG.DND5E.abilityActivationTypes.weaponhit = "On Weapon Hit"; }); ```