fvtt-pegasus-rpg/modules/pegasus-item.js

43 lines
2.0 KiB
JavaScript
Raw Normal View History

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",
2022-08-14 15:27:54 +02:00
vice: "systems/fvtt-pegasus-rpg/images/icons/icon_vice.webp",
virtue: "systems/fvtt-pegasus-rpg/images/icons/icon_virtue.webp",
2022-08-16 21:21:37 +02:00
vehiclehull:"systems/fvtt-pegasus-rpg/images/icons/icon_vehicule_hull.webp",
powercoremodule:"systems/fvtt-pegasus-rpg/images/icons/icon_vehicule_powercore.webp",
mobilitymodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicle_mobilitymodule.webp",
combatmodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicule_combatmodule.webp",
propulsionmodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicle_propulsionmodule.webp",
vehiclemodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicule_module.webp",
2022-08-17 11:42:00 +02:00
vehicleweaponmodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicule_weaponmodule.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);
}
}