From d4d5202cbdb7980d65f5898aea7c9c937aa3a946 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Tue, 12 Mar 2019 01:04:08 -0400 Subject: [PATCH] Display integer time required in bladeburner contracts already display integer only, now ops and blackops do too. --- src/Bladeburner.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bladeburner.js b/src/Bladeburner.js index d6ccbad22..818e62c8c 100644 --- a/src/Bladeburner.js +++ b/src/Bladeburner.js @@ -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), })) }