diff --git a/module/sheets/item-sheet.mjs b/module/sheets/item-sheet.mjs index eb79120..436b62e 100644 --- a/module/sheets/item-sheet.mjs +++ b/module/sheets/item-sheet.mjs @@ -11,7 +11,7 @@ export class VermineItemSheet extends ItemSheet { return foundry.utils.mergeObject(super.defaultOptions, { classes: ["vermine2047", "sheet", "item"], width: 450, - height: "auto", + height: "max-content", tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }] }); } diff --git a/module/system/fight.mjs b/module/system/fight.mjs index 0ba47ce..f34ae63 100644 --- a/module/system/fight.mjs +++ b/module/system/fight.mjs @@ -466,11 +466,13 @@ export class VermineCombatTracker extends CombatTracker { const combatant = combat.combatants.get(li.dataset.combatantId); let flag = combatant.getFlag("world", "attitude"); if (flag == attitude) { - return await combatant.setFlag("world", "attitude", null); + await combatant.setFlag("world", "attitude", null); } else { - return await combatant.setFlag("world", "attitude", attitude); + await combatant.setFlag("world", "attitude", attitude); } + let actor = await game.actors.get(combatant.actorId) + console.log(actor, combatant) } } diff --git a/templates/item/item-evolution-sheet.html b/templates/item/item-evolution-sheet.html index aaa66dd..3f6338e 100644 --- a/templates/item/item-evolution-sheet.html +++ b/templates/item/item-evolution-sheet.html @@ -1,42 +1,21 @@ -
\ No newline at end of file + diff --git a/templates/item/item-item-sheet.html b/templates/item/item-item-sheet.html index a32e37d..dcbfaad 100644 --- a/templates/item/item-item-sheet.html +++ b/templates/item/item-item-sheet.html @@ -1,42 +1,37 @@