forked from GitHub-Mirrors/foundry-sw5e
Update entity.js
whoops again :)
This commit is contained in:
parent
a893212b22
commit
e73c04b9f5
1 changed files with 1 additions and 1 deletions
|
@ -529,7 +529,7 @@ export default class Actor5e extends Actor {
|
||||||
if ( Number.isNaN(i) ) continue;
|
if ( Number.isNaN(i) ) continue;
|
||||||
if ( Number.isNumeric(lvl.toverride) ) lvl.tmax = Math.max(parseInt(lvl.toverride), 0);
|
if ( Number.isNumeric(lvl.toverride) ) lvl.tmax = Math.max(parseInt(lvl.toverride), 0);
|
||||||
else lvl.tmax = techPowerLimit[i-1] || 0;
|
else lvl.tmax = techPowerLimit[i-1] || 0;
|
||||||
lvl.tvalue = Math.max(parseInt(lvl.tvalue),lvl.tmax);
|
lvl.tvalue = Math.min(parseInt(lvl.tvalue),lvl.tmax);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set Force and tech power
|
// Set Force and tech power
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue