diff --git a/module/actor-sheet.js b/module/actor-sheet.js index b218fa7c..5687a6f7 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -63,7 +63,8 @@ export class RdDActorSheet extends ActorSheet { // // Copy Active Effects // data.effects = effects; - + console.log("---- data"); + // // Return template data let formData = { title: this.title, diff --git a/module/actor.js b/module/actor.js index 097b4348..caf0ea9f 100644 --- a/module/actor.js +++ b/module/actor.js @@ -108,7 +108,7 @@ export class RdDActor extends Actor { } const competences = await RdDUtility.loadCompendium(RdDItemCompetence.actorCompendium(actorData.type)); - actorData.items = competences.map(it => Misc.data(it)); + actorData.items = competences.map(i => i.toObject()); if (isPersonnage) { actorData.items = actorData.items.concat(Monnaie.monnaiesData()); } @@ -2014,6 +2014,7 @@ export class RdDActor extends Actor { return draconicList; } + /* -------------------------------------------- */ getDraconicsSort(draconicList, sort) { //console.log(draconicList, bestDraconic, draconic, voie); switch (Grammar.toLowerCaseNoAccent(sort.name)) { diff --git a/module/rdd-utility.js b/module/rdd-utility.js index c6123b52..9b8dca6a 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -488,6 +488,7 @@ export class RdDUtility { /* -------------------------------------------- */ static async loadCompendium(compendium, filter = item => true) { let compendiumData = await RdDUtility.loadCompendiumData(compendium); + console.log(compendiumData); return compendiumData.filter(filter); } diff --git a/module/tmr/pixi-tmr.js b/module/tmr/pixi-tmr.js index a2a24743..fe8702c8 100644 --- a/module/tmr/pixi-tmr.js +++ b/module/tmr/pixi-tmr.js @@ -22,15 +22,18 @@ export class PixiTMR { load(onLoad = (loader, resources) => {}) { let loader = this.pixiApp.loader; + console.log("LOADING 1"); for (const [name, img] of Object.entries(PixiTMR.textures)) { loader = loader.add(name, img); } + console.log("LOADING 2"); loader.load((loader, resources) => { onLoad(loader, resources); for (let onAnimate of this.callbacksOnAnimate) { onAnimate(); } }); + console.log("LOADING 3"); } static register(name, img) {