Merge branch 'images-competence' into 'v1.2'

Images competence

See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!124
This commit is contained in:
Leratier Bretonnien 2021-01-22 15:04:39 +00:00
commit 26237ab732
10 changed files with 12 additions and 1 deletions

View File

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

View File

@ -864,6 +864,7 @@ ul, li {
}
.chat-message .chat-icon {
border: 0;
padding: 2px 6px 2px 2px;
float: left;
}

View File

@ -1,3 +1,4 @@
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" height="32" width="32" />
<h4>{{alias}} attaque à {{diffLibre}}: {{arme.name}}</h4>
<div>{{selectedCarac.label}}{{#unless (eq selectedCarac.label competence.name)}} / {{competence.name}}{{/unless}}</div>
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-infojet.html"}}

View File

@ -1,3 +1,4 @@
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" height="32" width="32" />
<h4>
{{alias}} {{show.title}}:
{{#if selectedCarac}}{{selectedCarac.label}}

View File

@ -1,3 +1,4 @@
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" height="32" width="32" />
<h4>{{alias}} esquive une attaque à {{diffLibre}}</h4>
<div>{{selectedCarac.label}}{{#unless (eq selectedCarac.label competence.name)}} / {{competence.name}}{{/unless}}</div>
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-infojet.html"}}

View File

@ -1,3 +1,6 @@
{{#if competence.img}}
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" height="32" width="32" />
{{/if}}
<h4>
{{alias}} {{#if show.title}}{{show.title}}: {{/if}}
{{#if selectedCarac}}{{selectedCarac.label}}

View File

@ -1,3 +1,4 @@
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" height="32" width="32" />
<h4>
{{alias}} a médité : {{meditation.name}}
</h4>

View File

@ -1,3 +1,4 @@
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" height="32" width="32" />
<h4>{{alias}} pare une attaque à {{diffLibre}} - {{arme.name}}</h4>
<div>{{selectedCarac.label}}{{#unless (eq selectedCarac.label competence.name)}} / {{competence.name}}{{/unless}}</div>
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-infojet.html"}}

View File

@ -1,3 +1,4 @@
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" height="32" width="32" />
<h4>
{{alias}} {{#if isSortReserve}}met en réserve{{else}}lance{{/if}}
le {{#if selectedSort.data.isrituel}}rituel{{else}}sort{{/if}}

View File

@ -1,3 +1,4 @@
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" height="32" width="32" />
<h4>
{{alias}} travaille à sa t&acirc;che {{tache.name}}
<br>{{selectedCarac.label}}/{{competence.name}}