Start splitting force/tech sheets

This commit is contained in:
TJ 2021-02-10 16:16:47 -06:00
parent 8134ee4f09
commit 8c6723a035
7 changed files with 184 additions and 34 deletions

View file

@ -55,6 +55,26 @@ export default class Item5e extends Item {
/* -------------------------------------------- */
/**
* Is the Item a force power
* @type {boolean}
*/
get isForcePower() {
return ["lgt", "drk", "uni"].includes(this.data.data.school);
}
/* -------------------------------------------- */
/**
* Is the Item a tech power
* @type {boolean}
*/
get isTechPower() {
return ["tec"].includes(this.data.data.school);
}
/* -------------------------------------------- */
/**
* Does the Item implement an attack roll as part of its usage
* @type {boolean}

View file

@ -21,7 +21,8 @@ export const preloadHandlebarsTemplates = async function() {
"systems/sw5e/templates/actors/newActor/parts/swalt-active-effects.html",
"systems/sw5e/templates/actors/newActor/parts/swalt-features.html",
"systems/sw5e/templates/actors/newActor/parts/swalt-inventory.html",
"systems/sw5e/templates/actors/newActor/parts/swalt-powerbook.html",
"systems/sw5e/templates/actors/newActor/parts/swalt-force-powerbook.html",
"systems/sw5e/templates/actors/newActor/parts/swalt-tech-powerbook.html",
"systems/sw5e/templates/actors/newActor/parts/swalt-resources.html",
"systems/sw5e/templates/actors/newActor/parts/swalt-traits.html",