mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-03 06:17:04 +02:00
MISC: Make nuke and port cracking APIs return false instead of throwing error (#2153)
This commit is contained in:
@@ -115,7 +115,7 @@ export const breakingChanges300: VersionBreakingChange = {
|
||||
brokenAPIs: [],
|
||||
info:
|
||||
"With some APIs, when you passed values to their params, you could pass a value that was not an exact match. " +
|
||||
'For example, with "ns.singularity.commitCrime", you could pass "Rob Store", "rob store", "RobStore", "robstore", "robStore", etc. ' +
|
||||
'For example, with ns.singularity.commitCrime, you could pass "Rob Store", "rob store", "RobStore", "robstore", "robStore", etc. ' +
|
||||
'This is called "fuzzy matching". Now, you must pass an exact value (i.e., Rob Store). This change affects:\n' +
|
||||
"- Bladeburner action and type: BladeburnerActionType, BladeburnerGeneralActionName, BladeburnerContractName, BladeburnerOperationName, BladeburnerBlackOpName, SpecialBladeburnerActionTypeForSleeve, BladeburnerActionTypeForSleeve.\n" +
|
||||
"- Crime: CrimeType\n" +
|
||||
@@ -129,5 +129,19 @@ export const breakingChanges300: VersionBreakingChange = {
|
||||
showPopUp: true,
|
||||
doNotSkip: true,
|
||||
},
|
||||
{
|
||||
brokenAPIs: [
|
||||
{ name: "ns.nuke" },
|
||||
{ name: "ns.brutessh" },
|
||||
{ name: "ns.ftpcrack" },
|
||||
{ name: "ns.relaysmtp" },
|
||||
{ name: "ns.httpworm" },
|
||||
{ name: "ns.sqlinject" },
|
||||
],
|
||||
info:
|
||||
`ns.nuke, ns.brutessh, ns.ftpcrack, ns.relaysmtp, ns.httpworm, and ns.sqlinject now do not throw an error when you do not have the required .exe file or enough opened ports.\n` +
|
||||
"This should not be a problem with most scripts. However, if you were catching errors and branching on the result of success/failure, you will need to use the return value instead.",
|
||||
showPopUp: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user