Initial import

This commit is contained in:
2023-11-26 16:18:04 +01:00
commit 4b4d994569
90 changed files with 5528 additions and 0 deletions

31
modules/wasteland-item.js Normal file
View File

@@ -0,0 +1,31 @@
import { WastelandUtility } from "./wasteland-utility.js";
export const defaultItemImg = {
competence: "systems/fvtt-wasteland/assets/icons/competence.webp",
arme: "systems/fvtt-wasteland/assets/icons/arme.webp",
capacite: "systems/fvtt-wasteland/assets/icons/capacite.webp",
don: "systems/fvtt-wasteland/assets/icons/don.webp",
equipement: "systems/fvtt-wasteland/assets/icons/equipement.webp",
monnaie: "systems/fvtt-wasteland/assets/icons/monnaie.webp",
pacte: "systems/fvtt-wasteland/assets/icons/pacte.webp",
predilection: "systems/fvtt-wasteland/assets/icons/predilection.webp",
protection: "systems/fvtt-wasteland/assets/icons/protection.webp",
rune: "systems/fvtt-wasteland/assets/icons/rune.webp",
tendance: "systems/fvtt-wasteland/assets/icons/tendance.webp",
traitchaotique: "systems/fvtt-wasteland/assets/icons/traitchaotique.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);
}
}