Merge pull request #1723 from danielyxie/dev

boost terminal grow
This commit is contained in:
hydroflame 2021-11-14 08:36:46 -05:00 committed by GitHub
commit b990e0e71c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -530,7 +530,6 @@ export function NetscriptSingularity(
if (player.hasProgram(item.program)) {
workerScript.log("purchaseProgram", `You already have the '${item.program}' program`);
player.gainIntelligenceExp(CONSTANTS.IntelligenceSingFnBaseExpGain / 50);
return true;
}
@ -540,6 +539,7 @@ export function NetscriptSingularity(
"purchaseProgram",
`You have purchased the '${item.program}' program. The new program can be found on your home computer.`,
);
player.gainIntelligenceExp(CONSTANTS.IntelligenceSingFnBaseExpGain / 50);
return true;
},
getCurrentServer: function (): any {

@ -225,7 +225,7 @@ export class Terminal implements ITerminal {
}
if (!(server instanceof Server)) throw new Error("server should be normal server");
const expGain = calculateHackingExpGain(server, player);
const growth = processSingleServerGrowth(server, 1, player, server.cpuCores) - 1;
const growth = processSingleServerGrowth(server, 25, player, server.cpuCores) - 1;
this.print(
`Available money on '${server.hostname}' grown by ${numeralWrapper.formatPercentage(
growth,