BUGFIX: Wrong skill multipliers in Bladeburner (#1615)

This commit is contained in:
catloversg 2024-08-24 11:04:13 +07:00 committed by GitHub
parent 95bb6a33df
commit 329d8ca8e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -254,7 +254,7 @@ export class Bladeburner {
getSkillMultsDisplay(): string[] {
const display: string[] = [];
for (const [multName, mult] of getRecordEntries(this.skillMultipliers)) {
display.push(`${multName}: x${formatNumberNoSuffix(mult, 3)}`);
display.push(`${multName}: x${formatBigNumber(mult)}`);
}
return display;
}
@ -751,8 +751,8 @@ export class Bladeburner {
const level = this.getSkillLevel(skill.name);
if (!level) continue;
for (const [name, baseMult] of getRecordEntries(skill.mults)) {
const mult = baseMult * level;
this.skillMultipliers[name] = clampNumber(this.getSkillMult(name) + mult / 100, 0);
const mult = 1 + (baseMult * level) / 100;
this.skillMultipliers[name] = clampNumber(this.getSkillMult(name) * mult, 0);
}
}
}