Add consequenes to actor sheet
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user