forked from public/foundryvtt-reve-de-dragon
Foundry v13 migraton, WIP
This commit is contained in:
18
module/models/tarot.mjs
Normal file
18
module/models/tarot.mjs
Normal file
@ -0,0 +1,18 @@
|
||||
import { TEMPLATE_DESCRIPTION } from "../common/_module.mjs";
|
||||
import { DECIMAL, INTEGER, INTEGER_SIGNED, MODEL_ARRAY, STRING } from "../common/field-types.mjs"
|
||||
|
||||
const fields = foundry.data.fields
|
||||
|
||||
export default class RdDModelTarot extends foundry.abstract.TypeDataModel {
|
||||
static defineSchema() {
|
||||
let tarotFields = {
|
||||
concept : new fields.StringField({ label: "Concept", initial: "", ...STRING }),
|
||||
aspect : new fields.StringField({ label: "Aspect", initial: "", ...STRING }),
|
||||
frequence : new fields.NumberField({ label: "Fréquence", initial: 1, ...INTEGER })
|
||||
}
|
||||
return Object.assign({},
|
||||
TEMPLATE_DESCRIPTION.fields(),
|
||||
tarotFields
|
||||
)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user