From 3d8d0419155a95715ef42cbb278c8932627ec7c7 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 30 Mar 2024 00:43:47 -0600 Subject: [PATCH] Add an item property for if the item is combat relevant --- module/models/Item/CommonItemData.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/models/Item/CommonItemData.mjs b/module/models/Item/CommonItemData.mjs index 82b72bf..534ce21 100644 --- a/module/models/Item/CommonItemData.mjs +++ b/module/models/Item/CommonItemData.mjs @@ -33,6 +33,14 @@ export class CommonItemData extends foundry.abstract.TypeDataModel { nullable: false, choices: DOTDUNGEON.itemTiers, }), + /* + If this property is set to true, the item will be shown in the combat tab + list of items. This is shown whether or not the item is marked as "equipped". + */ + combat_relevant: new fields.BooleanField({ + initial: false, + nullable: false, + }), location: new fields.StringField({ initial: null, nullable: true,