First flip management

This commit is contained in:
2021-01-24 23:18:50 +01:00
parent 8cd9d638b9
commit 05a2b02482
8 changed files with 252 additions and 38 deletions

View File

@ -75,6 +75,11 @@ export class SoSActorSheet extends ActorSheet {
let statName = event.currentTarget.attributes.name.value;
this.actor.rollStat(statName);
});
html.find('.skill-label a').click((event) => {
const li = $(event.currentTarget).parents(".item");
const skill = this.actor.getOwnedItem(li.data("item-id"));
this.actor.rollSkill(skill);
});
html.find('.edge-draw').click((event) => {
this.actor.resetDeck();
this.render(true);