mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
finishWeaken now shows 3 decimal places for hackDifficulty and improved the print message
This commit is contained in:
parent
e3a0caf50f
commit
889751490f
@ -254,9 +254,9 @@ export class Terminal implements ITerminal {
|
|||||||
const expGain = calculateHackingExpGain(server, player);
|
const expGain = calculateHackingExpGain(server, player);
|
||||||
server.weaken(CONSTANTS.ServerWeakenAmount);
|
server.weaken(CONSTANTS.ServerWeakenAmount);
|
||||||
this.print(
|
this.print(
|
||||||
`'${server.hostname}' security level weakened to ${server.hackDifficulty}. Gained ${numeralWrapper.formatExp(
|
`'${server.hostname}' security level weakened to ${server.hackDifficulty.toFixed(
|
||||||
expGain,
|
3,
|
||||||
)} hacking exp.`,
|
)} and Gained ${numeralWrapper.formatExp(expGain)} hacking exp.`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user