forked from GitHub-Mirrors/foundry-sw5e
Update entity.js
looks good to me
This commit is contained in:
parent
74d841e9e1
commit
25684173fa
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue