I forgot to instantiate the classes whoops
This commit is contained in:
parent
1a525c4080
commit
703aca9eef
2 changed files with 5 additions and 3 deletions
|
|
@ -2,12 +2,12 @@ export class CommonItemData extends foundry.abstract.DataModel {
|
|||
static defineSchema() {
|
||||
const fields = foundry.data.fields;
|
||||
return {
|
||||
name: fields.StringField({
|
||||
name: new fields.StringField({
|
||||
initial: ``,
|
||||
blank: true,
|
||||
trim: true,
|
||||
}),
|
||||
cost: fields.NumberField({
|
||||
cost: new fields.NumberField({
|
||||
initial: null,
|
||||
nullable: true,
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
import { CommonItemData } from "./CommonItemData.mjs";
|
||||
|
||||
export class DescribedItemData extends CommonItemData {
|
||||
static defineSchema() {
|
||||
const fields = foundry.data.fields;
|
||||
return mergeObject(super.defineSchema(), {
|
||||
description: fields.StringField({
|
||||
description: new fields.StringField({
|
||||
initial: ``,
|
||||
blank: true,
|
||||
trim: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue