Make DS4Item compile and commen getData methods for now

This commit is contained in:
Johannes Loher 2021-06-30 12:54:39 +02:00
parent 446340c064
commit 918fa5081b
4 changed files with 62 additions and 72 deletions

View file

@ -32,19 +32,17 @@ export class DS4ItemSheet extends ItemSheet {
const basePath = "systems/ds4/templates/sheets/item";
return `${basePath}/${this.item.data.type}-sheet.hbs`;
}
/** @override */
async getData(): Promise<ItemSheet.Data<DS4Item>> {
const data = {
...(await super.getData()),
config: DS4,
isOwned: this.item.isOwned,
actor: this.item.actor,
isPhysical: isDS4ItemDataTypePhysical(this.item.data.data),
};
return data;
}
// /** @override */
// async getData(): Promise<ItemSheet.Data<DS4Item>> {
// const data = {
// ...(await super.getData()),
// config: DS4,
// isOwned: this.item.isOwned,
// actor: this.item.actor,
// isPhysical: isDS4ItemDataTypePhysical(this.item.data.data),
// };
// return data;
// }
/** @override */
setPosition(options: Partial<Application.Position> = {}): (Application.Position & { height: number }) | undefined {
const position = super.setPosition(options);