This commit is contained in:
François-Xavier Guillois
2023-09-05 12:06:22 +02:00
parent e1238a1ad1
commit 983f856187
15 changed files with 153 additions and 145 deletions
-14
View File
@@ -141,20 +141,6 @@ export class VermineNpcSheet extends VermineActorSheet {
// Everything below here is only needed if the sheet is editable
if (!this.isEditable) return;
// Add Inventory Item
html.find('.item-create').click(this._onItemCreate.bind(this));
// Delete Inventory Item
html.find('.item-delete').click(ev => {
const li = $(ev.currentTarget).parents(".item");
const item = this.actor.items.get(li.data("itemId"));
item.delete();
li.slideUp(200, () => this.render(false));
});
// Active Effect management
html.find(".effect-control").click(ev => onManageActiveEffect(ev, this.actor));
// Rollable abilities.
html.find('.rollable').click(this._onRoll.bind(this));