fvtt-wasteland/modules/wasteland-item.js

35 lines
1.3 KiB
JavaScript

import { WastelandUtility } from "./wasteland-utility.js";
export const defaultItemImg = {
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",
predilection: "systems/fvtt-wasteland/assets/icons/predilection.webp",
pouvoir: "systems/fvtt-wasteland/assets/icons/power.webp",
origine: "systems/fvtt-wasteland/assets/icons/origin.webp",
protection: "systems/fvtt-wasteland/assets/icons/armor.webp",
metier: "systems/fvtt-wasteland/assets/icons/work.webp",
artifex: "systems/fvtt-wasteland/assets/icons/artifact.webp",
heritage: "systems/fvtt-wasteland/assets/icons/legacy.webp",
charme: "systems/fvtt-wasteland/assets/icons/charm.webp",
}
/**
* 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);
}
}