const defaultItemImg = {
  weapon:       "systems/fvtt-oath-hammer/assets/icons/icon_weapon.webp",
  armor:        "systems/fvtt-oath-hammer/assets/icons/icon_armor.webp",
  ammunition:   "systems/fvtt-oath-hammer/assets/icons/icon_ammunition.webp",
  equipment:    "systems/fvtt-oath-hammer/assets/icons/icon_equipment.webp",
  spell:        "systems/fvtt-oath-hammer/assets/icons/icon_spell.webp",
  miracle:      "systems/fvtt-oath-hammer/assets/icons/icon_miracle.webp",
  "magic-item": "systems/fvtt-oath-hammer/assets/icons/icon_magic_item.webp",
  trait:        "systems/fvtt-oath-hammer/assets/icons/icon_ability.webp",
  oath:         "systems/fvtt-oath-hammer/assets/icons/icon_oath.webp"
}

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