mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
commit
b990e0e71c
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)) {
|
if (player.hasProgram(item.program)) {
|
||||||
workerScript.log("purchaseProgram", `You already have the '${item.program}' program`);
|
workerScript.log("purchaseProgram", `You already have the '${item.program}' program`);
|
||||||
player.gainIntelligenceExp(CONSTANTS.IntelligenceSingFnBaseExpGain / 50);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -540,6 +539,7 @@ export function NetscriptSingularity(
|
|||||||
"purchaseProgram",
|
"purchaseProgram",
|
||||||
`You have purchased the '${item.program}' program. The new program can be found on your home computer.`,
|
`You have purchased the '${item.program}' program. The new program can be found on your home computer.`,
|
||||||
);
|
);
|
||||||
|
player.gainIntelligenceExp(CONSTANTS.IntelligenceSingFnBaseExpGain / 50);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
getCurrentServer: function (): any {
|
getCurrentServer: function (): any {
|
||||||
|
@ -225,7 +225,7 @@ export class Terminal implements ITerminal {
|
|||||||
}
|
}
|
||||||
if (!(server instanceof Server)) throw new Error("server should be normal server");
|
if (!(server instanceof Server)) throw new Error("server should be normal server");
|
||||||
const expGain = calculateHackingExpGain(server, player);
|
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(
|
this.print(
|
||||||
`Available money on '${server.hostname}' grown by ${numeralWrapper.formatPercentage(
|
`Available money on '${server.hostname}' grown by ${numeralWrapper.formatPercentage(
|
||||||
growth,
|
growth,
|
||||||
|
Loading…
Reference in New Issue
Block a user