mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 22:38:34 +02:00
infiltration API fixes.
This commit is contained in:
26
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
26
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -4276,7 +4276,7 @@ interface Stanek {
|
||||
export interface InfiltrationReward {
|
||||
tradeRep: number;
|
||||
sellCash: number;
|
||||
infiltratorRep: number;
|
||||
SoARep: number;
|
||||
}
|
||||
|
||||
export interface InfiltrationLocation {
|
||||
@@ -4290,24 +4290,6 @@ export interface InfiltrationLocation {
|
||||
* @public
|
||||
*/
|
||||
interface Infiltration {
|
||||
/**
|
||||
* Calculate the difficulty of performing an infiltration.
|
||||
* @remarks
|
||||
* RAM cost: 2.5 GB
|
||||
*
|
||||
* @param locationName - name of the location to check.
|
||||
* @returns the difficulty.
|
||||
*/
|
||||
calculateDifficulty(locationName: string): number;
|
||||
/**
|
||||
* Calculate the rewards for trading and selling information for completing an infiltration.
|
||||
* @remarks
|
||||
* RAM cost: 2.5 GB
|
||||
*
|
||||
* @param locationName - name of the location to check.
|
||||
* @returns the trade reputation, sell cash and infiltrators rep reward.
|
||||
*/
|
||||
calculateRewards(locationName: string): InfiltrationReward;
|
||||
/**
|
||||
* Get all locations that can be infiltrated.
|
||||
* @remarks
|
||||
@@ -4315,15 +4297,15 @@ interface Infiltration {
|
||||
*
|
||||
* @returns all locations that can be infiltrated.
|
||||
*/
|
||||
getLocations(): any[];
|
||||
getPossibleLocations(): string[];
|
||||
/**
|
||||
* Get all infiltrations with difficulty, location and rewards.
|
||||
* @remarks
|
||||
* RAM cost: 15 GB
|
||||
*
|
||||
* @returns all infiltrations with difficulty, location and rewards.
|
||||
* @returns Infiltration data for given location.
|
||||
*/
|
||||
getInfiltrations(): InfiltrationLocation[];
|
||||
getInfiltration(location: string): InfiltrationLocation;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user