This repository has been archived on 2023-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
fvtt-avd12/modules/avd12-item.js
2022-11-03 20:01:45 +01:00

28 lines
817 B
JavaScript

import { Avd12Utility } from "./avd12-utility.js";
export const defaultItemImg = {
skill: "systems/fvtt-avd12/images/icons/skill2.webp",
armor: "systems/fvtt-avd12/images/icons/gloves2.webp",
shield: "systems/fvtt-avd12/images/icons/shield2.webp",
weapon: "systems/fvtt-avd12/images/icons/weapon2.webp",
equipment: "systems/fvtt-avd12/images/icons/cloak2.webp",
spell: "systems/fvtt-avd12/images/icons/focus2.webp",
module: "systems/fvtt-avd12/images/icons/focus2.webp",
money: "systems/fvtt-avd12/images/icons/chest2.webp",
}
/**
* Extend the basic ItemSheet with some very simple modifications
* @extends {ItemSheet}
*/
export class Avd12Item extends Item {
constructor(data, context) {
if (!data.img) {
data.img = defaultItemImg[data.type];
}
super(data, context);
}
}