diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 72bf6afb..c5b86f29 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -54,7 +54,6 @@ export class RdDActorSheet extends ActorSheet { owner: this.document.isOwner, itemsByType: Misc.classify(this.object.items.map(i => foundry.utils.deepClone(i))), } - console.log("BUILD",formData.itemsByType, this.object.items ) RdDUtility.filterItemsPerTypeForSheet(formData) formData.options.isGM = game.user.isGM; diff --git a/module/actor.js b/module/actor.js index 5e0a57f1..5b5f7df5 100644 --- a/module/actor.js +++ b/module/actor.js @@ -2568,7 +2568,7 @@ export class RdDActor extends Actor { if (tachesExistantes.length == 0) { const tache = { name: nomTache, type: 'tache', - data: { + system: { carac: 'intellect', competence: 'Ecriture', difficulte: itemData.system.difficulte, diff --git a/module/item-sheet.js b/module/item-sheet.js index 672f9549..667fd868 100644 --- a/module/item-sheet.js +++ b/module/item-sheet.js @@ -181,7 +181,7 @@ export class RdDItemSheet extends ItemSheet { if (actor) { actor.effectuerTacheAlchimie(recetteId, tacheName, tacheData); } else { - ui.notifications.info("Impossible trouver un actur pour réaliser cette tache Alchimique."); + ui.notifications.info("Impossible trouver un acteur pour réaliser cette tache Alchimique."); } }); diff --git a/module/rdd-main.js b/module/rdd-main.js index 199972cc..0261c096 100644 --- a/module/rdd-main.js +++ b/module/rdd-main.js @@ -221,19 +221,20 @@ function messageDeBienvenue() { // Register world usage statistics function registerUsageCount( registerKey ) { if ( game.user.isGM ) { - game.settings.register(registerKey, "world-key", { + game.settings.register("world", "world-key", { name: "Unique world key", scope: "world", config: false, + default: "NONE", type: String }); - let worldKey = game.settings.get(registerKey, "world-key") + let worldKey = game.settings.get("world", "world-key") if ( worldKey == undefined || worldKey == "" ) { worldKey = randomID(32) - game.settings.set(registerKey, "world-key", worldKey ) + game.settings.set("world", "world-key", worldKey ) } - let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.data.version}"` + let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.version}"` $.ajax(regURL) /* -------------------------------------------- */ } diff --git a/templates/dialog-roll-defense-possession.html b/templates/dialog-roll-defense-possession.html index 1ff1f5eb..ffb2d1d8 100644 --- a/templates/dialog-roll-defense-possession.html +++ b/templates/dialog-roll-defense-possession.html @@ -5,7 +5,7 @@