Finish the Pet data model
This commit is contained in:
parent
fd4ab482b4
commit
ef9a3f2542
2 changed files with 13 additions and 1 deletions
12
module/models/Item/Pet.mjs
Normal file
12
module/models/Item/Pet.mjs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { DescribedItemData } from "./DescribedItemData.mjs";
|
||||
|
||||
export class PetItemData extends DescribedItemData {
|
||||
static defineSchema() {
|
||||
const fields = foundry.data.fields;
|
||||
return mergeObject(super.defineSchema(), {
|
||||
purchase: new fields.NumberField({ initial: 0, }),
|
||||
upkeep: new fields.NumberField({ intial: null, nullable: true }),
|
||||
pokeballd: new fields.BooleanField({ initial: false }),
|
||||
});
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue