Arme sheet ready

This commit is contained in:
2024-02-19 22:02:44 +01:00
parent f142b8f6cd
commit 3b98a18ee0
23 changed files with 210 additions and 152 deletions

View File

@ -32,19 +32,6 @@ export class TeDeumItemSheet extends ItemSheet {
return buttons
}
/* -------------------------------------------- */
/** @override */
setPosition(options = {}) {
const position = super.setPosition(options);
const sheetBody = this.element.find(".sheet-body");
const bodyHeight = position.height - 192;
sheetBody.css("height", bodyHeight);
if (this.item.type.includes('weapon')) {
position.width = 640;
}
return position;
}
/* -------------------------------------------- */
async getData() {