fvtt-malefices/modules/malefices-item.js

26 lines
755 B
JavaScript
Raw Permalink Normal View History

2023-02-01 14:28:08 +01:00
import { MaleficesUtility } from "./malefices-utility.js";
export const defaultItemImg = {
2023-02-06 16:05:59 +01:00
arme: "systems/fvtt-malefices/images/icons/arme.webp",
equipement: "systems/fvtt-malefices/images/icons/equipement.webp",
elementbio: "systems/fvtt-malefices/images/icons/wisdom.webp",
archetype: "systems/fvtt-malefices/images/icons/archetype.webp",
tarot: "systems/fvtt-malefices/images/icons/tarot.webp",
sortilege: "systems/fvtt-malefices/images/icons/sortilege.webp",
2023-02-01 14:28:08 +01:00
}
/**
* Extend the basic ItemSheet with some very simple modifications
* @extends {ItemSheet}
*/
export class MaleficesItem extends Item {
constructor(data, context) {
if (!data.img) {
data.img = defaultItemImg[data.type];
}
super(data, context);
}
}