mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 22:46:12 +01:00
Fixed so that ActiveEffectConfig uses missing hints and has resistance in the autocomplete list
This commit is contained in:
parent
17ec77a349
commit
6e5bc19dcb
3 changed files with 22 additions and 14 deletions
|
|
@ -243,14 +243,17 @@ Hooks.on('setup', () => {
|
|||
}))
|
||||
];
|
||||
|
||||
const actorCommon = {
|
||||
bar: ['resources.stress'],
|
||||
value: []
|
||||
};
|
||||
const damageThresholds = ['damageThresholds.major', 'damageThresholds.severe'];
|
||||
const traits = Object.keys(game.system.api.data.actors.DhCharacter.schema.fields.traits.fields).map(
|
||||
trait => `traits.${trait}.value`
|
||||
);
|
||||
const resistance = Object.values(game.system.api.data.actors.DhCharacter.schema.fields.resistance.fields).flatMap(
|
||||
type => Object.keys(type.fields).map(x => `resistance.${type.name}.${x}`)
|
||||
);
|
||||
const actorCommon = {
|
||||
bar: ['resources.stress'],
|
||||
value: [...resistance]
|
||||
};
|
||||
CONFIG.Actor.trackableAttributes = {
|
||||
character: {
|
||||
bar: [...actorCommon.bar, 'resources.hitPoints', 'resources.hope'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue