Fix Point usage

it seems to work now.  It really helps having a live data tree to look at.
This commit is contained in:
supervj 2021-02-11 10:01:43 -05:00
parent 1b0a70becb
commit aff4dda77f

View file

@ -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":