Removed unnecessary calculation

This commit is contained in:
Jacob Lucas 2021-07-03 01:42:08 +01:00
parent 063d529f09
commit cac466462b

View file

@ -431,13 +431,6 @@ export default class Actor5e extends Actor {
const powers = ad.powers;
const isNPC = actorData.type === 'npc';
// Powercasting DC
// 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.powerTechDC = 8 + ad.abilities.int.mod + ad.attributes.prof ?? 10;
// Translate the list of classes into force and tech power-casting progression
const forceProgression = {
classes: 0,