Ajout du type de réussite/échec

Fais doublon avec certains endroits où c'est géré directement,
mais standardise les résultats de jets
This commit is contained in:
Vincent Vandemeulebrouck 2020-12-06 19:31:11 +01:00
parent 4a3b2f6d63
commit a936b2d266

View File

@ -80,10 +80,11 @@ export class RdDResolutionTable {
/* -------------------------------------------- */ /* -------------------------------------------- */
static explain(rolled) { static explain(rolled) {
let message = "<br>Jet : <strong>" + rolled.roll + "</strong> sur " + rolled.score + "%"; let message = "<br>Jet : <strong>" + rolled.roll + "</strong> sur " + rolled.score + "% ";
if (rolled.caracValue != null && rolled.finalLevel!= null) { if (rolled.caracValue != null && rolled.finalLevel!= null) {
message += " (" + rolled.caracValue + " à " + Misc.toSignedString(rolled.finalLevel) + ")"; message += "(" + rolled.caracValue + " à " + Misc.toSignedString(rolled.finalLevel) + ") ";
} }
message += rolled.quality
return message; return message;
} }