#78 Affichage de la progression dans le titre de la tache

This commit is contained in:
sladecraven 2020-12-30 10:41:02 +01:00
parent 941aaf2e1b
commit ee25775629
2 changed files with 6 additions and 2 deletions

View File

@ -1508,9 +1508,13 @@ export class RdDActor extends Actor {
}, this.name); }, this.name);
} }
/* -------------------------------------------- */
_tacheETotal(rollData) { _tacheETotal(rollData) {
rollData.tache.data.difficulte --; rollData.tache.data.difficulte--;
this.updateEmbeddedEntity( "OwnedItem", rollData.tache); this.updateEmbeddedEntity( "OwnedItem", rollData.tache);
ChatUtility.chatWithRollMode( {
content: "Vous avez fait un Echec Total sur votre Tache <strong>" + rollData.tache.name + "</strong> : en conséquence, la difficulté a augmenté de 1"
}, this.name);
} }
/* -------------------------------------------- */ /* -------------------------------------------- */

View File

@ -696,7 +696,7 @@
<h3>Tâches</h3><a id='creer-tache'>Créer une nouvelle Tâche</a> <h3>Tâches</h3><a id='creer-tache'>Créer une nouvelle Tâche</a>
<ul class="item-list alterne-list"> <ul class="item-list alterne-list">
{{#each data.taches as |tache id|}} {{#each data.taches as |tache id|}}
<li class="item flexrow list-item" data-item-id="{{tache._id}}"><span class="competence-title tache-label"><a>{{tache.name}}</a></span> <li class="item flexrow list-item" data-item-id="{{tache._id}}"><span class="competence-title tache-label"><a>{{tache.name}} ({{tache.data.points_de_tache_courant}}/{{tache.data.points_de_tache}})</a></span>
<div class="item-controls"> <div class="item-controls">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a> <a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a> <a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>