Fix logic to display gear that can be equipped and editing the equipped attribute

This commit is contained in:
Oliver-Akins 2025-01-26 11:32:14 -07:00
parent a129b364a2
commit aa05cdde46
3 changed files with 3 additions and 1 deletions

View file

@ -92,7 +92,7 @@ export class HeroSkillsCardV1 extends GenericAppMixin(HandlebarsApplicationMixin
for (const item of items) {
if (!gameTerms.gearItemTypes.has(item.type)) { continue };
if ( `equipped` in item.system && !item.system.equipped) { continue };
if (`equipped` in item.system && item.system.equipped) { continue };
ctx.gear.push({
index: ctx.gear.length,
uuid: item.uuid,