diff --git a/src/Bladeburner.js b/src/Bladeburner.js index b960488af..4fda0e0f0 100644 --- a/src/Bladeburner.js +++ b/src/Bladeburner.js @@ -31,6 +31,8 @@ import { getTimestamp } from "../utils/helpers/getTi import { removeElement } from "../utils/uiHelpers/removeElement"; import { removeElementById } from "../utils/uiHelpers/removeElementById"; +const stealthIcon = ` ` +const killIcon = `` const CityNames = ["Aevum", "Chongqing", "Sector-12", "New Tokyo", "Ishima", "Volhaven"]; @@ -2504,7 +2506,8 @@ Bladeburner.prototype.updateContractsUIElement = function(el, action) { el.appendChild(createElement("pre", { //Info display:"inline-block", innerHTML:action.desc + "\n\n" + - "Estimated success chance: " + formatNumber(estimatedSuccessChance*100, 1) + "%\n" + + `Estimated success chance: ${formatNumber(estimatedSuccessChance*100, 1)}% ${action.isStealth?stealthIcon:''}${action.isKill?killIcon:''}\n` + + "Time Required (s): " + formatNumber(actionTime, 0) + "\n" + "Contracts remaining: " + Math.floor(action.count) + "\n" + "Successes: " + action.successes + "\n" + @@ -2640,7 +2643,7 @@ Bladeburner.prototype.updateOperationsUIElement = function(el, action) { el.appendChild(createElement("pre", { display:"inline-block", innerHTML:action.desc + "\n\n" + - "Estimated success chance: " + formatNumber(estimatedSuccessChance*100, 1) + "%\n" + + `Estimated success chance: ${formatNumber(estimatedSuccessChance*100, 1)}% ${action.isStealth?stealthIcon:''}${action.isKill?killIcon:''}\n` + "Time Required(s): " + formatNumber(actionTime, 0) + "\n" + "Operations remaining: " + Math.floor(action.count) + "\n" + "Successes: " + action.successes + "\n" + @@ -2760,7 +2763,7 @@ Bladeburner.prototype.updateBlackOpsUIElement = function(el, action) { })); el.appendChild(createElement("p", { display:"inline-block", - innerHTML:"Estimated Success Chance: " + formatNumber(estimatedSuccessChance*100, 1) + "%\n" + + innerHTML:`Estimated Success Chance: "${formatNumber(estimatedSuccessChance*100, 1)}% ${action.isStealth?stealthIcon:''}${action.isKill?killIcon:''}\n` + "Time Required(s): " + formatNumber(actionTime, 0), })) }