custom defeated icons (#1241)

This commit is contained in:
WBHarry 2025-11-06 16:01:19 +01:00 committed by GitHub
parent ff79dd19bf
commit 659670c403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 65 additions and 38 deletions

View file

@ -34,15 +34,6 @@ Hooks.once('init', () => {
CONFIG.TextEditor.enrichers.push(...enricherConfig);
CONFIG.statusEffects = [
...CONFIG.statusEffects.filter(x => !['dead', 'unconscious'].includes(x.id)),
...Object.values(SYSTEM.GENERAL.conditions).map(x => ({
...x,
name: game.i18n.localize(x.name),
systemEffect: true
}))
];
CONFIG.Dice.daggerheart = {
DHRoll: DHRoll,
DualityRoll: DualityRoll,
@ -160,6 +151,17 @@ Hooks.once('init', () => {
return handlebarsRegistration();
});
Hooks.on('setup', () => {
CONFIG.statusEffects = [
...CONFIG.statusEffects.filter(x => !['dead', 'unconscious'].includes(x.id)),
...Object.values(SYSTEM.GENERAL.conditions()).map(x => ({
...x,
name: game.i18n.localize(x.name),
systemEffect: true
}))
];
});
Hooks.on('ready', async () => {
ui.resources = new CONFIG.ui.resources();
if (game.settings.get(SYSTEM.id, SYSTEM.SETTINGS.gameSettings.appearance).displayFear !== 'hide')