mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 05:05:47 +01:00
BUGFIX: Fix manual hack exploit (#1324)
Formula is updated to be still relevant, but not crushing
This commit is contained in:
parent
2316bf5b69
commit
7321d64383
@ -24,7 +24,6 @@ export const CONSTANTS: {
|
|||||||
IntelligenceCrimeBaseExpGain: number;
|
IntelligenceCrimeBaseExpGain: number;
|
||||||
IntelligenceProgramBaseExpGain: number;
|
IntelligenceProgramBaseExpGain: number;
|
||||||
IntelligenceGraftBaseExpGain: number;
|
IntelligenceGraftBaseExpGain: number;
|
||||||
IntelligenceTerminalHackBaseExpGain: number;
|
|
||||||
IntelligenceSingFnBaseExpGain: number;
|
IntelligenceSingFnBaseExpGain: number;
|
||||||
MillisecondsPer20Hours: number;
|
MillisecondsPer20Hours: number;
|
||||||
GameCyclesPer20Hours: number;
|
GameCyclesPer20Hours: number;
|
||||||
@ -101,7 +100,6 @@ export const CONSTANTS: {
|
|||||||
IntelligenceCrimeBaseExpGain: 0.05,
|
IntelligenceCrimeBaseExpGain: 0.05,
|
||||||
IntelligenceProgramBaseExpGain: 0.1, // Program required hack level divided by this to determine int exp gain
|
IntelligenceProgramBaseExpGain: 0.1, // Program required hack level divided by this to determine int exp gain
|
||||||
IntelligenceGraftBaseExpGain: 0.05,
|
IntelligenceGraftBaseExpGain: 0.05,
|
||||||
IntelligenceTerminalHackBaseExpGain: 200, // Hacking exp divided by this to determine int exp gain
|
|
||||||
IntelligenceSingFnBaseExpGain: 1.5,
|
IntelligenceSingFnBaseExpGain: 1.5,
|
||||||
|
|
||||||
// Time-related constants
|
// Time-related constants
|
||||||
|
@ -211,7 +211,7 @@ export class Terminal {
|
|||||||
Router.toPage(Page.BitVerse, { flume: false, quick: false });
|
Router.toPage(Page.BitVerse, { flume: false, quick: false });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Manunally check for faction invites
|
// Manually check for faction invitations
|
||||||
Engine.Counters.checkFactionInvitations = 0;
|
Engine.Counters.checkFactionInvitations = 0;
|
||||||
Engine.checkCounters();
|
Engine.checkCounters();
|
||||||
|
|
||||||
@ -225,7 +225,9 @@ export class Terminal {
|
|||||||
server.moneyAvailable -= moneyGained;
|
server.moneyAvailable -= moneyGained;
|
||||||
Player.gainMoney(moneyGained, "hacking");
|
Player.gainMoney(moneyGained, "hacking");
|
||||||
Player.gainHackingExp(expGainedOnSuccess);
|
Player.gainHackingExp(expGainedOnSuccess);
|
||||||
Player.gainIntelligenceExp(expGainedOnSuccess / CONSTANTS.IntelligenceTerminalHackBaseExpGain);
|
if (expGainedOnSuccess > 1) {
|
||||||
|
Player.gainIntelligenceExp(4 * Math.log10(expGainedOnSuccess));
|
||||||
|
}
|
||||||
|
|
||||||
const oldSec = server.hackDifficulty;
|
const oldSec = server.hackDifficulty;
|
||||||
server.fortify(ServerConstants.ServerFortifyAmount);
|
server.fortify(ServerConstants.ServerFortifyAmount);
|
||||||
|
Loading…
Reference in New Issue
Block a user