diff --git a/src/Constants.ts b/src/Constants.ts index c9feb193f..15337bfde 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -24,7 +24,6 @@ export const CONSTANTS: { IntelligenceCrimeBaseExpGain: number; IntelligenceProgramBaseExpGain: number; IntelligenceGraftBaseExpGain: number; - IntelligenceTerminalHackBaseExpGain: number; IntelligenceSingFnBaseExpGain: number; MillisecondsPer20Hours: number; GameCyclesPer20Hours: number; @@ -101,7 +100,6 @@ export const CONSTANTS: { IntelligenceCrimeBaseExpGain: 0.05, IntelligenceProgramBaseExpGain: 0.1, // Program required hack level divided by this to determine int exp gain IntelligenceGraftBaseExpGain: 0.05, - IntelligenceTerminalHackBaseExpGain: 200, // Hacking exp divided by this to determine int exp gain IntelligenceSingFnBaseExpGain: 1.5, // Time-related constants diff --git a/src/Terminal/Terminal.ts b/src/Terminal/Terminal.ts index d37411fb0..bf6716a6f 100644 --- a/src/Terminal/Terminal.ts +++ b/src/Terminal/Terminal.ts @@ -211,7 +211,7 @@ export class Terminal { Router.toPage(Page.BitVerse, { flume: false, quick: false }); return; } - // Manunally check for faction invites + // Manually check for faction invitations Engine.Counters.checkFactionInvitations = 0; Engine.checkCounters(); @@ -225,7 +225,9 @@ export class Terminal { server.moneyAvailable -= moneyGained; Player.gainMoney(moneyGained, "hacking"); Player.gainHackingExp(expGainedOnSuccess); - Player.gainIntelligenceExp(expGainedOnSuccess / CONSTANTS.IntelligenceTerminalHackBaseExpGain); + if (expGainedOnSuccess > 1) { + Player.gainIntelligenceExp(4 * Math.log10(expGainedOnSuccess)); + } const oldSec = server.hackDifficulty; server.fortify(ServerConstants.ServerFortifyAmount);