diff --git a/markdown/bitburner.infiltrationlocation.maxclearancelevel.md b/markdown/bitburner.infiltrationlocation.maxclearancelevel.md new file mode 100644 index 000000000..512132f08 --- /dev/null +++ b/markdown/bitburner.infiltrationlocation.maxclearancelevel.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [bitburner](./bitburner.md) > [InfiltrationLocation](./bitburner.infiltrationlocation.md) > [maxClearanceLevel](./bitburner.infiltrationlocation.maxclearancelevel.md) + +## InfiltrationLocation.maxClearanceLevel property + +**Signature:** + +```typescript +maxClearanceLevel: number; +``` diff --git a/markdown/bitburner.infiltrationlocation.md b/markdown/bitburner.infiltrationlocation.md index 519e0368c..750dd0907 100644 --- a/markdown/bitburner.infiltrationlocation.md +++ b/markdown/bitburner.infiltrationlocation.md @@ -17,5 +17,7 @@ interface InfiltrationLocation | --- | --- | --- | --- | | [difficulty](./bitburner.infiltrationlocation.difficulty.md) | | number | | | [location](./bitburner.infiltrationlocation.location.md) | | [ILocation](./bitburner.ilocation.md) | | +| [maxClearanceLevel](./bitburner.infiltrationlocation.maxclearancelevel.md) | | number | | | [reward](./bitburner.infiltrationlocation.reward.md) | | [InfiltrationReward](./bitburner.infiltrationreward.md) | | +| [startingSecurityLevel](./bitburner.infiltrationlocation.startingsecuritylevel.md) | | number | | diff --git a/markdown/bitburner.infiltrationlocation.startingsecuritylevel.md b/markdown/bitburner.infiltrationlocation.startingsecuritylevel.md new file mode 100644 index 000000000..7c74ae071 --- /dev/null +++ b/markdown/bitburner.infiltrationlocation.startingsecuritylevel.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [bitburner](./bitburner.md) > [InfiltrationLocation](./bitburner.infiltrationlocation.md) > [startingSecurityLevel](./bitburner.infiltrationlocation.startingsecuritylevel.md) + +## InfiltrationLocation.startingSecurityLevel property + +**Signature:** + +```typescript +startingSecurityLevel: number; +``` diff --git a/src/NetscriptFunctions/Infiltration.ts b/src/NetscriptFunctions/Infiltration.ts index 961a2d2f9..f860c8769 100644 --- a/src/NetscriptFunctions/Infiltration.ts +++ b/src/NetscriptFunctions/Infiltration.ts @@ -1,5 +1,5 @@ import type { InternalAPI, NetscriptContext } from "../Netscript/APIWrapper"; -import { Infiltration as NetscriptInfiltation, InfiltrationLocation, ILocation } from "@nsdefs"; +import { Infiltration as NetscriptInfiltation, InfiltrationLocation } from "@nsdefs"; import { FactionName, LocationName } from "@enums"; import { Location } from "../Locations/Location"; import { Locations } from "../Locations/Locations"; @@ -29,13 +29,18 @@ export function NetscriptInfiltration(): InternalAPI { const reward = calculateReward(startingSecurityLevel); const maxLevel = location.infiltrationData.maxClearanceLevel; return { - location: structuredClone(location) as ILocation, + location: { + city: location.city!, + name: location.name, + }, reward: { tradeRep: calculateTradeInformationRepReward(reward, maxLevel, startingSecurityLevel), sellCash: calculateSellInformationCashReward(reward, maxLevel, startingSecurityLevel), SoARep: calculateInfiltratorsRepReward(Factions[FactionName.ShadowsOfAnarchy], startingSecurityLevel), }, difficulty: difficulty, + maxClearanceLevel: location.infiltrationData.maxClearanceLevel, + startingSecurityLevel: location.infiltrationData.startingSecurityLevel, }; }; return { diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 25821421e..78e6ae940 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -5158,6 +5158,8 @@ interface InfiltrationLocation { location: ILocation; reward: InfiltrationReward; difficulty: number; + maxClearanceLevel: number; + startingSecurityLevel: number; } /**