fvtt-dark-stars/modules/dark-stars-item.js

30 lines
999 B
JavaScript
Raw Normal View History

2022-11-27 08:58:19 +01:00
import { DarkStarsUtility } from "./dark-stars-utility.js";
export const defaultItemImg = {
2022-12-04 12:16:25 +01:00
skill: "systems/fvtt-dark-stars/images/icons/skill.webp",
armor: "systems/fvtt-dark-stars/images/icons/armor.webp",
equipment: "systems/fvtt-dark-stars/images/icons/equipment.webp",
weapon: "systems/fvtt-dark-stars/images/icons/melee.webp",
perk: "systems/fvtt-dark-stars/images/icons/perk.webp",
ability: "systems/fvtt-dark-stars/images/icons/ability.webp",
genetic: "systems/fvtt-dark-stars/images/icons/genetic.webp",
2023-10-31 16:35:44 +01:00
cyber: "systems/fvtt-dark-stars/images/icons/cyber.webp",
spell: "systems/fvtt-dark-stars/images/icons/magic.webp",
psychic: "systems/fvtt-dark-stars/images/icons/psychicpowers.webp",
2022-12-04 12:16:25 +01:00
}
2022-11-27 08:58:19 +01:00
/**
* 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);
}
}