Added a separation of system effects and generic effects on token status effects. Can be turned off in settings. (#317)

This commit is contained in:
WBHarry 2025-07-11 21:53:22 +02:00 committed by GitHub
parent d4cc8e5a49
commit 5b9db88d50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 199 additions and 5 deletions

View file

@ -41,10 +41,14 @@ Hooks.once('init', () => {
]
);
CONFIG.statusEffects = Object.values(SYSTEM.GENERAL.conditions).map(x => ({
...x,
name: game.i18n.localize(x.name)
}));
CONFIG.statusEffects = [
...CONFIG.statusEffects,
...Object.values(SYSTEM.GENERAL.conditions).map(x => ({
...x,
name: game.i18n.localize(x.name),
systemEffect: true
}))
];
CONFIG.Dice.daggerheart = {
DualityDie: DualityDie,
@ -108,6 +112,8 @@ Hooks.once('init', () => {
}
);
CONFIG.Token.hudClass = applications.hud.DHTokenHUD;
CONFIG.Combat.dataModels = {
base: models.DhCombat
};