Files
fvtt-machine-gods-noxian-ex…/module/models/artifact.mjs
T
2026-05-05 13:55:42 +02:00

29 lines
826 B
JavaScript

import { SYSTEM } from "../config/system.mjs"
import { booleanField, htmlField, stringField } from "./shared.mjs"
export default class MGNEArtifact extends foundry.abstract.TypeDataModel {
static defineSchema() {
return {
description: htmlField(""),
artifactId: new foundry.data.fields.StringField({
required: true,
nullable: false,
initial: "shiver-lens",
choices: SYSTEM.artifactChoices,
}),
synchronized: booleanField(false),
synchronizedTo: stringField(""),
usageDie: new foundry.data.fields.StringField({
required: true,
nullable: false,
initial: "d6",
choices: SYSTEM.usageDieChoices,
}),
broken: booleanField(false),
}
}
/** @override */
static LOCALIZATION_PREFIXES = ["MGNE.Artifact"]
}