Arme sheet ready

This commit is contained in:
2024-02-19 22:02:44 +01:00
parent f142b8f6cd
commit 3b98a18ee0
23 changed files with 210 additions and 152 deletions

View File

@ -1,4 +1,4 @@
export default class TeDeumArmureSchema extends foundry.abstract.TypeDataModel {
export class TeDeumArmureSchema extends foundry.abstract.TypeDataModel {
static defineSchema() {
const fields = foundry.data.fields;
const requiredInteger = { required: true, nullable: false, integer: true };
@ -6,7 +6,7 @@ export default class TeDeumArmureSchema extends foundry.abstract.TypeDataModel {
schema.localisation = new fields.SchemaField(
Object.values(LOCALISATION).reduce((obj, loc) => {
obj[loc.id] =new fields.SchemaField({
obj[loc.id] = new fields.SchemaField({
protege: new fields.BooleanField({initial: false}),
});
return obj;