Add the ability to create custom items
This commit is contained in:
parent
23dd021df6
commit
83039c6144
9 changed files with 118 additions and 4 deletions
|
|
@ -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`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue