Fix localization of critical failure and success
This commit is contained in:
+2
-1
@@ -157,7 +157,8 @@
|
||||
"DG.Roll.Target": "Target: ",
|
||||
"DG.Roll.Success": "Success",
|
||||
"DG.Roll.Failure": "Failure",
|
||||
"DG.Roll.Critical": "Critical",
|
||||
"DG.Roll.CriticalSuccess": "¡Critical Success!",
|
||||
"DG.Roll.CriticalFailure": "¡Critical Failure!",
|
||||
"DG.Roll.Lethality": "Lethality",
|
||||
"DG.Roll.Lethal": "Lethal",
|
||||
"DG.Roll.For": "For",
|
||||
|
||||
+8
-9
@@ -319,23 +319,22 @@ export class DGPercentileRoll extends DGRoll {
|
||||
|
||||
let resultString = "";
|
||||
let styleOverride = "";
|
||||
if (this.isCritical) {
|
||||
resultString = `${game.i18n.localize("DG.Roll.Critical")} `;
|
||||
}
|
||||
|
||||
if (this.isSuccess) {
|
||||
resultString += `${game.i18n.localize("DG.Roll.Success")}`;
|
||||
|
||||
if (this.isCritical) {
|
||||
resultString = `${resultString.toUpperCase()}!`;
|
||||
resultString = `${game.i18n.localize("DG.Roll.CriticalSuccess")}`;
|
||||
resultString = `${resultString.toUpperCase()}`;
|
||||
styleOverride = "color: green";
|
||||
} else {
|
||||
resultString = `${game.i18n.localize("DG.Roll.Success")}`;
|
||||
}
|
||||
} else {
|
||||
resultString += `${game.i18n.localize("DG.Roll.Failure")}`;
|
||||
|
||||
if (this.isCritical) {
|
||||
resultString = `${resultString.toUpperCase()}!`;
|
||||
resultString = `${game.i18n.localize("DG.Roll.CriticalFailure")}`;
|
||||
resultString = `${resultString.toUpperCase()}`;
|
||||
styleOverride = "color: red";
|
||||
} else {
|
||||
resultString = `${game.i18n.localize("DG.Roll.Failure")}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user