#48 : Zone de saisie privée pour le MJ

This commit is contained in:
sladecraven 2020-12-01 20:52:05 +01:00
parent c09789abfa
commit 8361a90f32
11 changed files with 22 additions and 6 deletions

View File

@ -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"];

View File

@ -45,6 +45,7 @@ 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;
}

View File

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

View File

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

View File

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

View File

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

View File

@ -210,6 +210,7 @@
<div class="form-group editor">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
{{>"systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html"}}
</div>
</div>

View File

@ -92,6 +92,7 @@
<div class="form-group editor">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
{{>"systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html"}}
</div>
</div>

View File

@ -214,6 +214,7 @@
<div class="form-group editor">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
{{>"systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html"}}
</div>
</div>

View File

@ -649,6 +649,7 @@
<div class="form-group editor">
{{editor content=data.notes target="data.notes" button=true owner=owner editable=editable}}
</div>
{{>"systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html"}}
</article>
</div>

View File

@ -0,0 +1,6 @@
{{#if data.isGM}}
<h3>Notes du MJ : </h3>
<div class="form-group editor">
{{editor content=data.notesmj target="data.notesmj" button=true owner=owner editable=editable}}
</div>
{{/if}}