Update entity.js

looks good to me
This commit is contained in:
supervj 2021-06-28 17:14:03 -04:00
parent 74d841e9e1
commit 25684173fa

View file

@ -425,7 +425,7 @@ export default class Actor5e extends Actor {
* Prepare data related to the power-casting capabilities of the Actor * Prepare data related to the power-casting capabilities of the Actor
* @private * @private
*/ */
_computePowercastingProgression (actorData) { _computeBasePowercasting (actorData) {
if (actorData.type === 'vehicle' || actorData.type === 'starship') return; if (actorData.type === 'vehicle' || actorData.type === 'starship') return;
const ad = actorData.data; const ad = actorData.data;
const powers = ad.powers; const powers = ad.powers;
@ -635,7 +635,7 @@ export default class Actor5e extends Actor {
let knownTechPowers = 0; let knownTechPowers = 0;
for ( let knownPower of knownPowers ) { for ( let knownPower of knownPowers ) {
const d = knownPower.data; const d = knownPower.data;
switch (knownPower.data.school){ switch (d.data.school){
case "lgt": case "lgt":
case "uni": case "uni":
case "drk":{ case "drk":{
@ -663,7 +663,7 @@ export default class Actor5e extends Actor {
if ((actorData.type === 'actor') || (actorData.type === 'npc')) return; if ((actorData.type === 'actor') || (actorData.type === 'npc')) return;
ad = actorData.data; const ad = actorData.data;
// Powercasting DC for Actors and NPCs // Powercasting DC for Actors and NPCs
// TODO: Consider an option for using the variant rule of all powers use the same value // TODO: Consider an option for using the variant rule of all powers use the same value