fvtt-hawkmoon-cyd/modules/hawkmoon-item.js

30 lines
1.1 KiB
JavaScript
Raw Normal View History

2022-10-22 11:09:48 +02:00
import { HawkmoonUtility } from "./hawkmoon-utility.js";
export const defaultItemImg = {
competence: "systems/fvtt-hawkmoon-cyd/assets/icons/competence.webp",
2022-10-22 23:15:55 +02:00
arme: "systems/fvtt-hawkmoon-cyd/assets/icons/melee.webp",
2022-10-22 11:09:48 +02:00
equipement: "systems/fvtt-hawkmoon-cyd/assets/icons/equipement.webp",
monnaie: "systems/fvtt-hawkmoon-cyd/assets/icons/monnaie.webp",
predilection: "systems/fvtt-hawkmoon-cyd/assets/icons/predilection.webp",
protection: "systems/fvtt-hawkmoon-cyd/assets/icons/protection.webp",
2022-10-22 23:15:55 +02:00
talent: "systems/fvtt-hawkmoon-cyd/assets/icons/talent.webp",
historique: "systems/fvtt-hawkmoon-cyd/assets/icons/historique.webp",
profil: "systems/fvtt-hawkmoon-cyd/assets/icons/profil.webp",
artefact: "systems/fvtt-hawkmoon-cyd/assets/icons/artefact.webp",
2022-10-22 11:09:48 +02:00
}
/**
* Extend the basic ItemSheet with some very simple modifications
* @extends {ItemSheet}
*/
export class HawkmoonItem extends Item {
constructor(data, context) {
if (!data.img) {
data.img = defaultItemImg[data.type];
}
super(data, context);
}
}