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

37 lines
1.6 KiB
JavaScript
Raw Permalink 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-08 16:58:11 +01:00
fee: "systems/fvtt-les-heritiers/assets/icons/faery_type.webp",
2023-03-09 13:16:19 +01:00
profil: "systems/fvtt-les-heritiers/assets/icons/profil.webp",
equipement: "systems/fvtt-les-heritiers/assets/icons/equipement.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);
}
}