Add consequenes to actor sheet

This commit is contained in:
2021-01-31 17:39:37 +01:00
parent 1d2f438235
commit 147ab741de
3 changed files with 41 additions and 3 deletions

View File

@@ -83,10 +83,19 @@ export class SoSActorSheet extends ActorSheet {
const skill = this.actor.getOwnedItem(li.data("item-id"));
this.actor.rollSkill(skill);
});
html.find('.edge-draw').click((event) => {
html.find('.reset-deck-full').click((event) => {
this.actor.resetDeckFull();
this.render(true);
});
html.find('.draw-new-edge').click((event) => {
this.actor.drawNewEdge();
this.render(true);
});
html.find('.reset-deck').click((event) => {
this.actor.resetDeck();
this.render(true);
});
html.find('.lock-unlock-sheet').click((event) => {
this.options.editStatSkill = !this.options.editStatSkill;
this.render(true);