export const defaultItemImg = {
  weapon: "systems/fvtt-prism-rpg/assets/icons/icon_weapon.webp",
  armor: "systems/fvtt-prism-rpg/assets/icons/icon_armor.webp",
  equipment: "systems/fvtt-prism-rpg/assets/icons/icon_equipment.webp",
  skill: "systems/fvtt-prism-rpg/assets/icons/icon_skill.webp",
  "racial-ability": "systems/fvtt-prism-rpg/assets/icons/icon_racial-ability.webp",
  shield: "systems/fvtt-prism-rpg/assets/icons/icon_shield.webp",
  spell: "systems/fvtt-prism-rpg/assets/icons/icon_spell.webp",
  race: "systems/fvtt-prism-rpg/assets/icons/icon_race.webp",
  class: "systems/fvtt-prism-rpg/assets/icons/icon_class.webp",
  "character-path": "systems/fvtt-prism-rpg/assets/icons/icon_character_path.webp",
  container: "icons/containers/bags/pack-leather-brown.webp",
}

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