export const defaultItemImg = {
  weapon: "systems/fvtt-cthulhu-eternal/assets/icons/icon_weapon.svg",
  armor: "systems/fvtt-cthulhu-eternal/assets/icons/icon_armor.svg",
  gear: "systems/fvtt-cthulhu-eternal/assets/icons/icon_equipment.svg",
  skill: "systems/fvtt-cthulhu-eternal/assets/icons/icon_skill.svg",
  archetype: "systems/fvtt-cthulhu-eternal/assets/icons/icon_archetype.svg",
  bond: "systems/fvtt-cthulhu-eternal/assets/icons/icon_bond.svg",
  mentaldisorder: "systems/fvtt-cthulhu-eternal/assets/icons/icon_mental_disorder.svg",
  arcane: "systems/fvtt-cthulhu-eternal/assets/icons/icon_arcane.svg",
  injury: "systems/fvtt-cthulhu-eternal/assets/icons/icon_injury.svg",
  motivation: "systems/fvtt-cthulhu-eternal/assets/icons/icon_motivation.svg",
  ritual: "systems/fvtt-cthulhu-eternal/assets/icons/icon_ritual.svg",
  tome: "systems/fvtt-cthulhu-eternal/assets/icons/icon_tome.svg",
}

export default class CthulhuEternalItem extends Item {
  constructor(data, context) {
    if (!data.img) {
      data.img = defaultItemImg[data.type];
    }
    super(data, context);
  }
}
