21 lines
810 B
JavaScript
Raw Normal View History

import { SYSTEM } from "../config/system.mjs"
2024-12-04 15:16:33 +01:00
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 })
2024-12-22 23:04:15 +01:00
schema.settings = new fields.StringField({ required: true, initial: "modern", choices: SYSTEM.AVAILABLE_SETTINGS })
schema.resourceLevel = new fields.NumberField({ required: true, initial: 0, min: 0 })
2025-01-08 17:26:57 +01:00
schema.state = new fields.StringField({ required: true, initial: "pristine", choices: SYSTEM.EQUIPMENT_STATES })
return schema
}
/** @override */
2024-12-04 15:16:33 +01:00
static LOCALIZATION_PREFIXES = ["CTHULHUETERNAL.Gear"]
}