diff --git a/Third-Party-Development-Details.md b/Third-Party-Development-Details.md index c63cd9b..8d21e75 100644 --- a/Third-Party-Development-Details.md +++ b/Third-Party-Development-Details.md @@ -15,7 +15,7 @@ Hooks.once('init', () => { ``` ## Custom Resources -If you want all characters to have access to a new sort of resource similar to `Hope`, then you define that resource as an additional key on the config path `CONFIG.DH.RESOURCE.character.custom`. This makes it available in the extra resource section +If you want all characters to have access to a new sort of resource similar to `Hope`, then you define that resource as an additional key on the config path `CONFIG.DH.RESOURCE.character.custom` in the Foundry init hook. This makes it available in the extra resource section image ```js @@ -41,7 +41,7 @@ Hooks.once('init', () => { empty: { value: 'fa-regular fa-burger', // The font-awesome string or image filepath isIcon: true, // If the value is a font-awesome string or not - noColorFilter: false, // If the standard system icon color should be omitted for the image + noColorFilter: false, // If the standard system icon color should be omitted for the image. Useful for custom images with background colors. }, full: { value: 'fa-solid fa-burger', @@ -72,4 +72,17 @@ Hooks.once('init', () => { } }; }); +``` + +## Custom Adversary Types +If you are adding additional adversary types to the existing list of `bruiser`, `leader` etc, then you add additional keys to the config path `CONFIG.DH.ACTOR.adversaryTypes` in the Foundry init hook. +```js +Hooks.once('init', () => { + CONFIG.DH.ACTOR.adversaryTypes.superMonster = { + id: 'superMonster', + label: 'Super Monster', // Alternatively a translation string if the module uses lang files + description: 'Thunderbolts and lightning, very very frightening', // Alternatively a translation string if the module uses lang files + bpCost: 4 + }; +}); ``` \ No newline at end of file