First character sheet, wip
This commit is contained in:
@@ -1,32 +1,19 @@
|
||||
|
||||
export const defaultItemImg = {
|
||||
specialisation: "systems/fvtt-pegasus-rpg/images/icons/icon_spec.webp",
|
||||
perk: "systems/fvtt-pegasus-rpg/images/icons/icon_perk.webp",
|
||||
ability: "systems/fvtt-pegasus-rpg/images/icons/icon_raceability.webp",
|
||||
armor: "systems/fvtt-pegasus-rpg/images/icons/icon_armour.webp",
|
||||
weapon: "systems/fvtt-pegasus-rpg/images/icons/icon_weapon.webp",
|
||||
equipment: "systems/fvtt-pegasus-rpg/images/icons/icon_equipment.webp",
|
||||
effect: "systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp",
|
||||
race: "systems/fvtt-pegasus-rpg/images/icons/icon_race.webp",
|
||||
power: "systems/fvtt-pegasus-rpg/images/icons/icon_power.webp",
|
||||
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",
|
||||
money: "systems/fvtt-pegasus-rpg/images/icons/icon_money.webp",
|
||||
archetype: "systems/fvtt-imperium5/images/icons/archetype.webp",
|
||||
}
|
||||
|
||||
/**
|
||||
* Extend the basic ItemSheet with some very simple modifications
|
||||
* @extends {ItemSheet}
|
||||
*/
|
||||
export class PegasusItem extends Item {
|
||||
export class Imperium5Item extends Item {
|
||||
|
||||
constructor(data, context) {
|
||||
if (!data.img) {
|
||||
data.img = defaultItemImg[data.type];
|
||||
data.img = defaultItemImg[data.type]
|
||||
}
|
||||
super(data, context);
|
||||
super(data, context)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user