Refactor resource settings to not be a method

This commit is contained in:
Carlos Fernandez 2026-03-10 20:17:00 -04:00
parent f72fb3cf31
commit ef4c52c6fe
7 changed files with 82 additions and 66 deletions

View file

@ -233,6 +233,11 @@ Hooks.once('init', () => {
return handlebarsRegistration();
});
Hooks.on('i18nInit', () => {
// Setup homebrew resources
game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew).refreshConfig();
});
Hooks.on('setup', () => {
CONFIG.statusEffects = [
...CONFIG.statusEffects.filter(x => !['dead', 'unconscious'].includes(x.id)),