mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +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);
|
||||
server.weaken(CONSTANTS.ServerWeakenAmount);
|
||||
this.print(
|
||||
`'${server.hostname}' security level weakened to ${server.hackDifficulty}. Gained ${numeralWrapper.formatExp(
|
||||
expGain,
|
||||
)} hacking exp.`,
|
||||
`'${server.hostname}' security level weakened to ${server.hackDifficulty.toFixed(
|
||||
3,
|
||||
)} and Gained ${numeralWrapper.formatExp(expGain)} hacking exp.`,
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user