mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 14:13:48 +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) {
|
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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user