From 474ab693010dd9f3ab3596372ea80f4f0f7b8ea1 Mon Sep 17 00:00:00 2001 From: nickofolas Date: Sat, 8 Jan 2022 15:57:44 -0600 Subject: [PATCH] Fix terminal grow/weaken EXP gain --- src/Terminal/Terminal.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Terminal/Terminal.ts b/src/Terminal/Terminal.ts index a317151d7..fffd1cc8a 100644 --- a/src/Terminal/Terminal.ts +++ b/src/Terminal/Terminal.ts @@ -247,6 +247,8 @@ export class Terminal implements ITerminal { const oldSec = server.hackDifficulty; const growth = processSingleServerGrowth(server, 25, player, server.cpuCores) - 1; const newSec = server.hackDifficulty; + + player.gainHackingExp(expGain); this.print( `Available money on '${server.hostname}' grown by ${numeralWrapper.formatPercentage( growth, @@ -270,6 +272,8 @@ export class Terminal implements ITerminal { const oldSec = server.hackDifficulty; server.weaken(CONSTANTS.ServerWeakenAmount); const newSec = server.hackDifficulty; + + player.gainHackingExp(expGain); this.print( `Security decreased on '${server.hostname}' from ${numeralWrapper.formatSecurity(oldSec)} to ${numeralWrapper.formatSecurity( newSec,