mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 00:32:51 +02:00
DARKNET: Add improved challenge achievement for BN15 (#2479)
* DARKNET: Add improved challenge achievement for BN15 * DARKNET: Adjust heartbleed check location for achievement * Fix wrong achievement data and update svg * DARKNET: Fix styling of documentation link * lint --------- Co-authored-by: CatLover <152669316+catloversg@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
95d08d7722
commit
e649adfef4
@@ -247,6 +247,7 @@ export function NetscriptDarknet(): InternalAPI<DarknetAPI> {
|
||||
logger(ctx)(
|
||||
`Attempting to extract data from ${server.hostname}... (Est: ${formatNumber(networkDelay / 1000, 1)}s)`,
|
||||
);
|
||||
DarknetState.hasUsedHeartbleed = true;
|
||||
|
||||
if (Player.skills.charisma < server.requiredCharismaSkill) {
|
||||
logger(ctx)(
|
||||
@@ -263,6 +264,7 @@ export function NetscriptDarknet(): InternalAPI<DarknetAPI> {
|
||||
return helpers.netscriptDelay(ctx, networkDelay).then(() => {
|
||||
const xpGained = Player.mults.charisma_exp * 50 * ((500 + Player.skills.charisma) / 500);
|
||||
Player.gainCharismaExp(xpGained);
|
||||
|
||||
const onlineConnectionCheck = getFailureResult(ctx, targetHost, { requireDirectConnection: true });
|
||||
if (!onlineConnectionCheck.success) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user