diff --git a/module/rdd-resolution-table.js b/module/rdd-resolution-table.js index 16c2a806..395b3659 100644 --- a/module/rdd-resolution-table.js +++ b/module/rdd-resolution-table.js @@ -134,7 +134,7 @@ export class RdDResolutionTable { /* -------------------------------------------- */ static _updateChancesWithBonus(chances, bonus) { if (bonus) { - let newScore = chances.score + bonus; + let newScore = Number(chances.score) + bonus; mergeObject(chances, this._computeCell(null, newScore), { overwrite: true }); } } diff --git a/styles/simple.css b/styles/simple.css index adf19db3..0a123137 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -864,6 +864,7 @@ ul, li { } .chat-message .chat-icon { border: 0; + padding: 2px 6px 2px 2px; float: left; } diff --git a/templates/chat-resultat-attaque.html b/templates/chat-resultat-attaque.html index e754daec..a48ddec3 100644 --- a/templates/chat-resultat-attaque.html +++ b/templates/chat-resultat-attaque.html @@ -1,3 +1,4 @@ +{{competence.name}}

{{alias}} attaque à {{diffLibre}}: {{arme.name}}

{{selectedCarac.label}}{{#unless (eq selectedCarac.label competence.name)}} / {{competence.name}}{{/unless}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-infojet.html"}} diff --git a/templates/chat-resultat-competence.html b/templates/chat-resultat-competence.html index 65047838..79ae2bb5 100644 --- a/templates/chat-resultat-competence.html +++ b/templates/chat-resultat-competence.html @@ -1,3 +1,4 @@ +{{competence.name}}

{{alias}} {{show.title}}: {{#if selectedCarac}}{{selectedCarac.label}} diff --git a/templates/chat-resultat-esquive.html b/templates/chat-resultat-esquive.html index 4efa70dd..e802e32f 100644 --- a/templates/chat-resultat-esquive.html +++ b/templates/chat-resultat-esquive.html @@ -1,3 +1,4 @@ +{{competence.name}}

{{alias}} esquive une attaque à {{diffLibre}}

{{selectedCarac.label}}{{#unless (eq selectedCarac.label competence.name)}} / {{competence.name}}{{/unless}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-infojet.html"}} diff --git a/templates/chat-resultat-general.html b/templates/chat-resultat-general.html index 35f60a46..01299c8e 100644 --- a/templates/chat-resultat-general.html +++ b/templates/chat-resultat-general.html @@ -1,3 +1,6 @@ +{{#if competence.img}} + {{competence.name}} +{{/if}}

{{alias}} {{#if show.title}}{{show.title}}: {{/if}} {{#if selectedCarac}}{{selectedCarac.label}} diff --git a/templates/chat-resultat-meditation.html b/templates/chat-resultat-meditation.html index 0fea9f11..2b0aa1e1 100644 --- a/templates/chat-resultat-meditation.html +++ b/templates/chat-resultat-meditation.html @@ -1,3 +1,4 @@ +{{competence.name}}

{{alias}} a médité : {{meditation.name}}

diff --git a/templates/chat-resultat-parade.html b/templates/chat-resultat-parade.html index 25cc4636..dbff81a1 100644 --- a/templates/chat-resultat-parade.html +++ b/templates/chat-resultat-parade.html @@ -1,3 +1,4 @@ +{{competence.name}}

{{alias}} pare une attaque à {{diffLibre}} - {{arme.name}}

{{selectedCarac.label}}{{#unless (eq selectedCarac.label competence.name)}} / {{competence.name}}{{/unless}}
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-infojet.html"}} diff --git a/templates/chat-resultat-sort.html b/templates/chat-resultat-sort.html index c6c374eb..ecb16352 100644 --- a/templates/chat-resultat-sort.html +++ b/templates/chat-resultat-sort.html @@ -1,3 +1,4 @@ +{{competence.name}}

{{alias}} {{#if isSortReserve}}met en réserve{{else}}lance{{/if}} le {{#if selectedSort.data.isrituel}}rituel{{else}}sort{{/if}} diff --git a/templates/chat-resultat-tache.html b/templates/chat-resultat-tache.html index 380a4103..71c5cd34 100644 --- a/templates/chat-resultat-tache.html +++ b/templates/chat-resultat-tache.html @@ -1,3 +1,4 @@ +{{competence.name}}

{{alias}} travaille à sa tâche {{tache.name}}
{{selectedCarac.label}}/{{competence.name}}