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
818 B
JavaScript
Raw Permalink Normal View History

2022-10-17 15:20:18 +02:00
import { Avd12Utility } from "./avd12-utility.js";
export const defaultItemImg = {
2022-11-15 20:39:05 +01:00
//skill: "systems/fvtt-avd12/images/icons/skill1.webp",
2022-11-08 11:25:52 +01:00
armor: "systems/fvtt-avd12/images/icons/chest2.webp",
2022-11-03 20:01:45 +01:00
shield: "systems/fvtt-avd12/images/icons/shield2.webp",
weapon: "systems/fvtt-avd12/images/icons/weapon2.webp",
equipment: "systems/fvtt-avd12/images/icons/cloak2.webp",
module: "systems/fvtt-avd12/images/icons/focus2.webp",
2022-11-08 11:25:52 +01:00
money: "systems/fvtt-avd12/images/icons/focus2.webp",
spell: "systems/fvtt-avd12/images/icons/spell1.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);
}
}