forked from GitHub-Mirrors/foundry-sw5e
Start splitting force/tech sheets
This commit is contained in:
parent
8134ee4f09
commit
8c6723a035
7 changed files with 184 additions and 34 deletions
|
@ -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}
|
||||
|
|
|
@ -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",
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue