RC-103 | Add Access to the rest of the item types that require it
This commit is contained in:
parent
4ccfc03e59
commit
43fe433900
5 changed files with 84 additions and 7 deletions
|
|
@ -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,
|
||||
}),
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue