This commit is contained in:
2022-01-16 16:12:15 +01:00
parent f9d3916f3f
commit 7a05d66d0b
3 changed files with 17 additions and 0 deletions

View File

@ -192,6 +192,12 @@ export class PegasusActorSheet extends ActorSheet {
this.actor.equipItem( li.data("item-id") );
this.render(true);
});
html.find('.power-activate').click(ev => {
const li = $(ev.currentTarget).parents(".item");
this.actor.activatePower( li.data("item-id") );
this.render(true);
});
html.find('.update-field').change(ev => {
const fieldName = $(ev.currentTarget).data("field-name");
let value = ev.currentTarget.value;