forked from GitHub-Mirrors/foundry-sw5e
SotG Update #1.1 (Quick Fixes)
^ Updates entity.js and starship.js to fix drag-and-drop and NaN errors and prepare for Starship Features. ^ Updates en.json, config.js, sw5e.js, and template.json to prepare for Starship Features.
This commit is contained in:
parent
c793949b37
commit
f393670528
6 changed files with 25 additions and 8 deletions
|
@ -317,7 +317,7 @@ export default class Actor5e extends Actor {
|
|||
const data = actorData.data;
|
||||
|
||||
// Proficiency
|
||||
data.attributes.prof = Math.floor((Math.max(data.details.cr, 1) + 7) / 4);
|
||||
data.attributes.prof = Math.floor((Math.max(data.details.tier, 1) + 7) / 4);
|
||||
|
||||
}
|
||||
|
||||
|
@ -382,7 +382,7 @@ export default class Actor5e extends Actor {
|
|||
* @private
|
||||
*/
|
||||
_computePowercastingProgression (actorData) {
|
||||
if (actorData.type === 'vehicle') return;
|
||||
if (actorData.type === 'vehicle' || actorData.type === 'starship') return;
|
||||
const powers = actorData.data.powers;
|
||||
const isNPC = actorData.type === 'npc';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue