import { SYSTEM } from "../config/system.mjs" export default class CthulhuEternalGHear extends foundry.abstract.TypeDataModel { static defineSchema() { const fields = foundry.data.fields const schema = {} const requiredInteger = { required: true, nullable: false, integer: true } schema.description = new fields.HTMLField({ required: true, textSearch: true }) schema.settings = new fields.StringField({ required: true, initial: "modern", choices: SYSTEM.AVAILABLE_SETTINGS }) schema.resourceLevel = new fields.NumberField({ required: true, initial: 0, min: 0 }) schema.state = new fields.StringField({ required: true, initial: "pristine", choices: SYSTEM.EQUIPMENT_STATES }) return schema } /** @override */ static LOCALIZATION_PREFIXES = ["CTHULHUETERNAL.Gear"] }