Add multiclassing

Changes:
 + add multiclassing option
 + add edit and delete item for class
This commit is contained in:
2024-03-19 20:10:48 +01:00
parent 1a15898ac0
commit 1c21e64d20
5 changed files with 56 additions and 10 deletions
+8
View File
@@ -433,6 +433,14 @@ export default class M5CharacterSheet extends ActorSheet {
}
});
html.find(".class-item-edit").on("click", async (event) => {
this.actor.items.find((x) => x.type === "class").sheet.render(true);
});
html.find(".class-item-delete").on("click", async (event) => {
this.actor.items.find((x) => x.type === "class").delete();
});
// Drag & Drop
const dragDrop = new DragDrop({
dragSelector: ".items-list .item",