2021-12-02 07:38:59 +01:00
|
|
|
import { PegasusUtility } from "./pegasus-utility.js";
|
|
|
|
|
|
|
|
export const defaultItemImg = {
|
2021-12-08 13:53:22 +01:00
|
|
|
specialisation: "systems/fvtt-pegasus-rpg/images/icons/icon_spec.webp",
|
|
|
|
perk: "systems/fvtt-pegasus-rpg/images/icons/icon_perk.webp",
|
2022-01-07 20:40:40 +01:00
|
|
|
ability: "systems/fvtt-pegasus-rpg/images/icons/icon_raceability.webp",
|
2022-01-22 21:49:34 +01:00
|
|
|
armor: "systems/fvtt-pegasus-rpg/images/icons/icon_armour.webp",
|
2021-12-02 07:38:59 +01:00
|
|
|
weapon: "systems/fvtt-pegasus-rpg/images/icons/icon_weapon.webp",
|
|
|
|
equipment: "systems/fvtt-pegasus-rpg/images/icons/icon_equipment.webp",
|
2022-01-12 17:24:45 +01:00
|
|
|
effect: "systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp",
|
2022-01-12 19:57:36 +01:00
|
|
|
race: "systems/fvtt-pegasus-rpg/images/icons/icon_race.webp",
|
|
|
|
power: "systems/fvtt-pegasus-rpg/images/icons/icon_power.webp",
|
2022-01-13 16:16:24 +01:00
|
|
|
armour: "systems/fvtt-pegasus-rpg/images/icons/icon_armour.webp",
|
|
|
|
equipment: "systems/fvtt-pegasus-rpg/images/icons/icon_equipment.webp",
|
|
|
|
weapon: "systems/fvtt-pegasus-rpg/images/icons/icon_meleeweapon.webp",
|
|
|
|
shield: "systems/fvtt-pegasus-rpg/images/icons/icon_shield.webp",
|
2022-02-25 18:18:33 +01:00
|
|
|
money: "systems/fvtt-pegasus-rpg/images/icons/icon_money.webp",
|
2021-12-02 07:38:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Extend the basic ItemSheet with some very simple modifications
|
|
|
|
* @extends {ItemSheet}
|
|
|
|
*/
|
|
|
|
export class PegasusItem extends Item {
|
|
|
|
|
|
|
|
constructor(data, context) {
|
|
|
|
if (!data.img) {
|
|
|
|
data.img = defaultItemImg[data.type];
|
|
|
|
}
|
|
|
|
super(data, context);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|