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

44 lines
2.1 KiB
JavaScript
Raw Permalink 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-25 20:29:45 +02:00
vehiclehull:"systems/fvtt-pegasus-rpg/images/icons/icon_vehicle_hull.webp",
powercoremodule:"systems/fvtt-pegasus-rpg/images/icons/icon_vehicle_powercore.webp",
2022-08-16 21:21:37 +02:00
mobilitymodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicle_mobilitymodule.webp",
2022-08-25 20:29:45 +02:00
combatmodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicle_combatmodule.webp",
2022-08-16 21:21:37 +02:00
propulsionmodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicle_propulsionmodule.webp",
2022-08-25 20:29:45 +02:00
vehiclemodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicle_module.webp",
2022-09-27 13:36:23 +02:00
vehicleweaponmodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicle_weaponmodule.webp",
cargo: "systems/fvtt-pegasus-rpg/images/icons/icon_cargo.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);
}
}