Add multiclassing
Changes: + add multiclassing option + add edit and delete item for class
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user