Merge pull request #392 from hydroflame/patch-4

floor bitburner skill cost to handle rational BladeburnerSkillCost
This commit is contained in:
danielyxie 2018-07-27 21:58:06 -05:00 committed by GitHub
commit de5c41e4e6
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) {
return (this.baseCost + (currentLevel * this.costInc)) * BitNodeMultipliers.BladeburnerSkillCost;
return Math.floor((this.baseCost + (currentLevel * this.costInc)) * BitNodeMultipliers.BladeburnerSkillCost);
}
var Skills = {};
var SkillNames = {