This repository has been archived on 2024-05-29. You can view files and clone it, but cannot push or open issues or pull requests.
fvtt-warhero/modules/warhero-item.js

31 lines
1.0 KiB
JavaScript
Raw Normal View History

2023-01-04 22:09:09 +01:00
import { WarheroUtility } from "./warhero-utility.js";
2023-01-04 21:24:56 +01:00
export const defaultItemImg = {
2023-01-13 10:29:16 +01:00
skill: "systems/fvtt-warhero/images/icons/talenti.webp",
2023-01-06 17:45:36 +01:00
armor: "systems/fvtt-warhero/images/icons/difesa.webp",
weapon: "systems/fvtt-warhero/images/icons/two-handed-sword.svg",
equipment: "systems/fvtt-warhero/images/icons/swap-bag.svg",
shield: "systems/fvtt-warhero/images/icons/difensiva.webp",
race: "systems/fvtt-warhero/images/icons/razze.webp",
class: "systems/fvtt-warhero/images/icons/classe.webp",
money: "systems/fvtt-warhero/images/icons/two-coins.svg",
power: "systems/fvtt-warhero/images/icons/magia.webp",
condition: "systems/fvtt-warhero/images/icons/stordenti.webp",
2023-02-18 23:19:10 +01:00
language: "systems/fvtt-warhero/images/icons/linguaggi.webp"
2023-01-04 21:24:56 +01:00
}
/**
* Extend the basic ItemSheet with some very simple modifications
* @extends {ItemSheet}
*/
2023-01-04 22:09:09 +01:00
export class WarheroItem extends Item {
2023-01-04 21:24:56 +01:00
constructor(data, context) {
if (!data.img) {
data.img = defaultItemImg[data.type];
}
super(data, context);
}
}