Gestion des signes draconiques #455

Closed
vincent.vandeme wants to merge 233 commits from v1.4-signes-draconiques into master
4 changed files with 8 additions and 2 deletions
Showing only changes of commit 6d7d55e12b - Show all commits

View File

@ -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,

View File

@ -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)) {

View File

@ -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);
}

View File

@ -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) {