#8 - Weapn/armor management

This commit is contained in:
2021-03-13 22:33:24 +01:00
parent 9d610215d4
commit 2353ba5ff9
6 changed files with 63 additions and 17 deletions

View File

@@ -66,14 +66,12 @@ export class SoSItemSheet extends ItemSheet {
html.find('.item-edit').click(ev => {
const li = $(ev.currentTarget).parents(".item");
const item = this.object.options.actor.getOwnedItem(li.data("item-id"));
console.log("ITEM", item, li.data("item-id"), li);
item.sheet.render(true);
});
// Update Inventory Item
html.find('.item-delete').click(ev => {
const li = $(ev.currentTarget).parents(".item");
this.object.options.actor.deleteOwnedItem( li.data("item-id") ).then( this.render(true));
//this.render(true);
});
}