Actor sheet, step 1
This commit is contained in:
22
module/models/tarot.mjs
Normal file
22
module/models/tarot.mjs
Normal file
@@ -0,0 +1,22 @@
|
||||
import { SYSTEM } from "../config/system.mjs";
|
||||
|
||||
export default class HellbornTarot extends foundry.abstract.TypeDataModel {
|
||||
static defineSchema() {
|
||||
const fields = foundry.data.fields;
|
||||
const schema = {};
|
||||
|
||||
schema.orientation = new fields.StringField({ required: true, initial: "Upright", choices: {"Upright": {label: "Upright"}, "Reversed": {label: "Reversed"}} });
|
||||
schema.positiveEffect = new fields.HTMLField({ required: true, textSearch: true })
|
||||
schema.negativeEffect = new fields.HTMLField({ required: true, textSearch: true })
|
||||
schema.image = new fields.FilePathField({
|
||||
required: false,
|
||||
categories: ["IMAGE"],
|
||||
default: "icons/svg/treasure.svg",
|
||||
})
|
||||
|
||||
return schema;
|
||||
}
|
||||
|
||||
/** @override */
|
||||
static LOCALIZATION_PREFIXES = ["HELLBORN.Tarot"];
|
||||
}
|
||||
Reference in New Issue
Block a user