mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 04:44:16 +02:00
Updated Module Builder Information (markdown)
parent
bde94c5ec5
commit
3feb786fc6
1 changed files with 17 additions and 0 deletions
|
|
@ -1,5 +1,22 @@
|
||||||
Various intended ways modules can alter the system.
|
Various intended ways modules can alter the system.
|
||||||
|
|
||||||
|
## Attribution Sources
|
||||||
|
You can add attribution information to mark where your adversaries, items etc. are coming from, accessed from the tree-dot context menu on the sheet.
|
||||||
|
This can be done via freeform typing it in, but when you have a lot of things it can be handy to define an Attribution Source to allow you to just pick your options in a dropdown.
|
||||||
|
You would do this in the `init` hook:
|
||||||
|
```js
|
||||||
|
Hooks.once('init', () => {
|
||||||
|
CONFIG.DH.GENERAL.attributionSources.deadlyBeasts = {
|
||||||
|
label: "Deadly Beasts",
|
||||||
|
values: [
|
||||||
|
{ label: "Deadly Beasts - Volume 1" },
|
||||||
|
{label: "Deadly Beasts - Volume 2"}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
})
|
||||||
|
```
|
||||||
|
<img width="837" height="958" alt="image" src="https://github.com/user-attachments/assets/890943e5-ff48-4500-b3c5-a1450cc8765b" />
|
||||||
|
|
||||||
## Custom Resources
|
## Custom Resources
|
||||||
In the `init` hook, you can register custom resources for characters. This is done by defining new key/object pairs on `CONFIG.DH.RESOURCE.character.custom`.
|
In the `init` hook, you can register custom resources for characters. This is done by defining new key/object pairs on `CONFIG.DH.RESOURCE.character.custom`.
|
||||||
The data structure is:
|
The data structure is:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue