2023-04-28 15:25:57 +02:00
|
|
|
import { EcrymeUtility } from "../common/ecryme-utility.js";
|
2023-04-19 18:44:41 +02:00
|
|
|
|
|
|
|
export const defaultItemImg = {
|
2023-05-26 07:46:06 +02:00
|
|
|
weapon: "systems/fvtt-ecryme/images/icons/icon_weapon.webp",
|
|
|
|
equipment: "systems/fvtt-ecryme/images/icons/icon_equipment.webp",
|
|
|
|
contact: "systems/fvtt-ecryme/images/icons/icon_contact.webp",
|
|
|
|
boheme: "systems/fvtt-ecryme/images/icons/icon_boheme.webp",
|
|
|
|
trait: "systems/fvtt-ecryme/images/icons/icon_trait.webp",
|
|
|
|
annency: "systems/fvtt-ecryme/images/icons/icon_annency.webp",
|
|
|
|
skill: "systems/fvtt-ecryme/images/icons/icon_skill.webp",
|
|
|
|
specialization: "systems/fvtt-ecryme/images/icons/icon_spec.webp"
|
2023-04-19 18:44:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Extend the basic ItemSheet with some very simple modifications
|
|
|
|
* @extends {ItemSheet}
|
|
|
|
*/
|
2023-04-28 09:39:18 +02:00
|
|
|
export class EcrymeItem extends Item {
|
2023-04-19 18:44:41 +02:00
|
|
|
|
|
|
|
constructor(data, context) {
|
|
|
|
if (!data.img) {
|
|
|
|
data.img = defaultItemImg[data.type];
|
|
|
|
}
|
|
|
|
super(data, context);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|