From d884e8323cfdbfdfc4b4e1a0d97baa964521106e Mon Sep 17 00:00:00 2001 From: U~man Date: Fri, 10 Jul 2020 13:36:10 +0200 Subject: [PATCH] ENH: Monster Attack counter Hints --- src/lang/en.json | 3 +++ src/module/actor/actor-sheet.js | 2 +- src/templates/actors/partials/monster-attributes-tab.html | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/lang/en.json b/src/lang/en.json index 1426889..726f73d 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -159,6 +159,9 @@ "OSE.items.ArmorAC": "AC", "OSE.items.ArmorAAC": "AAC", "OSE.items.Bonus": "Bonus", + "OSE.items.roundAttacks": "Attacks Spent this Round", + "OSE.items.roundAttacksMax": "Maximum Attacks per Round", + "OSE.items.resetAttacks": "Reset all Attacks per Round", "OSE.armor.type": "Armor Type", "OSE.armor.unarmored": "Unarmored", diff --git a/src/module/actor/actor-sheet.js b/src/module/actor/actor-sheet.js index dd6e61f..4b5eeec 100644 --- a/src/module/actor/actor-sheet.js +++ b/src/module/actor/actor-sheet.js @@ -117,10 +117,10 @@ export class OseActorSheet extends ActorSheet { const li = $(ev.currentTarget).parents(".item"); const item = this.actor.getOwnedItem(li.data("itemId")); if (item.type == "weapon") { - item.rollWeapon({event: ev}); if (this.actor.data.type === 'monster') { item.update({data: {counter: {value: item.data.data.counter.value - 1}}}) } + item.rollWeapon({event: ev}); } else { item.rollFormula({event: ev}); } diff --git a/src/templates/actors/partials/monster-attributes-tab.html b/src/templates/actors/partials/monster-attributes-tab.html index 90a4e93..af261cc 100644 --- a/src/templates/actors/partials/monster-attributes-tab.html +++ b/src/templates/actors/partials/monster-attributes-tab.html @@ -75,7 +75,7 @@
{{localize 'OSE.panel.abilities'}} & {{localize 'OSE.panel.equipment'}}
{{#if owner}} - + {{/if}} @@ -116,9 +116,9 @@
{{#if (eq item.type 'weapon')}}
- + / -
+ {{/if}}
{{#if ../../owner}}