From 4599639237fbe2e07e745ed93fa1ff032715e912 Mon Sep 17 00:00:00 2001 From: supervj <64861570+supervj@users.noreply.github.com> Date: Thu, 11 Feb 2021 15:50:38 -0500 Subject: [PATCH] Fix Tech point consumption whoops again... --- module/item/entity.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/item/entity.js b/module/item/entity.js index 55eb05b3..00c34a34 100644 --- a/module/item/entity.js +++ b/module/item/entity.js @@ -560,10 +560,10 @@ export default class Item5e extends Item { } actorUpdates[`data.powers.${consumePowerSlot}.tvalue`] = Math.max(powers - 1, 0); if (tp.temp >= powerCost) { - actorUpdates["data.attributes.force.points.temp"] = tp.temp - powerCost; + actorUpdates["data.attributes.tech.points.temp"] = tp.temp - powerCost; }else{ - actorUpdates["data.attributes.force.points.value"] = tp.value + tp.temp - powerCost; - actorUpdates["data.attributes.force.points.temp"] = 0; + actorUpdates["data.attributes.tech.points.value"] = tp.value + tp.temp - powerCost; + actorUpdates["data.attributes.tech.points.temp"] = 0; } break; }