Fix genre

This commit is contained in:
2025-03-10 16:56:10 +01:00
parent 60db1f65e4
commit 090f6be601
3 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,8 @@ export class TeDeumEducationSchema extends foundry.abstract.TypeDataModel {
}, {})
);
schema.genre = new fields.StringField({required: true, initial: "masculin", choices: ["masculin", "feminin", "mixte"]});
schema.nbChoixCarac = new fields.NumberField({ ...requiredInteger, initial: 1, min: 1 });
schema.caracteristiques = new fields.SchemaField(Array.fromRange(3, 1).reduce((caracs, i) => {
caracs[`carac${i}`] = new fields.SchemaField({