This commit is contained in:
Olivier Gagnon
2022-01-18 19:12:52 -05:00
parent d2ec38753b
commit 69cf98ff34
8 changed files with 31 additions and 23 deletions

View File

@@ -6076,14 +6076,17 @@ export interface NS extends Singularity {
flags(schema: [string, string | number | boolean | string[]][]): any;
/**
* Share your computer with your factions. Increasing your rep gain for a short duration.
* Share your computer with your factions.
* @remarks
* RAM cost: 2.4 GB
*
* Increases your rep gain of hacking contracts while share is called.
* Scales with thread count.
*/
share(): Promise<void>;
/**
* Calculate your share power.
* Calculate your share power. Based on all the active share calls.
* @remarks
* RAM cost: 0.2 GB
*/
@@ -6398,13 +6401,13 @@ export interface Corporation extends WarehouseAPI, OfficeAPI {
* Create a Corporation
* @param divisionName - Name of the division
* @param selfFund - If you should self fund, defaults to true, false will only work on Bitnode 3
* @returns true if created and false if not
* @returns true if created and false if not
*/
createCorporation(corporationName: string, selfFund: boolean): boolean;
/**
* Check if you have a one time unlockable upgrade
* @param upgradeName - Name of the upgrade
* @returns true if unlocked and false if not
* @returns true if unlocked and false if not
*/
hasUnlockUpgrade(upgradeName: string): boolean;
/**
@@ -6574,10 +6577,10 @@ interface Product {
pCost: number;
/** Sell cost, can be "MP+5" */
sCost: string | number;
/** Data refers to the production, sale, and quantity of the products
* These values are specific to a city
/** Data refers to the production, sale, and quantity of the products
* These values are specific to a city
* For each city, the data is [qty, prod, sell] */
cityData: {[key: string]:number[]};
cityData: { [key: string]: number[] };
/** Creation progress - A number between 0-100 representing percentage */
developmentProgress: number;
}