RC-103 | Add Access to the rest of the item types that require it

This commit is contained in:
Oliver-Akins 2025-02-16 12:19:56 -07:00
parent 4ccfc03e59
commit 43fe433900
5 changed files with 84 additions and 7 deletions

View file

@ -1,10 +1,19 @@
import { gameTerms } from "../../gameTerms.mjs";
import { requiredInteger } from "../helpers.mjs";
const { fields } = foundry.data;
export class CommonItemData extends foundry.abstract.TypeDataModel {
// MARK: Schema
static defineSchema() {
return {
quantity: requiredInteger({ min: 0, initial: 1 }),
access: new fields.StringField({
blank: true,
nullable: false,
trim: true,
choices: gameTerms.Access,
}),
};
};