Add a group property on the Item data model
This commit is contained in:
parent
c6ec60b5bf
commit
ce81212bbe
4 changed files with 58 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue