Fix data model so it doesn't crash Foundry
This commit is contained in:
parent
43658301c9
commit
7af02261d6
1 changed files with 2 additions and 3 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue