Add a group property on the Item data model

This commit is contained in:
Oliver 2026-03-14 15:58:06 -06:00
parent c6ec60b5bf
commit ce81212bbe
4 changed files with 58 additions and 1 deletions

View file

@ -2,6 +2,12 @@ export class GenericItemData extends foundry.abstract.TypeDataModel {
static defineSchema() {
const fields = foundry.data.fields;
return {
group: new fields.StringField({
blank: false,
trim: true,
initial: null,
nullable: true,
}),
weight: new fields.NumberField({
min: 0,
initial: 0,