[Fix] 1696 - Homebrew Fixes (#1707)

* SettingsActiveEffectConfig was out of date, making it error

* Other two fixes

* .

* .
This commit is contained in:
WBHarry 2026-03-06 11:03:55 +01:00 committed by GitHub
parent 9cba77ec11
commit 9bfe3505bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 61 additions and 59 deletions

View file

@ -7,19 +7,7 @@ export default class SettingActiveEffectConfig extends HandlebarsApplicationMixi
super({});
this.effect = foundry.utils.deepClone(effect);
const ignoredActorKeys = ['config', 'DhEnvironment'];
this.changeChoices = Object.keys(game.system.api.models.actors).reduce((acc, key) => {
if (!ignoredActorKeys.includes(key)) {
const model = game.system.api.models.actors[key];
const attributes = CONFIG.Token.documentClass.getTrackedAttributes(model);
const group = game.i18n.localize(model.metadata.label);
const choices = CONFIG.Token.documentClass
.getTrackedAttributeChoices(attributes, model)
.map(x => ({ ...x, group: group }));
acc.push(...choices);
}
return acc;
}, []);
this.changeChoices = game.system.api.applications.sheetConfigs.ActiveEffectConfig.getChangeChoices();
}
static DEFAULT_OPTIONS = {