infiltration API fixes.

This commit is contained in:
Olivier Gagnon
2022-04-22 17:12:14 -04:00
parent 9fdfb77dd4
commit f6e5f719d1
3 changed files with 24 additions and 57 deletions

View File

@@ -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;
}
/**