From 889751490ff241df886231002768bc03fe0a6589 Mon Sep 17 00:00:00 2001 From: Jordan Turner Date: Wed, 15 Dec 2021 18:53:39 -0700 Subject: [PATCH] finishWeaken now shows 3 decimal places for hackDifficulty and improved the print message --- src/Terminal/Terminal.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Terminal/Terminal.ts b/src/Terminal/Terminal.ts index 3ad97e34d..1be1cb2b9 100644 --- a/src/Terminal/Terminal.ts +++ b/src/Terminal/Terminal.ts @@ -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.`, ); }