forked from GitHub-Mirrors/foundry-sw5e
Fix Point usage
it seems to work now. It really helps having a live data tree to look at.
This commit is contained in:
parent
1b0a70becb
commit
aff4dda77f
1 changed files with 2 additions and 2 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue