diff --git a/module/actor.js b/module/actor.js index cb1208ca..5135f6e2 100644 --- a/module/actor.js +++ b/module/actor.js @@ -2578,6 +2578,11 @@ export class RdDActor extends Actor { if (rollData.rolled.isETotal) { rollData.tache.data.difficulte--; } + if (rollData.rolled.isSuccess) { + rollData.tache.data.nb_jet_succes = rollData.tache.data.nb_jet_succes + 1; + } else { + rollData.tache.data.nb_jet_echec = rollData.tache.data.nb_jet_echec + 1; + } this.updateEmbeddedDocuments('Item', [rollData.tache]); this.santeIncDec("fatigue", rollData.tache.data.fatigue); diff --git a/system.json b/system.json index 489b07ca..e6dff978 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "Rêve de Dragon RPG for FoundryVTT", - "version": "1.5.21", + "version": "1.5.22", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.8.0", "compatibleCoreVersion": "0.8.9", diff --git a/template.json b/template.json index 70c75f83..81954ebf 100644 --- a/template.json +++ b/template.json @@ -719,7 +719,8 @@ "difficulte": 0, "points_de_tache": 0, "points_de_tache_courant": 0, - "tentatives": 0, + "nb_jet_echec": 0, + "nb_jet_succes": 0, "description": "", "descriptionmj": "" }, diff --git a/templates/item-tache-sheet.html b/templates/item-tache-sheet.html index 1287a683..7be7d9c4 100644 --- a/templates/item-tache-sheet.html +++ b/templates/item-tache-sheet.html @@ -50,10 +50,13 @@
- - + + +
+
+ +
-
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-description.html"}}