diff --git a/src/lang/en.json b/src/lang/en.json index 05607bb..117d489 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -244,7 +244,7 @@ "ACKS.spells.Memorized": "Memorized", "ACKS.spells.Cast": "Cast", "ACKS.spells.Range": "Range", - "ACKS.spells.Slots": "Slots", + "ACKS.spells.Slots": "Used", "ACKS.spells.Class": "Class", "ACKS.spells.Duration": "Duration", "ACKS.spells.Level": "Level", diff --git a/src/module/actor/actor-sheet.js b/src/module/actor/actor-sheet.js index 113d095..51f074c 100644 --- a/src/module/actor/actor-sheet.js +++ b/src/module/actor/actor-sheet.js @@ -55,7 +55,7 @@ export class AcksActorSheet extends ActorSheet { let lvl = spells[i].data.lvl; if (!sortedSpells[lvl]) sortedSpells[lvl] = []; if (!slots[lvl]) slots[lvl] = 0; - slots[lvl] += spells[i].data.memorized; + slots[lvl] += spells[i].data.cast; sortedSpells[lvl].push(spells[i]); } data.slots = { @@ -113,7 +113,8 @@ export class AcksActorSheet extends ActorSheet { const item = this.actor.getOwnedItem(itemId); item.update({ _id: item.id, - "data.cast": item.data.data.memorized, + "data.cast": 0, + "item.data.data.memorized": 0 }); }); } diff --git a/src/module/item/entity.js b/src/module/item/entity.js index 18e14f1..37f3f13 100644 --- a/src/module/item/entity.js +++ b/src/module/item/entity.js @@ -146,7 +146,7 @@ export class AcksItem extends Item { spendSpell() { this.update({ data: { - cast: this.data.data.cast - 1, + cast: this.data.data.cast + 1, }, }).then(() => { this.show({ skipDialog: true }); diff --git a/src/templates/actors/partials/character-spells-tab.html b/src/templates/actors/partials/character-spells-tab.html index e9339b1..00c362f 100644 --- a/src/templates/actors/partials/character-spells-tab.html +++ b/src/templates/actors/partials/character-spells-tab.html @@ -34,12 +34,9 @@ -
+
- / -
+ title="{{localize 'ACKS.spells.Cast'}}">
{{#if ../../owner}}