getting skill bonuses showing

This commit is contained in:
Lyle hayhurst
2021-06-07 19:44:36 -05:00
parent b4fe337824
commit a5655f46dd
2 changed files with 7 additions and 2 deletions

View File

@@ -35,8 +35,13 @@ export class wfrp4e {
getFeatures(token,featureType) {
if (featureType == undefined) featureType = 'any';
const allItems = token.actor.items;
console.log(allItems);
if (featureType == 'any') return allItems.filter(i => i.type == 'skill' || i.type == 'talent' || i.type == "career" || i.type == 'trait');
else return allItems.filter(i => i.type == featureType);
return allItems.filter(i => i.type == featureType);
}
getFeatureUses(item) {
return {available: `+${item.data.data.total.value}`};
}
getHP(token) {