Rendu des résultats spéciaux
This commit is contained in:
parent
2d4778f403
commit
1bdda17c16
@ -180,7 +180,7 @@ export class RdDResolutionTable {
|
||||
rolled.caracValue = caracValue;
|
||||
rolled.finalLevel = finalLevel;
|
||||
rolled.bonus = bonus;
|
||||
rolled.factor = RdDResolutionTable._getFractionHtml(diviseur);
|
||||
rolled.factorHtml = RdDResolutionTable._getFractionHtml(diviseur);
|
||||
return rolled;
|
||||
}
|
||||
|
||||
@ -320,11 +320,19 @@ export class RdDResolutionTable {
|
||||
/* -------------------------------------------- */
|
||||
static buildHTMLResults(caracValue, levelValue) {
|
||||
let cell = this.computeChances(caracValue, levelValue);
|
||||
let descr = $('<span class="span-valeur competence-label">');
|
||||
descr.append("Particulière : " + cell.part + " - Significative : " + cell.sign + " - Réussite : " + cell.score);
|
||||
descr.append("<br>Echec Particulier : " + cell.epart + " - Echec Total : " + cell.etotal);
|
||||
descr.append("</span>");
|
||||
return descr;
|
||||
cell.epart = cell.epart>99? 'N/A' : cell.epart;
|
||||
cell.etotal = cell.etotal>100? 'N/A' : cell.etotal;
|
||||
cell.score = Math.min(cell.score, 99);
|
||||
|
||||
return `
|
||||
<span class="span-valeur competence-label">
|
||||
Particulière: <span class="rdd-roll-part">${cell.part}</span>
|
||||
- Significative: <span class="rdd-roll-sign">${cell.sign}</span>
|
||||
- Réussite: <span class="rdd-roll-norm">${cell.score}</span>
|
||||
- Echec Particulier: <span class="rdd-roll-epart">${cell.epart}</span>
|
||||
- Echec Total: <span class="rdd-roll-etotal">${cell.etotal}</span>
|
||||
</span>
|
||||
`
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
@ -410,6 +410,11 @@ table {border: 1px solid #7a7971;}
|
||||
background-color: lightblue;
|
||||
}
|
||||
|
||||
#resolutionValeurs{
|
||||
font-size: 0.8rem;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* ======================================== */
|
||||
/* Sheet */
|
||||
.window-app.sheet .window-content .sheet-header{
|
||||
|
@ -14,7 +14,7 @@
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if rolled.factor}}<span class="rdd-diviseur">×{{{rolled.factor}}}</span>{{/if}}
|
||||
{{#if rolled.factorHtml}}<span class="rdd-diviseur">×{{{rolled.factorHtml}}}</span>{{/if}}
|
||||
</span>
|
||||
<span>= {{rolled.score}}%</span>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user