Fix data model so it doesn't crash Foundry

This commit is contained in:
Oliver-Akins 2024-12-10 22:39:32 -07:00
parent 43658301c9
commit 7af02261d6

View file

@ -2,7 +2,7 @@ const { fields } = foundry.data;
export class HeroData extends foundry.abstract.TypeDataModel {
static defineSchema() {
const schema = new fields.SchemaField({
return {
ability: new fields.SchemaField({
grit: new fields.NumberField({
min: 0,
@ -53,8 +53,7 @@ export class HeroData extends foundry.abstract.TypeDataModel {
nullable: false,
}),
}),
});
return schema;
};
};
prepareBaseData() {