First sheet release with datas
This commit is contained in:
@@ -15,7 +15,7 @@ export class Imperium5ActorSheet extends ActorSheet {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
classes: ["fvtt-imperium5", "sheet", "actor"],
|
||||
template: "systems/fvtt-imperium5/templates/actor-sheet.html",
|
||||
width: 920,
|
||||
width: 800,
|
||||
height: 720,
|
||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "combat" }],
|
||||
dragDrop: [{ dragSelector: ".item-list .item", dropSelector: null }],
|
||||
@@ -41,6 +41,13 @@ export class Imperium5ActorSheet extends ActorSheet {
|
||||
archetype: this.actor.getArchetype(),
|
||||
specialites: this.actor.getSpecialites(),
|
||||
familiarites: this.actor.getFamiliarites(),
|
||||
nature: this.actor.getNatureProfonde(),
|
||||
traits: this.actor.getTraits(),
|
||||
symbioses: this.actor.getSymbioses(),
|
||||
equipements: this.actor.getEquipements(),
|
||||
capacites: this.actor.getCapacites(),
|
||||
singularites: this.actor.getSingularites(),
|
||||
contacts: this.actor.getContacts(),
|
||||
effects: this.object.effects.map(e => foundry.utils.deepClone(e.data)),
|
||||
limited: this.object.limited,
|
||||
options: this.options,
|
||||
|
||||
@@ -79,6 +79,34 @@ export class Imperium5Actor extends Actor {
|
||||
let item = duplicate(this.data.items.filter( it => it.type == "familiarite") || [] )
|
||||
return item
|
||||
}
|
||||
getNatureProfonde() {
|
||||
let item = duplicate( this.data.items.find( it => it.type == "nature") || [])
|
||||
return item
|
||||
}
|
||||
getTraits() {
|
||||
let item = duplicate(this.data.items.filter( it => it.type == "trait") || [] )
|
||||
return item
|
||||
}
|
||||
getSymbioses() {
|
||||
let item = duplicate(this.data.items.filter( it => it.type == "symbiose") || [] )
|
||||
return item
|
||||
}
|
||||
getEquipements() {
|
||||
let item = duplicate(this.data.items.filter( it => it.type == "equipement") || [] )
|
||||
return item
|
||||
}
|
||||
getCapacites() {
|
||||
let item = duplicate(this.data.items.filter( it => it.type == "capacite") || [] )
|
||||
return item
|
||||
}
|
||||
getSingularites(){
|
||||
let item = duplicate(this.data.items.filter( it => it.type == "singularite") || [] )
|
||||
return item
|
||||
}
|
||||
getContacts(){
|
||||
let item = duplicate(this.data.items.filter( it => it.type == "contact") || [] )
|
||||
return item
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
getItemById(id) {
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
|
||||
export const defaultItemImg = {
|
||||
archetype: "systems/fvtt-imperium5/images/icons/archetype.webp",
|
||||
archetype: "systems/fvtt-imperium5/images/icons/archetype_transparent.webp",
|
||||
familiarite: "systems/fvtt-imperium5/images/icons/archetype_transparent.webp",
|
||||
specialite: "systems/fvtt-imperium5/images/icons/archetype_transparent.webp",
|
||||
nature: "systems/fvtt-imperium5/images/icons/nature_transparent.webp",
|
||||
trait: "systems/fvtt-imperium5/images/icons/nature_transparent.webp",
|
||||
symbiose: "systems/fvtt-imperium5/images/icons/nature_transparent.webp",
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user