toggle functionality added

This commit is contained in:
Nikhil Nagarajan 2025-11-09 16:34:32 -05:00
parent 8a832fa142
commit 4ce9cb98d8
3 changed files with 87 additions and 6 deletions

View file

@ -55,6 +55,7 @@ export default class DHBaseActorSheet extends DHApplicationMixin(ActorSheetV2) {
async _prepareContext(_options) {
const context = await super._prepareContext(_options);
context.isNPC = this.document.isNPC;
context.useResourcePips = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.appearance).useResourcePips;
context.showAttribution = !game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.appearance)
.hideAttribution;