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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue