From 498dba1b73fcafe321590b0c7c9c4dd2e259ffba Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Fri, 27 Jul 2018 14:48:20 -0400 Subject: [PATCH] floor bitburner skill cost to handle rational BladeburnerSkillCost --- src/Bladeburner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bladeburner.js b/src/Bladeburner.js index f29a787b5..1bdeb6a7b 100644 --- a/src/Bladeburner.js +++ b/src/Bladeburner.js @@ -358,7 +358,7 @@ function Skill(params={name:"foo", desc:"foo"}) { } Skill.prototype.calculateCost = function(currentLevel) { - return (this.baseCost + (currentLevel * this.costInc)) * BitNodeMultipliers.BladeburnerSkillCost; + return Math.floor((this.baseCost + (currentLevel * this.costInc)) * BitNodeMultipliers.BladeburnerSkillCost); } var Skills = {}; var SkillNames = {