modif template items
This commit is contained in:
@@ -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" }]
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user