Add the Aspect sheet and update some translation keys for the actor sheet

This commit is contained in:
Oliver-Akins 2023-12-15 23:55:47 -07:00
parent c0d677cd77
commit 763a0982d5
22 changed files with 1277 additions and 84 deletions

View file

@ -12,10 +12,20 @@ export class AspectSheet extends ItemSheet {
return opts;
};
activateListeners(html) {
super.activateListeners(html);
if (this.document.isEmbedded) return;
if (!this.isEditable) return;
console.debug(`.dungeon | Adding event listeners for Item: ${this.id}`);
};
getData() {
const ctx = super.getData();
const ctx = {};
const item = this.item.toObject(false);
ctx.name = super.name;
ctx.item = item;
ctx.system = item.system;
ctx.flags = item.flags;

View file

@ -13,6 +13,7 @@ export class PlayerSheet extends ActorSheet {
activateListeners(html) {
super.activateListeners(html);
if (this.document.isEmbedded) return;
if (!this.isEditable) return;
console.debug(`.dungeon | Adding event listeners for Actor: ${this.id}`);
@ -33,4 +34,4 @@ export class PlayerSheet extends ActorSheet {
console.groupEnd();
return ctx;
};
}
};