import { MournbladeCYD2Utility } from "./mournblade-cyd2-utility.js";

export const defaultItemImg = {
  competence: "systems/fvtt-mournblade-cyd2/assets/icons/competence.webp",
  arme: "systems/fvtt-mournblade-cyd2/assets/icons/melee.webp",
  equipement: "systems/fvtt-mournblade-cyd2/assets/icons/equipement.webp",
  monnaie: "systems/fvtt-mournblade-cyd2/assets/icons/monnaie.webp",
  predilection: "systems/fvtt-mournblade-cyd2/assets/icons/predilection.webp",
  protection: "systems/fvtt-mournblade-cyd2/assets/icons/protection.webp",
  talent: "systems/fvtt-mournblade-cyd2/assets/icons/talent.webp",
  historique: "systems/fvtt-mournblade-cyd2/assets/icons/historique.webp",
  profil: "systems/fvtt-mournblade-cyd2/assets/icons/profil.webp",
  ressource: "systems/fvtt-mournblade-cyd2/assets/icons/ressources.webp",
  traitchaotique": "systems/fvtt-mournblade-cyd2/assets/icons/trait-chaotique.webp",
  don: "systems/fvtt-mournblade-cyd2/assets/icons/don.webp",
  pacte: "systems/fvtt-mournblade-cyd2/assets/icons/pacte.webp",
  rune: "systems/fvtt-mournblade-cyd2/assets/icons/rune.webp"
}

/**
 * Extend the basic ItemSheet with some very simple modifications
 * @extends {ItemSheet}
 */
export class MournbladeCYD2Item extends Item {

  constructor(data, context) {
    if (!data.img) {
      data.img = defaultItemImg[data.type];
    }
    super(data, context);
  }

}
