mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 01:03:01 +02:00
DNET: Player feedback (#2545)
This commit is contained in:
committed by
GitHub
parent
73b7921ef0
commit
1b6b07faae
@@ -38,7 +38,11 @@ export function NetscriptCodingContract(): InternalAPI<ICodingContract> {
|
||||
const resultOfCheckingSolution = contract.isSolution(answer);
|
||||
switch (resultOfCheckingSolution.result) {
|
||||
case CodingContractResult.Success: {
|
||||
const reward = Player.gainCodingContractReward(contract.reward, contract.getDifficulty());
|
||||
const reward = Player.gainCodingContractReward(
|
||||
contract.reward,
|
||||
contract.getDifficulty(),
|
||||
contract.rewardScaling,
|
||||
);
|
||||
helpers.log(ctx, () => `Successfully completed Coding Contract '${contract.fn}'. Reward: ${reward}`);
|
||||
server.removeContract(contract.fn);
|
||||
return reward;
|
||||
|
||||
@@ -426,7 +426,7 @@ export function NetscriptDarknet(): InternalAPI<DarknetAPI> {
|
||||
|
||||
const server = serverCheck.server;
|
||||
const networkDelay =
|
||||
calculateAuthenticationTime(server, Player, ctx.workerScript.scriptRef.threads, "", true) * 4;
|
||||
calculateAuthenticationTime(server, Player, ctx.workerScript.scriptRef.threads, "", true) * 6;
|
||||
const xp = formatNumber(calculatePasswordAttemptChaGain(server, ctx.workerScript.scriptRef.threads), 1);
|
||||
|
||||
logger(ctx)(`Captured some outgoing transmissions from ${server.hostname}. (Gained ${xp} cha xp)`);
|
||||
|
||||
Reference in New Issue
Block a user