forked from GitHub-Mirrors/foundry-sw5e
Fixed error that caused max force & tech points to evaluate to NaN
This commit is contained in:
parent
df44ad0635
commit
e271c41239
1 changed files with 2 additions and 2 deletions
|
@ -616,12 +616,12 @@ export default class Actor5e extends Actor {
|
|||
if (!isNPC) {
|
||||
if (forceProgression.levels) {
|
||||
ad.attributes.force.known.max = forceProgression.powersKnown;
|
||||
ad.attributes.force.points.max = forceProgression.points + Math.max(ad.abilities.wis.mod, ad.abilities.cha.mod);
|
||||
ad.attributes.force.points.max = forceProgression.points;
|
||||
ad.attributes.force.level = forceProgression.levels;
|
||||
}
|
||||
if (techProgression.levels){
|
||||
ad.attributes.tech.known.max = techProgression.powersKnown;
|
||||
ad.attributes.tech.points.max = techProgression.points + ad.abilities.int.mod;
|
||||
ad.attributes.tech.points.max = techProgression.points;
|
||||
ad.attributes.tech.level = techProgression.levels;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue