Add the ability to create custom items

This commit is contained in:
Oliver-Akins 2024-02-04 22:05:44 -07:00
parent 23dd021df6
commit 83039c6144
9 changed files with 118 additions and 4 deletions

View file

@ -4,13 +4,21 @@ export class CommonItemData extends foundry.abstract.TypeDataModel {
static defineSchema() {
const fields = foundry.data.fields;
return {
quantity: new fields.NumberField({
initial: 1,
min: 0,
nullable: false,
integer: true,
}),
buy: new fields.NumberField({
initial: null,
nullable: true,
integer: true,
}),
usage_cost: new fields.NumberField({
initial: null,
nullable: true,
integer: true,
}),
tier: new fields.StringField({
initial: `simple`,