RC-3 | Add Abilities data model structure
This commit is contained in:
parent
45e6e62af7
commit
c527778251
1 changed files with 34 additions and 1 deletions
|
|
@ -1,6 +1,39 @@
|
|||
const { fields } = foundry.data;
|
||||
|
||||
export class HeroData extends foundry.abstract.TypeDataModel {
|
||||
static defineSchema() {
|
||||
const schema = {};
|
||||
const schema = new fields.SchemaField({
|
||||
ability: new fields.SchemaField({
|
||||
grit: new fields.NumberField({
|
||||
min: 0,
|
||||
initial: 1,
|
||||
integer: true,
|
||||
required: true,
|
||||
nullable: false,
|
||||
}),
|
||||
gait: new fields.NumberField({
|
||||
min: 0,
|
||||
initial: 1,
|
||||
integer: true,
|
||||
required: true,
|
||||
nullable: false,
|
||||
}),
|
||||
grip: new fields.NumberField({
|
||||
min: 0,
|
||||
initial: 1,
|
||||
integer: true,
|
||||
required: true,
|
||||
nullable: false,
|
||||
}),
|
||||
glim: new fields.NumberField({
|
||||
min: 0,
|
||||
initial: 1,
|
||||
integer: true,
|
||||
required: true,
|
||||
nullable: false,
|
||||
}),
|
||||
}),
|
||||
});
|
||||
return schema;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue