forked from public/fvtt-cthulhu-eternal
18 lines
652 B
JavaScript
18 lines
652 B
JavaScript
export default class CthulhuEternalBond extends foundry.abstract.TypeDataModel {
|
|
static defineSchema() {
|
|
const fields = foundry.data.fields
|
|
const requiredInteger = { required: true, nullable: false, integer: true }
|
|
const schema = {}
|
|
|
|
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
|
schema.bondType = new fields.StringField({ required: true, initial: "individual", choices: SYSTEM.BOND_TYPE })
|
|
schema.value = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
|
|
|
return schema
|
|
}
|
|
|
|
/** @override */
|
|
static LOCALIZATION_PREFIXES = ["CTHULHUETERNAL.Bond"]
|
|
|
|
}
|