mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
Fix terminal grow/weaken EXP gain
This commit is contained in:
parent
2b10c11913
commit
474ab69301
@ -247,6 +247,8 @@ export class Terminal implements ITerminal {
|
|||||||
const oldSec = server.hackDifficulty;
|
const oldSec = server.hackDifficulty;
|
||||||
const growth = processSingleServerGrowth(server, 25, player, server.cpuCores) - 1;
|
const growth = processSingleServerGrowth(server, 25, player, server.cpuCores) - 1;
|
||||||
const newSec = server.hackDifficulty;
|
const newSec = server.hackDifficulty;
|
||||||
|
|
||||||
|
player.gainHackingExp(expGain);
|
||||||
this.print(
|
this.print(
|
||||||
`Available money on '${server.hostname}' grown by ${numeralWrapper.formatPercentage(
|
`Available money on '${server.hostname}' grown by ${numeralWrapper.formatPercentage(
|
||||||
growth,
|
growth,
|
||||||
@ -270,6 +272,8 @@ export class Terminal implements ITerminal {
|
|||||||
const oldSec = server.hackDifficulty;
|
const oldSec = server.hackDifficulty;
|
||||||
server.weaken(CONSTANTS.ServerWeakenAmount);
|
server.weaken(CONSTANTS.ServerWeakenAmount);
|
||||||
const newSec = server.hackDifficulty;
|
const newSec = server.hackDifficulty;
|
||||||
|
|
||||||
|
player.gainHackingExp(expGain);
|
||||||
this.print(
|
this.print(
|
||||||
`Security decreased on '${server.hostname}' from ${numeralWrapper.formatSecurity(oldSec)} to ${numeralWrapper.formatSecurity(
|
`Security decreased on '${server.hostname}' from ${numeralWrapper.formatSecurity(oldSec)} to ${numeralWrapper.formatSecurity(
|
||||||
newSec,
|
newSec,
|
||||||
|
Loading…
Reference in New Issue
Block a user