Sync attempt

This commit is contained in:
2022-01-09 13:23:20 +01:00
parent 8538af1907
commit 915b89a8c4
4 changed files with 52 additions and 24 deletions

View File

@ -133,6 +133,17 @@ export class BoLActor extends Actor {
get misc() {
return this.itemData.filter(i => i.type === "item" && i.data.category === "equipment" && (i.data.subtype === "other" ||i.data.subtype === "container" ||i.data.subtype === "scroll" || i.data.subtype === "jewel"));
}
heroReroll( ) {
if (this.type == 'character') {
return this.data.data.resources.hero.value > 0;
} else {
if (this.data.data.type == 'adversary') {
return this.data.data.resources.hero.value > 0;
}
}
return false
}
getResourcesFromType() {
let resources = {};