mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 12:45:45 +01:00
floor bitburner skill cost to handle rational BladeburnerSkillCost
This commit is contained in:
parent
47134a9640
commit
498dba1b73
@ -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