From aff4dda77f98d06298db817516cbf46fcfaa1c5c Mon Sep 17 00:00:00 2001 From: supervj <64861570+supervj@users.noreply.github.com> Date: Thu, 11 Feb 2021 10:01:43 -0500 Subject: [PATCH] Fix Point usage it seems to work now. It really helps having a live data tree to look at. --- module/item/entity.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/item/entity.js b/module/item/entity.js index 479edb49..55eb05b3 100644 --- a/module/item/entity.js +++ b/module/item/entity.js @@ -526,12 +526,12 @@ export default class Item5e extends Item { if ( canConsume === false ) return false; } - // Consume Power Slots + // Consume Power Slots and Force/Tech Points if ( consumePowerSlot ) { const level = this.actor?.data.data.powers[consumePowerSlot]; const fp = this.actor.data.data.attributes.force.points; const tp = this.actor.data.data.attributes.tech.points; - const powerCost = level + 1; + const powerCost = id.level + 1; switch (id.school){ case "lgt": case "uni":