/**
 * Data model pour les boucliers
 */
export default class BouclierDataModel extends foundry.abstract.TypeDataModel {
  static defineSchema() {
    const fields = foundry.data.fields;
    return {
      description: new fields.HTMLField({ initial: "" }),
      bonusdefense: new fields.NumberField({ initial: 0, integer: true }),
      degats: new fields.StringField({ initial: "" }),
      nonletaux: new fields.BooleanField({ initial: false }),
      rarete: new fields.NumberField({ initial: 0, integer: true }),
      prix: new fields.NumberField({ initial: 0, integer: true }),
      equipped: new fields.BooleanField({ initial: false }),
      enchantementLoi: new fields.SchemaField({
        actif: new fields.BooleanField({ initial: false }),
        bonus: new fields.NumberField({ initial: 0, integer: true }),
        antiChaos: new fields.BooleanField({ initial: false }),
      }),
    };
  }
}