18 lines
385 B
JavaScript
18 lines
385 B
JavaScript
function defineSchema() {
|
|
const fields = foundry.data.fields;
|
|
return {
|
|
description: new fields.HTMLField({ initial: "" }),
|
|
quantity: new fields.NumberField({
|
|
required: true,
|
|
nullable: false,
|
|
integer: true,
|
|
initial: 1,
|
|
min: 0
|
|
})
|
|
};
|
|
}
|
|
|
|
export class ItemData extends foundry.abstract.TypeDataModel {
|
|
static defineSchema = defineSchema;
|
|
}
|