floor bitburner skill cost to handle rational BladeburnerSkillCost

This commit is contained in:
Olivier Gagnon 2018-07-27 14:48:20 -04:00 committed by GitHub
parent 47134a9640
commit 498dba1b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -358,7 +358,7 @@ function Skill(params={name:"foo", desc:"foo"}) {
} }
Skill.prototype.calculateCost = function(currentLevel) { 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 Skills = {};
var SkillNames = { var SkillNames = {