Affichage des ajustements V2
This commit is contained in:
26
templates/roll/result/partial-infojet.hbs
Normal file
26
templates/roll/result/partial-infojet.hbs
Normal file
@@ -0,0 +1,26 @@
|
||||
{{#if ajustements}}
|
||||
<div>
|
||||
<span class="tooltip-overflow tooltip-dotted" >
|
||||
<span>
|
||||
<span>{{rolled.caracValue}} à {{plusMoins rolled.finalLevel}}</span>
|
||||
<span>= {{rolled.score}}%</span>
|
||||
{{#if (and rolled.factorHtml (ne rolled.factorHtml 1))}}
|
||||
<span class="rdd-diviseur">×{{{rolled.factorHtml}}}</span>
|
||||
{{/if}}
|
||||
</span>
|
||||
<div class="tooltiptext ttt-ajustements">
|
||||
{{#each ajustements as |item key|}}
|
||||
<div class="{{#if item.strong}}strong-text{{/if}}">
|
||||
{{{item.label}}}{{#if item.value includeZero=true}}: {{plusMoins item.value}}{{/if}}
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div>
|
||||
<span>{{rolled.roll}} : </span><span class="rdd-roll-{{rolled.code}} strong-text">{{rolled.quality}}</span>
|
||||
{{#if rolled.ajustementNecessaire}}
|
||||
<span class="rdd-niveau-requis">(Réussite si {{plusMoins rolled.niveauNecessaire}} / avec niveau {{plusMoins rolled.ajustementNecessaire}}) </span>
|
||||
{{/if}}
|
||||
</div>
|
||||
Reference in New Issue
Block a user