Display integer time required in bladeburner

contracts already display integer only, now ops and blackops do too.
This commit is contained in:
Olivier Gagnon 2019-03-12 01:04:08 -04:00 committed by danielyxie
parent cde2c9e615
commit d4d5202cbd

@ -2505,7 +2505,7 @@ Bladeburner.prototype.updateContractsUIElement = function(el, action) {
display:"inline-block",
innerHTML:action.desc + "\n\n" +
"Estimated success chance: " + formatNumber(estimatedSuccessChance*100, 1) + "%\n" +
"Time Required (s): " + formatNumber(actionTime, 0) + "\n" +
"Time Required (s): " + formatNumber(Math.floor(actionTime), 0) + "\n" +
"Contracts remaining: " + Math.floor(action.count) + "\n" +
"Successes: " + action.successes + "\n" +
"Failures: " + action.failures,
@ -2641,7 +2641,7 @@ Bladeburner.prototype.updateOperationsUIElement = function(el, action) {
display:"inline-block",
innerHTML:action.desc + "\n\n" +
"Estimated success chance: " + formatNumber(estimatedSuccessChance*100, 1) + "%\n" +
"Time Required(s): " + formatNumber(actionTime, 1) + "\n" +
"Time Required(s): " + formatNumber(actionTime, 0) + "\n" +
"Operations remaining: " + Math.floor(action.count) + "\n" +
"Successes: " + action.successes + "\n" +
"Failures: " + action.failures,
@ -2761,7 +2761,7 @@ Bladeburner.prototype.updateBlackOpsUIElement = function(el, action) {
el.appendChild(createElement("p", {
display:"inline-block",
innerHTML:"Estimated Success Chance: " + formatNumber(estimatedSuccessChance*100, 1) + "%\n" +
"Time Required(s): " + formatNumber(actionTime, 1),
"Time Required(s): " + formatNumber(actionTime, 0),
}))
}