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",  
    artefact: "systems/fvtt-mournblade-cyd2/assets/icons/artefact.webp",  
    contact: "systems/fvtt-mournblade-cyd2/assets/icons/contacts.webp",  
    ressource: "systems/fvtt-mournblade-cyd2/assets/icons/ressources.webp",  
    mutation: "systems/fvtt-mournblade-cyd2/assets/icons/mutation.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);
  }

}
