Update tarot management

This commit is contained in:
2023-02-07 15:36:06 +01:00
parent 06537cbcd9
commit 1923a63ebf
6 changed files with 63 additions and 12 deletions

View File

@ -102,7 +102,13 @@ export class MaleficesActor extends Actor {
}
/* -------------------------------------------- */
getTarots() {
let comp = duplicate(this.items.filter(item => item.type == 'tarot') || [])
let comp = duplicate(this.items.filter(item => item.type == 'tarot' && !item.system.isgm) || [])
MaleficesUtility.sortArrayObjectsByName(comp)
return comp;
}
/* -------------------------------------------- */
getHiddenTarots() {
let comp = duplicate(this.items.filter(item => item.type == 'tarot' && item.system.isgm) || [])
MaleficesUtility.sortArrayObjectsByName(comp)
return comp;
}