Attribute Item Subtype #76
1 changed files with 13 additions and 1 deletions
|
|
@ -126,8 +126,16 @@ export class PlayerSheet extends
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
get hasAttributesTab() {
|
||||||
|
return this.actor.itemTypes.attributes
|
||||||
|
.filter(attr => !attr.system.aboveTheFold)
|
||||||
|
.length > 0;
|
||||||
|
};
|
||||||
|
|
||||||
get hasItemsTab() {
|
get hasItemsTab() {
|
||||||
return this.actor.items.size > 0;
|
return this.actor.items
|
||||||
|
.filter(item => item.type !== `attribute`)
|
||||||
|
.length > 0;
|
||||||
};
|
};
|
||||||
// #endregion Instance Data
|
// #endregion Instance Data
|
||||||
|
|
||||||
|
|
@ -321,6 +329,10 @@ export class PlayerSheet extends
|
||||||
|
|
||||||
ctx.itemGroups = [];
|
ctx.itemGroups = [];
|
||||||
for (const [groupName, items] of Object.entries(this.actor.itemTypes)) {
|
for (const [groupName, items] of Object.entries(this.actor.itemTypes)) {
|
||||||
|
|
||||||
|
// We don't care about attribute items here
|
||||||
|
if (groupName === `attribute`) { continue };
|
||||||
|
|
||||||
const preparedItems = [];
|
const preparedItems = [];
|
||||||
|
|
||||||
let summedWeight = 0;
|
let summedWeight = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue