mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 06:03:50 +01:00
Merge pull request #392 from hydroflame/patch-4
floor bitburner skill cost to handle rational BladeburnerSkillCost
This commit is contained in:
commit
de5c41e4e6
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user