diff --git a/module/actor-creature-sheet.js b/module/actor-creature-sheet.js index f4a31783..793ad9b3 100644 --- a/module/actor-creature-sheet.js +++ b/module/actor-creature-sheet.js @@ -45,6 +45,7 @@ export class RdDActorCreatureSheet extends ActorSheet { data.data.nbLegeres = this.actor.countBlessures(data.data.blessures.legeres.liste ); data.data.nbGraves = this.actor.countBlessures(data.data.blessures.graves.liste ); data.data.nbCritiques = this.actor.countBlessures(data.data.blessures.critiques.liste ); + data.data.isGM = game.user.isGM; data.data.competencecreature = data.itemsByType["competencecreature"]; diff --git a/module/actor-entite-sheet.js b/module/actor-entite-sheet.js index 5edad7f9..25f7f2dc 100644 --- a/module/actor-entite-sheet.js +++ b/module/actor-entite-sheet.js @@ -45,7 +45,8 @@ export class RdDActorEntiteSheet extends ActorSheet { data.data.carac.taille.isTaille = true; // To avoid button link; data.data.competencecreature = data.itemsByType["competencecreature"]; - + data.data.isGM = game.user.isGM; + return data; } diff --git a/module/actor-humanoide-sheet.js b/module/actor-humanoide-sheet.js index 5e093bec..b321a3e5 100644 --- a/module/actor-humanoide-sheet.js +++ b/module/actor-humanoide-sheet.js @@ -45,6 +45,7 @@ export class RdDActorHumanoideSheet extends ActorSheet { data.data.nbGraves = this.actor.countBlessures(data.data.blessures.graves.liste ); data.data.nbCritiques = this.actor.countBlessures(data.data.blessures.critiques.liste ); data.data.competencecreature = data.itemsByType["competencecreature"]; + data.data.isGM = game.user.isGM; RdDUtility.filterItemsPerTypeForSheet(data ); RdDUtility.buildArbreDeConteneur( this, data ); diff --git a/module/rdd-utility.js b/module/rdd-utility.js index e2601fd8..016b452b 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -156,7 +156,8 @@ export class RdDUtility { // Calendrier 'systems/foundryvtt-reve-de-dragon/templates/calendar-template.html', // Conteneur/item in Actor sheet - 'systems/foundryvtt-reve-de-dragon/templates/actor-inventaire-conteneur.html' + 'systems/foundryvtt-reve-de-dragon/templates/actor-inventaire-conteneur.html', + 'systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html' ]; return loadTemplates(templatePaths); diff --git a/system.json b/system.json index 79b657fa..c3b80e93 100644 --- a/system.json +++ b/system.json @@ -2,10 +2,10 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "Rêve de Dragon RPG for FoundryVTT", - "version": "0.9.97", + "version": "1.1.0", "minimumCoreVersion": "0.7.5", - "compatibleCoreVersion": "0.7.6", - "templateVersion": 51, + "compatibleCoreVersion": "0.7.7", + "templateVersion": 52, "author": "LeRatierBretonnien", "esmodules": [ "module/rdd-main.js", "module/hook-renderChatLog.js" ], "styles": ["styles/simple.css"], diff --git a/template.json b/template.json index 82667610..af5bebec 100644 --- a/template.json +++ b/template.json @@ -3,11 +3,13 @@ "types": ["personnage", "humanoide", "creature", "entite"], "templates": { "description": { - "description": "Description ..." + "description": "Description ...", + "notesmj": "Notes du MJ" }, "background": { "biographie": "Histoire personnelle...", "notes": "Notes", + "notesmj": "Notes du MJ", "yeux": "", "cheveux": "", "poids": "", diff --git a/templates/actor-creature-sheet.html b/templates/actor-creature-sheet.html index 234a83e6..6ccde2d1 100644 --- a/templates/actor-creature-sheet.html +++ b/templates/actor-creature-sheet.html @@ -210,6 +210,7 @@