Add consequenes to actor sheet

This commit is contained in:
2021-01-31 17:53:36 +01:00
parent 147ab741de
commit c65f1b8246
3 changed files with 17 additions and 2 deletions

View File

@ -95,7 +95,13 @@ export class SoSActorSheet extends ActorSheet {
this.actor.resetDeck();
this.render(true);
});
html.find('.consequence-severity').click((event) => {
const li = $(event.currentTarget).parents(".item");
const item = this.actor.getOwnedItem(li.data("item-id"));
let severity = $(event.currentTarget).val();
this.actor.updateOwnedItem( { _id: item._id, 'data.severity': severity});
this.render(true);
});
html.find('.lock-unlock-sheet').click((event) => {
this.options.editStatSkill = !this.options.editStatSkill;
this.render(true);