Updated Third Party Development Details (markdown)

WBHarry 2026-05-10 12:48:50 +02:00
parent c9777fadb8
commit 617d7226f6

@ -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
<img width="710" height="414" alt="image" src="https://github.com/user-attachments/assets/827e6b37-33ff-4fad-9a59-206cc67aab72" />
```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
};
});
```