const defaultItemImg = {
  weapon: "systems/fvtt-oath-hammer/assets/icons/icon_weapon.svg",
  armor: "systems/fvtt-oath-hammer/assets/icons/icon_armor.svg",
  ammunition: "systems/fvtt-oath-hammer/assets/icons/icon_ammunition.svg",
  equipment: "systems/fvtt-oath-hammer/assets/icons/icon_equipment.svg",
  spell: "systems/fvtt-oath-hammer/assets/icons/icon_spell.svg",
  miracle: "systems/fvtt-oath-hammer/assets/icons/icon_miracle.svg",
  "magic-item": "systems/fvtt-oath-hammer/assets/icons/icon_magicitem.svg",
  trait: "systems/fvtt-oath-hammer/assets/icons/icon_trait.svg",
  oath: "systems/fvtt-oath-hammer/assets/icons/icon_oath.svg",
  building: "systems/fvtt-oath-hammer/assets/icons/icon_building.svg",
  class: "systems/fvtt-oath-hammer/assets/icons/icon_class.svg",
  skillnpc: "systems/fvtt-oath-hammer/assets/icons/icon_skillnpc.svg",
  npcattack: "systems/fvtt-oath-hammer/assets/icons/icon_npcattack.svg",
}

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