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

28 lines
817 B
JavaScript
Raw Normal View History

2022-10-17 15:20:18 +02:00
import { Avd12Utility } from "./avd12-utility.js";
export const defaultItemImg = {
2022-11-03 20:01:45 +01:00
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",
2022-10-17 15:20:18 +02:00
}
/**
* Extend the basic ItemSheet with some very simple modifications
* @extends {ItemSheet}
*/
2022-11-03 15:40:16 +01:00
export class Avd12Item extends Item {
2022-10-17 15:20:18 +02:00
constructor(data, context) {
if (!data.img) {
data.img = defaultItemImg[data.type];
}
super(data, context);
}
}