mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-28 03:47:03 +02:00
Merge pull request #392 from hydroflame/patch-4
floor bitburner skill cost to handle rational BladeburnerSkillCost
This commit is contained in:
+1
-1
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user