diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 0537ef1..cefbf9a 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -134,12 +134,12 @@ export class SoSActorSheet extends ActorSheet { }); html.find('.skill-label a').click((event) => { const li = $(event.currentTarget).parents(".item"); - const skill = this.actor.get.items(li.data("item-id")); + const skill = this.actor.items.get(li.data("item-id")); this.actor.rollSkill(skill); }); html.find('.weapon-label a').click((event) => { const li = $(event.currentTarget).parents(".item"); - const weapon = this.actor.get.items(li.data("item-id")); + const weapon = this.actor.items.get(li.data("item-id")); this.actor.rollWeapon(weapon); }); html.find('.skill-value').change((event) => { diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 326846b..290a7d1 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -236,7 +236,7 @@ {{weapon.name}}
- {{#if weapon.data.equiped}}{{else}}{{/if}} + {{#if weapon.data.data.equiped}}{{else}}{{/if}}
diff --git a/templates/item-armor-sheet.html b/templates/item-armor-sheet.html index 556c6c0..49b68c2 100644 --- a/templates/item-armor-sheet.html +++ b/templates/item-armor-sheet.html @@ -1,8 +1,8 @@
- +
-

+

diff --git a/templates/item-commongear-sheet.html b/templates/item-commongear-sheet.html index d122999..09167c7 100644 --- a/templates/item-commongear-sheet.html +++ b/templates/item-commongear-sheet.html @@ -43,10 +43,11 @@ + {{/with}} +
- {{editor content=data.description target="data.description" button=true owner=owner editable=editable}} + {{editor content=data.data.description target="data.description" button=true owner=owner editable=editable}}
-{{/with}}