Fixed bug that caused power points to not have the mods

This commit is contained in:
Jacob Lucas 2021-07-03 01:40:48 +01:00
parent 7a18055c18
commit b343a06ef6

View file

@ -669,10 +669,10 @@ export default class Actor5e extends Actor {
// TODO: Consider an option for using the variant rule of all powers use the same value
ad.attributes.powerForceLightDC = 8 + ad.abilities.wis.mod + ad.attributes.prof ?? 10;
ad.attributes.powerForceDarkDC = 8 + ad.abilities.cha.mod + ad.attributes.prof ?? 10;
ad.attributes.powerForceUnivDC = Math.max(ad.attributes.powerForceLightDC,ad.attributes.powerForceDarkDC) ?? 10
ad.attributes.powerForceUnivDC = Math.max(ad.attributes.powerForceLightDC,ad.attributes.powerForceDarkDC) ?? 10;
ad.attributes.powerTechDC = 8 + ad.abilities.int.mod + ad.attributes.prof ?? 10;
if (actorData.type !== 'actor') return;
if (actorData.type !== 'character') return;
// Set Force and tech bonus points for PC Actors
if (!!ad.attributes.force.level){