Add the pet details (closes #135)

This commit is contained in:
Oliver-Akins 2024-03-25 21:33:14 -06:00
parent 6504e33fad
commit 36976e5123
5 changed files with 107 additions and 3 deletions

View file

@ -3,7 +3,13 @@ import { DescribedItemData } from "./DescribedItemData.mjs";
export class PetItemData extends DescribedItemData {
static defineSchema() {
const fields = foundry.data.fields;
return mergeObject(super.defineSchema(), {
const parentSchema = super.defineSchema();
delete parentSchema.quantity;
delete parentSchema.quantity_affects_used_capacity;
delete parentSchema.usage_cost;
return mergeObject(parentSchema, {
upkeep: new fields.NumberField({ initial: null, nullable: true }),
pokeballd: new fields.BooleanField({ initial: true }),
});