fvtt-wasteland/modules/wasteland-item.js

35 lines
1.3 KiB
JavaScript
Raw Normal View History

2023-11-26 16:18:04 +01:00
import { WastelandUtility } from "./wasteland-utility.js";
export const defaultItemImg = {
2023-11-27 23:08:39 +01:00
competence: "systems/fvtt-wasteland/assets/icons/skill.webp",
arme: "systems/fvtt-wasteland/assets/icons/weapon.webp",
capacite: "systems/fvtt-wasteland/assets/icons/hability.webp",
equipement: "systems/fvtt-wasteland/assets/icons/gear.webp",
mutation: "systems/fvtt-wasteland/assets/icons/mutation.webp",
monnaie: "systems/fvtt-wasteland/assets/icons/money.webp",
people: "systems/fvtt-wasteland/assets/icons/people.webp",
2023-11-26 16:18:04 +01:00
predilection: "systems/fvtt-wasteland/assets/icons/predilection.webp",
2023-11-27 23:08:39 +01:00
pouvoir: "systems/fvtt-wasteland/assets/icons/power.webp",
origine: "systems/fvtt-wasteland/assets/icons/origin.webp",
protection: "systems/fvtt-wasteland/assets/icons/armor.webp",
2023-11-28 20:46:34 +01:00
metier: "systems/fvtt-wasteland/assets/icons/work.webp",
2023-11-27 23:08:39 +01:00
artifex: "systems/fvtt-wasteland/assets/icons/artifact.webp",
2023-11-28 20:46:34 +01:00
heritage: "systems/fvtt-wasteland/assets/icons/legacy.webp",
2023-11-27 23:08:39 +01:00
charme: "systems/fvtt-wasteland/assets/icons/charm.webp",
2023-11-26 16:18:04 +01:00
}
/**
* Extend the basic ItemSheet with some very simple modifications
* @extends {ItemSheet}
*/
export class WastelandItem extends Item {
constructor(data, context) {
if (!data.img) {
data.img = defaultItemImg[data.type];
}
super(data, context);
}
}