Add an item property for if the item is combat relevant

This commit is contained in:
Oliver-Akins 2024-03-30 00:43:47 -06:00
parent 19666a4e05
commit 3d8d041915

View file

@ -33,6 +33,14 @@ export class CommonItemData extends foundry.abstract.TypeDataModel {
nullable: false, nullable: false,
choices: DOTDUNGEON.itemTiers, 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({ location: new fields.StringField({
initial: null, initial: null,
nullable: true, nullable: true,