mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-07 13:24:16 +02:00
Updated Third Party Development Details (markdown)
parent
c9777fadb8
commit
617d7226f6
1 changed files with 15 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ Hooks.once('init', () => {
|
||||||
```
|
```
|
||||||
|
|
||||||
## Custom Resources
|
## 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" />
|
<img width="710" height="414" alt="image" src="https://github.com/user-attachments/assets/827e6b37-33ff-4fad-9a59-206cc67aab72" />
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
@ -41,7 +41,7 @@ Hooks.once('init', () => {
|
||||||
empty: {
|
empty: {
|
||||||
value: 'fa-regular fa-burger', // The font-awesome string or image filepath
|
value: 'fa-regular fa-burger', // The font-awesome string or image filepath
|
||||||
isIcon: true, // If the value is a font-awesome string or not
|
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: {
|
full: {
|
||||||
value: 'fa-solid fa-burger',
|
value: 'fa-solid fa-burger',
|
||||||
|
|
@ -73,3 +73,16 @@ 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
|
||||||
|
};
|
||||||
|
});
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue