fvtt-les-heritiers/modules/heritiers-item.js

36 lines
1.4 KiB
JavaScript
Raw Normal View History

2022-12-26 00:33:13 +01:00
import { HeritiersUtility } from "./heritiers-utility.js";
export const defaultItemImg = {
2022-12-29 23:23:38 +01:00
competence: "systems/fvtt-les-heritiers/assets/icons/skill.webp",
2022-12-28 14:10:58 +01:00
avantage: "systems/fvtt-les-heritiers/assets/icons/advantage.webp",
desavantage: "systems/fvtt-les-heritiers/assets/icons/disadvantage.webp",
contact: "systems/fvtt-les-heritiers/assets/icons/contact.webp",
pouvoir: "systems/fvtt-les-heritiers/assets/icons/power.webp",
2022-12-29 23:23:38 +01:00
accessoire: "systems/fvtt-les-heritiers/assets/icons/accessoire.webp",
2022-12-28 14:10:58 +01:00
arme: "systems/fvtt-les-heritiers/assets/icons/melee.webp",
2022-12-26 00:33:13 +01:00
monnaie: "systems/fvtt-les-heritiers/assets/icons/monnaie.webp",
protection: "systems/fvtt-les-heritiers/assets/icons/protection.webp",
2022-12-29 23:23:38 +01:00
atoutfeerique: "systems/fvtt-les-heritiers/assets/icons/fairy_atout.webp",
capacitenaturelle: "systems/fvtt-les-heritiers/assets/icons/natural_capacity.webp",
2023-02-04 09:16:45 +01:00
arme: "systems/fvtt-les-heritiers/assets/icons/weapon.webp",
accessoire: "systems/fvtt-les-heritiers/assets/icons/item.webp",
protection: "systems/fvtt-les-heritiers/assets/icons/armor.webp",
2023-03-05 09:30:02 +01:00
fee: "systems/fvtt-les-heritiers/assets/icons/faery_type.webp"
2022-12-26 00:33:13 +01:00
}
/**
* Extend the basic ItemSheet with some very simple modifications
* @extends {ItemSheet}
*/
export class HeritiersItem extends Item {
constructor(data, context) {
if (!data.img) {
data.img = defaultItemImg[data.type];
}
super(data, context);
}
}