mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
2.2
This commit is contained in:
47
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
47
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -2032,26 +2032,6 @@ export interface Singularity {
|
||||
*/
|
||||
getAugmentationPrereq(augName: string): string[];
|
||||
|
||||
/**
|
||||
* Get the price and reputation of an augmentation.
|
||||
* @deprecated use getAugmentationPrice getAugmentationRepReq
|
||||
* @remarks
|
||||
* RAM cost: 5 GB * 16/4/1
|
||||
*
|
||||
*
|
||||
* This function returns an array with two elements that gives the cost for
|
||||
* the specified Augmentation. The first element in the returned array is the
|
||||
* reputation requirement of the Augmentation, and the second element is the
|
||||
* money cost.
|
||||
*
|
||||
* If an invalid Augmentation name is passed in for the augName argument, this
|
||||
* function will return the array [-1, -1].
|
||||
*
|
||||
* @param augName - Name of Augmentation.
|
||||
* @returns Array with first element as a reputation requirement and second element as the money cost.
|
||||
*/
|
||||
getAugmentationCost(augName: string): [number, number];
|
||||
|
||||
/**
|
||||
* Get price of an augmentation.
|
||||
* @remarks
|
||||
@@ -5916,33 +5896,6 @@ export interface NS {
|
||||
*/
|
||||
getServerBaseSecurityLevel(host: string): number;
|
||||
|
||||
/**
|
||||
* @deprecated use getServerMaxRam / getServerUsedRam
|
||||
* @remarks
|
||||
* RAM cost: 0.1 GB
|
||||
*
|
||||
* Returns an array with two elements that gives information about a server’s memory (RAM).
|
||||
* The first element in the array is the amount of RAM that the server has total (in GB).
|
||||
* The second element in the array is the amount of RAM that is currently being used on
|
||||
* the server (in GB).
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* // NS1:
|
||||
* var serverRam = getServerRam("helios");
|
||||
* var totalRam = serverRam[0];
|
||||
* var ramUsed = serverRam[1];
|
||||
* ```
|
||||
* @example
|
||||
* ```ts
|
||||
* // NS2:
|
||||
* const [totalRam, ramUsed] = ns.getServerRam("helios");
|
||||
* ```
|
||||
* @param host - Host of target server.
|
||||
* @returns Array with total and used memory on the specified server, in GB.
|
||||
*/
|
||||
getServerRam(host: string): [number, number];
|
||||
|
||||
/**
|
||||
* Get the maximum amount of RAM on a server.
|
||||
* @remarks
|
||||
|
||||
Reference in New Issue
Block a user