Work on creating more of the necessary data models
This commit is contained in:
parent
ef9a3f2542
commit
eb8d4f7c11
8 changed files with 56 additions and 15 deletions
15
module/models/Item/Equipment.mjs
Normal file
15
module/models/Item/Equipment.mjs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { DescribedItemData } from "./DescribedItemData.mjs";
|
||||
|
||||
export class EquipmentItemData extends DescribedItemData {
|
||||
static defineSchema() {
|
||||
const fields = foundry.data.fields;
|
||||
return mergeObject(super.defineSchema(), {
|
||||
extra_inventory: new fields.NumberField({
|
||||
initial: null,
|
||||
nullable: true,
|
||||
required: false,
|
||||
}),
|
||||
material
|
||||
});
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue