Get the base Actor sheet working w/ collaboration

This commit is contained in:
Oliver-Akins 2024-08-28 22:36:12 -06:00
parent 60b0072bcc
commit ce9c2de751
18 changed files with 320 additions and 22 deletions

View file

@ -4,9 +4,23 @@ export class PlayerSheetv1 extends ActorSheet {
super.defaultOptions,
{
template: `systems/${game.system.id}/templates/Player/v1/main.hbs`,
classes: [],
},
);
opts.classes.push(`style-v1`);
opts.classes = [`actor--player`, `style-v1`];
return opts;
};
async getData() {
const ctx = {};
ctx.editable = this.isEditable;
const actor = ctx.actor = this.actor;
ctx.system = actor.system;
ctx.enriched = { system: {} };
ctx.enriched.system.content = await TextEditor.enrichHTML(actor.system.content);
return ctx;
};
}