.dungeon/module/sheets/GenericSheet.mjs
2023-12-21 23:59:38 -07:00

19 lines
No EOL
417 B
JavaScript

export class GenericSheet extends ActorSheet {
#propogatedSettings = [
`devMode`,
`showAvatarOnSheet`,
`playersCanChangeGroup`,
];
getData() {
const ctx = super.getData();
// Send all of the settings that sheets need into their context
ctx.settings = {};
for (const setting of this.#propogatedSettings) {
ctx.settings[setting] = game.settings.get(`dotdungeon`, setting);
};
return ctx;
}
}