fvtt-dark-stars/modules/dark-stars-item.js
2022-11-27 08:58:19 +01:00

26 lines
771 B
JavaScript

import { DarkStarsUtility } from "./dark-stars-utility.js";
export const defaultItemImg = {
skill: "systems/fvtt-dark-stars/images/icons/icon_skill.webp",
armor: "systems/fvtt-dark-stars/images/icons/icon_armour.webp",
weapon: "systems/fvtt-dark-stars/images/icons/icon_weapon.webp",
equipment: "systems/fvtt-dark-stars/images/icons/icon_equipment.webp",
race: "systems/fvtt-dark-stars/images/icons/icon_race.webp",
money: "systems/fvtt-dark-stars/images/icons/icon_money.webp",
}
/**
* Extend the basic ItemSheet with some very simple modifications
* @extends {ItemSheet}
*/
export class DarkStarsItem extends Item {
constructor(data, context) {
if (!data.img) {
data.img = defaultItemImg[data.type];
}
super(data, context);
}
}