From 914c0f44c4069fdd1136ea30b8e02736db1bd86c Mon Sep 17 00:00:00 2001 From: Martin Fournier Date: Wed, 26 Jan 2022 05:09:00 -0500 Subject: [PATCH] Remove intermediary doc input file --- .gitignore | 1 + input/bitburner.api.json | 34502 ------------------------------------- package.json | 2 +- 3 files changed, 2 insertions(+), 34503 deletions(-) delete mode 100644 input/bitburner.api.json diff --git a/.gitignore b/.gitignore index 1ca4801dc..9ec241b30 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ Netburner.txt /test/*.map /test/*.bundle.* /test/*.css +/input/bitburner.api.json .cypress # tmp folder for electron diff --git a/input/bitburner.api.json b/input/bitburner.api.json deleted file mode 100644 index 30922f80e..000000000 --- a/input/bitburner.api.json +++ /dev/null @@ -1,34502 +0,0 @@ -{ - "metadata": { - "toolPackage": "@microsoft/api-extractor", - "toolVersion": "7.18.17", - "schemaVersion": 1004, - "oldestForwardsCompatibleVersion": 1001, - "tsdocConfig": { - "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", - "noStandardTags": true, - "tagDefinitions": [ - { - "tagName": "@alpha", - "syntaxKind": "modifier" - }, - { - "tagName": "@beta", - "syntaxKind": "modifier" - }, - { - "tagName": "@defaultValue", - "syntaxKind": "block" - }, - { - "tagName": "@decorator", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@deprecated", - "syntaxKind": "block" - }, - { - "tagName": "@eventProperty", - "syntaxKind": "modifier" - }, - { - "tagName": "@example", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@experimental", - "syntaxKind": "modifier" - }, - { - "tagName": "@inheritDoc", - "syntaxKind": "inline" - }, - { - "tagName": "@internal", - "syntaxKind": "modifier" - }, - { - "tagName": "@label", - "syntaxKind": "inline" - }, - { - "tagName": "@link", - "syntaxKind": "inline", - "allowMultiple": true - }, - { - "tagName": "@override", - "syntaxKind": "modifier" - }, - { - "tagName": "@packageDocumentation", - "syntaxKind": "modifier" - }, - { - "tagName": "@param", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@privateRemarks", - "syntaxKind": "block" - }, - { - "tagName": "@public", - "syntaxKind": "modifier" - }, - { - "tagName": "@readonly", - "syntaxKind": "modifier" - }, - { - "tagName": "@remarks", - "syntaxKind": "block" - }, - { - "tagName": "@returns", - "syntaxKind": "block" - }, - { - "tagName": "@sealed", - "syntaxKind": "modifier" - }, - { - "tagName": "@see", - "syntaxKind": "block" - }, - { - "tagName": "@throws", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@typeParam", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@virtual", - "syntaxKind": "modifier" - }, - { - "tagName": "@betaDocumentation", - "syntaxKind": "modifier" - }, - { - "tagName": "@internalRemarks", - "syntaxKind": "block" - }, - { - "tagName": "@preapproved", - "syntaxKind": "modifier" - } - ], - "supportForTags": { - "@alpha": true, - "@beta": true, - "@defaultValue": true, - "@decorator": true, - "@deprecated": true, - "@eventProperty": true, - "@example": true, - "@experimental": true, - "@inheritDoc": true, - "@internal": true, - "@label": true, - "@link": true, - "@override": true, - "@packageDocumentation": true, - "@param": true, - "@privateRemarks": true, - "@public": true, - "@readonly": true, - "@remarks": true, - "@returns": true, - "@sealed": true, - "@see": true, - "@throws": true, - "@typeParam": true, - "@virtual": true, - "@betaDocumentation": true, - "@internalRemarks": true, - "@preapproved": true - } - } - }, - "kind": "Package", - "canonicalReference": "bitburner!", - "docComment": "", - "name": "bitburner", - "members": [ - { - "kind": "EntryPoint", - "canonicalReference": "bitburner!", - "name": "", - "members": [ - { - "kind": "Interface", - "canonicalReference": "bitburner!ActiveFragment:interface", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface ActiveFragment " - } - ], - "releaseTag": "Public", - "name": "ActiveFragment", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!ActiveFragment#avgCharge:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "avgCharge: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "avgCharge", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!ActiveFragment#id:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "id: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "id", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!ActiveFragment#numCharge:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "numCharge: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "numCharge", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!ActiveFragment#rotation:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "rotation: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "rotation", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!ActiveFragment#x:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "x: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "x", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!ActiveFragment#y:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "y: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "y", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!AugmentationStats:interface", - "docComment": "/**\n * Data representing the internal values of an Augmentation.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface AugmentationStats " - } - ], - "releaseTag": "Public", - "name": "AugmentationStats", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#agility_exp_mult:member", - "docComment": "/**\n * Multipler to agility experience gain rate\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "agility_exp_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "agility_exp_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#agility_mult:member", - "docComment": "/**\n * Multipler to agility skill\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "agility_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "agility_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#bladeburner_analysis_mult:member", - "docComment": "/**\n * Multipler to effectiveness in Bladeburner Field Analysis\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "bladeburner_analysis_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "bladeburner_analysis_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#bladeburner_max_stamina_mult:member", - "docComment": "/**\n * Multipler to Bladeburner max stamina\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "bladeburner_max_stamina_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "bladeburner_max_stamina_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#bladeburner_stamina_gain_mult:member", - "docComment": "/**\n * Multipler to Bladeburner stamina gain rate\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "bladeburner_stamina_gain_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "bladeburner_stamina_gain_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#bladeburner_success_chance_mult:member", - "docComment": "/**\n * Multipler to success chance in Bladeburner contracts/operations\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "bladeburner_success_chance_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "bladeburner_success_chance_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#charisma_exp_mult:member", - "docComment": "/**\n * Multipler to charisma experience gain rate\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "charisma_exp_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "charisma_exp_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#charisma_mult:member", - "docComment": "/**\n * Multipler to charisma skill\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "charisma_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "charisma_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#company_rep_mult:member", - "docComment": "/**\n * Multipler to amount of reputation gained when working\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "company_rep_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "company_rep_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#crime_money_mult:member", - "docComment": "/**\n * Multipler to amount of money gained from crimes\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "crime_money_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "crime_money_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#crime_success_mult:member", - "docComment": "/**\n * Multipler to crime success rate\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "crime_success_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "crime_success_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#defense_exp_mult:member", - "docComment": "/**\n * Multipler to defense experience gain rate\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "defense_exp_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "defense_exp_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#defense_mult:member", - "docComment": "/**\n * Multipler to defense skill\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "defense_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "defense_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#dexterity_exp_mult:member", - "docComment": "/**\n * Multipler to dexterity experience gain rate\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "dexterity_exp_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "dexterity_exp_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#dexterity_mult:member", - "docComment": "/**\n * Multipler to dexterity skill\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "dexterity_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "dexterity_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#faction_rep_mult:member", - "docComment": "/**\n * Multipler to amount of reputation gained when working\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "faction_rep_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "faction_rep_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#hacking_chance_mult:member", - "docComment": "/**\n * Multipler to chance of successfully performing a hack\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_chance_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hacking_chance_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#hacking_exp_mult:member", - "docComment": "/**\n * Multipler to hacking experience gain rate\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_exp_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hacking_exp_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#hacking_grow_mult:member", - "docComment": "/**\n * Multipler to amount of money injected into servers using grow\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_grow_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hacking_grow_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#hacking_money_mult:member", - "docComment": "/**\n * Multipler to amount of money the player gains from hacking\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_money_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hacking_money_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#hacking_mult:member", - "docComment": "/**\n * Multipler to hacking skill\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hacking_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#hacking_speed_mult:member", - "docComment": "/**\n * Multipler to hacking speed\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_speed_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hacking_speed_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#hacknet_node_core_cost_mult:member", - "docComment": "/**\n * Multipler to cost of core for a Hacknet Node\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknet_node_core_cost_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hacknet_node_core_cost_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#hacknet_node_level_cost_mult:member", - "docComment": "/**\n * Multipler to cost of leveling up a Hacknet Node\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknet_node_level_cost_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hacknet_node_level_cost_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#hacknet_node_money_mult:member", - "docComment": "/**\n * Multipler to amount of money produced by Hacknet Nodes\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknet_node_money_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hacknet_node_money_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#hacknet_node_purchase_cost_mult:member", - "docComment": "/**\n * Multipler to cost of purchasing a Hacknet Node\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknet_node_purchase_cost_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hacknet_node_purchase_cost_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#hacknet_node_ram_cost_mult:member", - "docComment": "/**\n * Multipler to cost of ram for a Hacknet Node\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknet_node_ram_cost_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hacknet_node_ram_cost_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#strength_exp_mult:member", - "docComment": "/**\n * Multipler to strength experience gain rate\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "strength_exp_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "strength_exp_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#strength_mult:member", - "docComment": "/**\n * Multipler to strength skill\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "strength_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "strength_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentationStats#work_money_mult:member", - "docComment": "/**\n * Multipler to amount of money gained from working\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "work_money_mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "work_money_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!AugmentPair:interface", - "docComment": "/**\n * Return value of {@link Sleeve.getSleevePurchasableAugs | getSleevePurchasableAugs}\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface AugmentPair " - } - ], - "releaseTag": "Public", - "name": "AugmentPair", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentPair#cost:member", - "docComment": "/**\n * augmentation cost\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "cost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!AugmentPair#name:member", - "docComment": "/**\n * augmentation name\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!BasicHGWOptions:interface", - "docComment": "/**\n * Options to affect the behavior of {@link NS.hack | hack}, {@link NS.grow | grow}, and {@link NS.weaken | weaken}.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface BasicHGWOptions " - } - ], - "releaseTag": "Public", - "name": "BasicHGWOptions", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BasicHGWOptions#stock:member", - "docComment": "/**\n * Set to true this action will affect the stock market.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "stock?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "stock", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BasicHGWOptions#threads:member", - "docComment": "/**\n * Number of threads to use for this function. Must be less than or equal to the number of threads the script is running with.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "threads?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "threads", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!BitNodeMultipliers:interface", - "docComment": "/**\n * All multipliers affecting the difficulty of the current challenge.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface BitNodeMultipliers " - } - ], - "releaseTag": "Public", - "name": "BitNodeMultipliers", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#AgilityLevelMultiplier:member", - "docComment": "/**\n * Influences how quickly the player's agility level (not exp) scales\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "AgilityLevelMultiplier: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "AgilityLevelMultiplier", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#AugmentationMoneyCost:member", - "docComment": "/**\n * Influences the base cost to purchase an augmentation.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "AugmentationMoneyCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "AugmentationMoneyCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#AugmentationRepCost:member", - "docComment": "/**\n * Influences the base rep the player must have with a faction to purchase an augmentation.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "AugmentationRepCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "AugmentationRepCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#BladeburnerRank:member", - "docComment": "/**\n * Influences how quickly the player can gain rank within Bladeburner.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "BladeburnerRank: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "BladeburnerRank", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#BladeburnerSkillCost:member", - "docComment": "/**\n * Influences the cost of skill levels from Bladeburner.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "BladeburnerSkillCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "BladeburnerSkillCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#CharismaLevelMultiplier:member", - "docComment": "/**\n * Influences how quickly the player's charisma level (not exp) scales\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "CharismaLevelMultiplier: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "CharismaLevelMultiplier", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#ClassGymExpGain:member", - "docComment": "/**\n * Influences the experience gained for each ability when a player completes a class.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ClassGymExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ClassGymExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#CodingContractMoney:member", - "docComment": "/**\n * Influences the amount of money gained from completing Coding Contracts\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "CodingContractMoney: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "CodingContractMoney", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#CompanyWorkExpGain:member", - "docComment": "/**\n * Influences the experience gained for each ability when the player completes working their job.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "CompanyWorkExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "CompanyWorkExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#CompanyWorkMoney:member", - "docComment": "/**\n * Influences how much money the player earns when completing working their job.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "CompanyWorkMoney: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "CompanyWorkMoney", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#CorporationValuation:member", - "docComment": "/**\n * Influences the valuation of corporations created by the player.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "CorporationValuation: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "CorporationValuation", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#CrimeExpGain:member", - "docComment": "/**\n * Influences the base experience gained for each ability when the player commits a crime.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "CrimeExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "CrimeExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#CrimeMoney:member", - "docComment": "/**\n * Influences the base money gained when the player commits a crime.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "CrimeMoney: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "CrimeMoney", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#DaedalusAugsRequirement:member", - "docComment": "/**\n * Influences how many Augmentations you need in order to get invited to the Daedalus faction\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "DaedalusAugsRequirement: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "DaedalusAugsRequirement", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#DefenseLevelMultiplier:member", - "docComment": "/**\n * Influences how quickly the player's defense level (not exp) scales\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "DefenseLevelMultiplier: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "DefenseLevelMultiplier", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#DexterityLevelMultiplier:member", - "docComment": "/**\n * Influences how quickly the player's dexterity level (not exp) scales\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "DexterityLevelMultiplier: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "DexterityLevelMultiplier", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#FactionPassiveRepGain:member", - "docComment": "/**\n * Influences how much rep the player gains in each faction simply by being a member.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "FactionPassiveRepGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "FactionPassiveRepGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#FactionWorkExpGain:member", - "docComment": "/**\n * Influences the experience gained for each ability when the player completes work for a Faction.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "FactionWorkExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "FactionWorkExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#FactionWorkRepGain:member", - "docComment": "/**\n * Influences how much rep the player gains when performing work for a faction.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "FactionWorkRepGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "FactionWorkRepGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#FourSigmaMarketDataApiCost:member", - "docComment": "/**\n * Influences how much it costs to unlock the stock market's 4S Market Data API\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "FourSigmaMarketDataApiCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "FourSigmaMarketDataApiCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#FourSigmaMarketDataCost:member", - "docComment": "/**\n * Influences how much it costs to unlock the stock market's 4S Market Data (NOT API)\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "FourSigmaMarketDataCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "FourSigmaMarketDataCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#GangSoftcap:member", - "docComment": "/**\n * Influences the respect gain and money gain of your gang.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "GangSoftcap: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "GangSoftcap", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#HackExpGain:member", - "docComment": "/**\n * Influences the experienced gained when hacking a server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "HackExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "HackExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#HackingLevelMultiplier:member", - "docComment": "/**\n * Influences how quickly the player's hacking level (not experience) scales\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "HackingLevelMultiplier: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "HackingLevelMultiplier", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#HacknetNodeMoney:member", - "docComment": "/**\n * Influences how much money is produced by Hacknet Nodes and the hash rate of Hacknet Servers (unlocked in BitNode-9)\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "HacknetNodeMoney: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "HacknetNodeMoney", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#HomeComputerRamCost:member", - "docComment": "/**\n * Influences how much money it costs to upgrade your home computer's RAM\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "HomeComputerRamCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "HomeComputerRamCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#InfiltrationMoney:member", - "docComment": "/**\n * Influences how much money is gained when the player infiltrates a company.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "InfiltrationMoney: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "InfiltrationMoney", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#InfiltrationRep:member", - "docComment": "/**\n * Influences how much rep the player can gain from factions when selling stolen documents and secrets\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "InfiltrationRep: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "InfiltrationRep", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#ManualHackMoney:member", - "docComment": "/**\n * Influences how much money can be stolen from a server when the player performs a hack against it through the Terminal.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ManualHackMoney: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ManualHackMoney", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#PurchasedServerCost:member", - "docComment": "/**\n * Influence how much it costs to purchase a server\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "PurchasedServerCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "PurchasedServerCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#PurchasedServerLimit:member", - "docComment": "/**\n * Influences the maximum number of purchased servers you can have\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "PurchasedServerLimit: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "PurchasedServerLimit", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#PurchasedServerMaxRam:member", - "docComment": "/**\n * Influences the maximum allowed RAM for a purchased server\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "PurchasedServerMaxRam: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "PurchasedServerMaxRam", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#PurchasedServerSoftCap:member", - "docComment": "/**\n * Influences cost of any purchased server at or above 128GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "PurchasedServerSoftCap: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "PurchasedServerSoftCap", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#RepToDonateToFaction:member", - "docComment": "/**\n * Influences the minimum favor the player must have with a faction before they can donate to gain rep.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "RepToDonateToFaction: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "RepToDonateToFaction", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#ScriptHackMoney:member", - "docComment": "/**\n * Influences how much the money on a server can be reduced when a script performs a hack against it.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ScriptHackMoney: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ScriptHackMoney", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#ScriptHackMoneyGain:member", - "docComment": "/**\n * Influences how much of the money stolen by a scripted hack will be added to the player's money.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ScriptHackMoneyGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ScriptHackMoneyGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#ServerGrowthRate:member", - "docComment": "/**\n * Influences the growth percentage per cycle against a server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ServerGrowthRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ServerGrowthRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#ServerMaxMoney:member", - "docComment": "/**\n * Influences the maxmimum money that a server can grow to.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ServerMaxMoney: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ServerMaxMoney", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#ServerStartingMoney:member", - "docComment": "/**\n * Influences the initial money that a server starts with.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ServerStartingMoney: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ServerStartingMoney", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#ServerStartingSecurity:member", - "docComment": "/**\n * Influences the initial security level (hackDifficulty) of a server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ServerStartingSecurity: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ServerStartingSecurity", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#ServerWeakenRate:member", - "docComment": "/**\n * Influences the weaken amount per invocation against a server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ServerWeakenRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ServerWeakenRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#StaneksGiftExtraSize:member", - "docComment": "/**\n * Influences the size of the gift\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "StaneksGiftExtraSize: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "StaneksGiftExtraSize", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#StaneksGiftPowerMultiplier:member", - "docComment": "/**\n * Influences the power of the gift\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "StaneksGiftPowerMultiplier: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "StaneksGiftPowerMultiplier", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#StrengthLevelMultiplier:member", - "docComment": "/**\n * Influences how quickly the player's strength level (not exp) scales\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "StrengthLevelMultiplier: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "StrengthLevelMultiplier", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BitNodeMultipliers#WorldDaemonDifficulty:member", - "docComment": "/**\n * Influences the hacking skill required to backdoor the world daemon.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "WorldDaemonDifficulty: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "WorldDaemonDifficulty", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Bladeburner:interface", - "docComment": "/**\n * Bladeburner API\n *\n * @remarks\n *\n * You have to be employed in the Bladeburner division and be in BitNode-7 or have Source-File 7 in order to use this API.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface Bladeburner " - } - ], - "releaseTag": "Public", - "name": "Bladeburner", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getActionAutolevel:member(1)", - "docComment": "/**\n * Get wether an action is set to autolevel.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not this action is currently set to autolevel.\n *\n * Returns false if an invalid action is specified.\n *\n * @param type - Type of action.\n *\n * @param name - Name of action. Must be an exact match.\n *\n * @returns True if the action is set to autolevel, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getActionAutolevel(type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getActionAutolevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getActionCountRemaining:member(1)", - "docComment": "/**\n * Get action count remaining.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the remaining count of the specified action.\n *\n * Note that this is meant to be used for Contracts and Operations. This function will return ‘Infinity’ for actions such as Training and Field Analysis. This function will return 1 for BlackOps not yet completed regardless of wether the player has the required rank to attempt the mission or not.\n *\n * @param type - Type of action.\n *\n * @param name - Name of action. Must be an exact match.\n *\n * @returns Remaining count of the specified action.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getActionCountRemaining(type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getActionCountRemaining" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getActionCurrentLevel:member(1)", - "docComment": "/**\n * Get the current level of an action.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the current level of this action.\n *\n * Returns -1 if an invalid action is specified.\n *\n * @param type - Type of action.\n *\n * @param name - Name of action. Must be an exact match.\n *\n * @returns Current level of the specified action.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getActionCurrentLevel(type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getActionCurrentLevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getActionEstimatedSuccessChance:member(1)", - "docComment": "/**\n * Get estimate success chance of an action.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the estimated success chance for the specified action. This chance is returned as a decimal value, NOT a percentage (e.g. if you have an estimated success chance of 80%, then this function will return 0.80, NOT 80).\n *\n * @param type - Type of action.\n *\n * @param name - Name of action. Must be an exact match.\n *\n * @returns Estimated success chance for the specified action.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getActionEstimatedSuccessChance(type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "[number, number]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getActionEstimatedSuccessChance" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getActionMaxLevel:member(1)", - "docComment": "/**\n * Get the maximum level of an action.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the maximum level for this action.\n *\n * Returns -1 if an invalid action is specified.\n *\n * @param type - Type of action.\n *\n * @param name - Name of action. Must be an exact match.\n *\n * @returns Maximum level of the specified action.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getActionMaxLevel(type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getActionMaxLevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getActionRepGain:member(1)", - "docComment": "/**\n * Get the reputation gain of an action.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the average Bladeburner reputation gain for successfully completing the specified action. Note that this value is an ‘average’ and the real reputation gain may vary slightly from this value.\n *\n * @param type - Type of action.\n *\n * @param name - Name of action. Must be an exact match.\n *\n * @param level - Optional action level at which to calculate the gain\n *\n * @returns Average Bladeburner reputation gain for successfully completing the specified action.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getActionRepGain(type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", level: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "level", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "getActionRepGain" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getActionTime:member(1)", - "docComment": "/**\n * Get the time to complete an action.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the number of seconds it takes to complete the specified action\n *\n * @param type - Type of action.\n *\n * @param name - Name of action. Must be an exact match.\n *\n * @returns Number of milliseconds it takes to complete the specified action.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getActionTime(type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getActionTime" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getBlackOpNames:member(1)", - "docComment": "/**\n * List all black ops.\n *\n * @remarks\n *\n * RAM cost: 0.4 GB\n *\n * Returns an array of strings containing the names of all Bladeburner Black Ops.\n *\n * @returns Array of strings containing the names of all Bladeburner Black Ops.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getBlackOpNames(): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getBlackOpNames" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getBlackOpRank:member(1)", - "docComment": "/**\n * Get black op required rank.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Returns the rank required to complete this BlackOp.\n *\n * Returns -1 if an invalid action is specified.\n *\n * @param name - Name of BlackOp. Must be an exact match.\n *\n * @returns Rank required to complete this BlackOp.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getBlackOpRank(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getBlackOpRank" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getBonusTime:member(1)", - "docComment": "/**\n * Get bladeburner bonus time.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Returns the amount of accumulated “bonus time” (seconds) for the Bladeburner mechanic.\n *\n * “Bonus time” is accumulated when the game is offline or if the game is inactive in the browser.\n *\n * “Bonus time” makes the game progress faster, up to 5x the normal speed. For example, if an action takes 30 seconds to complete but you’ve accumulated over 30 seconds in bonus time, then the action will only take 6 seconds in real life to complete.\n *\n * @returns Amount of accumulated “bonus time” (milliseconds) for the Bladeburner mechanic.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getBonusTime(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getBonusTime" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getCity:member(1)", - "docComment": "/**\n * Get current city.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the city that the player is currently in (for Bladeburner).\n *\n * @returns City that the player is currently in (for Bladeburner).\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCity(): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getCity" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getCityChaos:member(1)", - "docComment": "/**\n * Get chaos of a city.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the chaos in the specified city, or -1 if an invalid city was specified.\n *\n * @param cityName - Name of city. Case-sensitive\n *\n * @returns Chaos in the specified city.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCityChaos(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getCityChaos" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getCityCommunities:member(1)", - "docComment": "/**\n * Get number of communities in a city.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the estimated number of Synthoid communities in the specified city, or -1 if an invalid city was specified.\n *\n * @param cityName - Name of city. Case-sensitive\n *\n * @returns Number of Synthoids communities in the specified city.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCityCommunities(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getCityCommunities" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getCityEstimatedPopulation:member(1)", - "docComment": "/**\n * Get estimated population in city.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the estimated number of Synthoids in the specified city, or -1 if an invalid city was specified.\n *\n * @param cityName - Name of city. Case-sensitive\n *\n * @returns Estimated number of Synthoids in the specified city.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCityEstimatedPopulation(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getCityEstimatedPopulation" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getContractNames:member(1)", - "docComment": "/**\n * List all contracts.\n *\n * @remarks\n *\n * RAM cost: 0.4 GB\n *\n * Returns an array of strings containing the names of all Bladeburner contracts.\n *\n * @returns Array of strings containing the names of all Bladeburner contracts.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getContractNames(): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getContractNames" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getCurrentAction:member(1)", - "docComment": "/**\n * Get current action.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Returns an object that represents the player’s current Bladeburner action. If the player is not performing an action, the function will return an object with the ‘type’ property set to “Idle”.\n *\n * @returns Object that represents the player’s current Bladeburner action.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCurrentAction(): " - }, - { - "kind": "Reference", - "text": "BladeburnerCurAction", - "canonicalReference": "bitburner!BladeburnerCurAction:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getCurrentAction" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getGeneralActionNames:member(1)", - "docComment": "/**\n * List all general actions.\n *\n * @remarks\n *\n * RAM cost: 0.4 GB\n *\n * Returns an array of strings containing the names of all general Bladeburner actions.\n *\n * @returns Array of strings containing the names of all general Bladeburner actions.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getGeneralActionNames(): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getGeneralActionNames" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getOperationNames:member(1)", - "docComment": "/**\n * List all operations.\n *\n * @remarks\n *\n * RAM cost: 0.4 GB\n *\n * Returns an array of strings containing the names of all Bladeburner operations.\n *\n * @returns Array of strings containing the names of all Bladeburner operations.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getOperationNames(): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getOperationNames" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getRank:member(1)", - "docComment": "/**\n * Get player bladeburner rank.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the player’s Bladeburner Rank.\n *\n * @returns Player’s Bladeburner Rank.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getRank(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getRank" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getSkillLevel:member(1)", - "docComment": "/**\n * Get skill level.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * This function returns your level in the specified skill.\n *\n * The function returns -1 if an invalid skill name is passed in.\n *\n * @param skillName - Name of skill. Case-sensitive and must be an exact match\n *\n * @returns Level in the specified skill.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSkillLevel(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getSkillLevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getSkillNames:member(1)", - "docComment": "/**\n * List all skills.\n *\n * @remarks\n *\n * RAM cost: 0.4 GB\n *\n * Returns an array of strings containing the names of all general Bladeburner skills.\n *\n * @returns Array of strings containing the names of all general Bladeburner skills.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSkillNames(): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getSkillNames" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getSkillPoints:member(1)", - "docComment": "/**\n * Get bladeburner skill points.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the number of Bladeburner skill points you have.\n *\n * @returns Number of Bladeburner skill points you have.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSkillPoints(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getSkillPoints" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getSkillUpgradeCost:member(1)", - "docComment": "/**\n * Get cost to upgrade skill.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * This function returns the number of skill points needed to upgrade the specified skill.\n *\n * The function returns -1 if an invalid skill name is passed in.\n *\n * @param skillName - Name of skill. Case-sensitive and must be an exact match\n *\n * @returns Number of skill points needed to upgrade the specified skill.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSkillUpgradeCost(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getSkillUpgradeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getStamina:member(1)", - "docComment": "/**\n * Get bladeburner stamina.\n *\n * @remarks\n *\n * RAM cost: 4 GB Returns an array with two elements: * [Current stamina, Max stamina]\n *\n * @returns Array containing current stamina and max stamina.\n *\n * @example\n * ```ts\n * // NS1:\n * function getStaminaPercentage() {\n * var res = bladeburner.getStamina();\n * return res[0] / res[1];\n * }\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * function getStaminaPercentage() {\n * const [current, max] = ns.bladeburner.getStamina();\n * return current / max;\n * }\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getStamina(): " - }, - { - "kind": "Content", - "text": "[number, number]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getStamina" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#getTeamSize:member(1)", - "docComment": "/**\n * Get team size.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the number of Bladeburner team members you have assigned to the specified action.\n *\n * Setting a team is only applicable for Operations and BlackOps. This function will return 0 for other action types.\n *\n * @param type - Type of action.\n *\n * @param name - Name of action. Must be an exact match.\n *\n * @returns Number of Bladeburner team members that were assigned to the specified action.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getTeamSize(type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getTeamSize" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#joinBladeburnerDivision:member(1)", - "docComment": "/**\n * Join the bladeburner division.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Attempts to join the Bladeburner division.\n *\n * Returns true if you successfully join the Bladeburner division, or if you are already a member.\n *\n * Returns false otherwise.\n *\n * @returns True if you successfully join the Bladeburner division, or if you are already a member, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "joinBladeburnerDivision(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "joinBladeburnerDivision" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#joinBladeburnerFaction:member(1)", - "docComment": "/**\n * Join the bladeburner faction.\n *\n * @remarks\n *\n * RAM cost: 4 GB Attempts to join the Bladeburner faction.\n *\n * Returns true if you successfully join the Bladeburner faction, or if you are already a member.\n *\n * Returns false otherwise.\n *\n * @returns True if you successfully join the Bladeburner faction, or if you are already a member, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "joinBladeburnerFaction(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "joinBladeburnerFaction" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#setActionAutolevel:member(1)", - "docComment": "/**\n * Set an action autolevel.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Enable/disable autoleveling for the specified action.\n *\n * @param type - Type of action.\n *\n * @param name - Name of action. Must be an exact match.\n *\n * @param autoLevel - Whether or not to autolevel this action\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setActionAutolevel(type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", autoLevel: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "autoLevel", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "setActionAutolevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#setActionLevel:member(1)", - "docComment": "/**\n * Set the level of an action.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Set the level for the specified action.\n *\n * @param type - Type of action.\n *\n * @param name - Name of action. Must be an exact match.\n *\n * @param level - Level to set this action to.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setActionLevel(type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", level: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "level", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "setActionLevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#setTeamSize:member(1)", - "docComment": "/**\n * Set team size.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Set the team size for the specified Bladeburner action.\n *\n * Returns the team size that was set, or -1 if the function failed.\n *\n * @param type - Type of action.\n *\n * @param name - Name of action. Must be an exact match.\n *\n * @param size - Number of team members to set. Will be converted using Math.round().\n *\n * @returns Number of Bladeburner team members you assigned to the specified action.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setTeamSize(type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", size: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "size", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "setTeamSize" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#startAction:member(1)", - "docComment": "/**\n * Start an action.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Attempts to start the specified Bladeburner action. Returns true if the action was started successfully, and false otherwise.\n *\n * @param type - Type of action.\n *\n * @param name - Name of action. Must be an exact match\n *\n * @returns True if the action was started successfully, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "startAction(type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "startAction" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#stopBladeburnerAction:member(1)", - "docComment": "/**\n * Stop current action.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Stops the current Bladeburner action.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "stopBladeburnerAction(): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "stopBladeburnerAction" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#switchCity:member(1)", - "docComment": "/**\n * Travel to another city in bladeburner.\n *\n * @remarks\n *\n * RAM cost: 4 GB Attempts to switch to the specified city (for Bladeburner only).\n *\n * Returns true if successful, and false otherwise\n *\n * @param cityName - Name of city. Case-sensitive\n *\n * @returns true if successful, and false otherwise\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "switchCity(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "switchCity" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Bladeburner#upgradeSkill:member(1)", - "docComment": "/**\n * Upgrade skill.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Attempts to upgrade the specified Bladeburner skill.\n *\n * Returns true if the skill is successfully upgraded, and false otherwise.\n *\n * @param skillName - Name of skill to be upgraded. Case-sensitive and must be an exact match\n *\n * @returns true if the skill is successfully upgraded, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "upgradeSkill(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "upgradeSkill" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!BladeburnerCurAction:interface", - "docComment": "/**\n * Bladeburner current action.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface BladeburnerCurAction " - } - ], - "releaseTag": "Public", - "name": "BladeburnerCurAction", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BladeburnerCurAction#name:member", - "docComment": "/**\n * Name of Action\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!BladeburnerCurAction#type:member", - "docComment": "/**\n * Type of Action\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "type", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!CharacterInfo:interface", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface CharacterInfo " - } - ], - "releaseTag": "Public", - "name": "CharacterInfo", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#bitnode:member", - "docComment": "/**\n * Current BitNode number\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "bitnode: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "bitnode", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#city:member", - "docComment": "/**\n * Name of city you are currently in\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "city: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "city", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#company:member", - "docComment": "/**\n * Array of all companies at which you have jobs\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "company: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "company", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#factions:member", - "docComment": "/**\n * Array of factions you are currently a member of\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "factions: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "factions", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#hp:member", - "docComment": "/**\n * Current health points\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#jobTitle:member", - "docComment": "/**\n * Array of job positions for all companies you are employed at. Same order as 'jobs'\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "jobTitle: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "jobTitle", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#maxHp:member", - "docComment": "/**\n * Maximum health points\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "maxHp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "maxHp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#mult:member", - "docComment": "/**\n * Object with many of the player's multipliers from Augmentations/Source Files\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "mult: " - }, - { - "kind": "Reference", - "text": "CharacterMult", - "canonicalReference": "bitburner!CharacterMult:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#timeWorked:member", - "docComment": "/**\n * Timed worked in ms\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "timeWorked: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "timeWorked", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#tor:member", - "docComment": "/**\n * Boolean indicating whether or not you have a tor router\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "tor: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "tor", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#workAgiExpGain:member", - "docComment": "/**\n * Agi experience earned so far from work\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workAgiExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workAgiExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#workChaExpGain:member", - "docComment": "/**\n * Cha experience earned so far from work\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workChaExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workChaExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#workDefExpGain:member", - "docComment": "/**\n * Def experience earned so far from work\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workDefExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workDefExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#workDexExpGain:member", - "docComment": "/**\n * Dex experience earned so far from work\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workDexExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workDexExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#workHackExpGain:member", - "docComment": "/**\n * Hacking experience earned so far from work\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workHackExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workHackExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#workMoneyGain:member", - "docComment": "/**\n * Money earned so far from work, if applicable\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workMoneyGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workMoneyGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#workRepGain:member", - "docComment": "/**\n * Reputation earned so far from work, if applicable\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workRepGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workRepGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterInfo#workStrExpGain:member", - "docComment": "/**\n * Str experience earned so far from work\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workStrExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workStrExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!CharacterMult:interface", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface CharacterMult " - } - ], - "releaseTag": "Public", - "name": "CharacterMult", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#agility:member", - "docComment": "/**\n * Agility stat\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "agility: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agility", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#agilityExp:member", - "docComment": "/**\n * Agility exp\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "agilityExp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agilityExp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#companyRep:member", - "docComment": "/**\n * Company reputation\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "companyRep: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "companyRep", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#crimeMoney:member", - "docComment": "/**\n * Money earned from crimes\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "crimeMoney: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "crimeMoney", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#crimeSuccess:member", - "docComment": "/**\n * Crime success chance\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "crimeSuccess: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "crimeSuccess", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#defense:member", - "docComment": "/**\n * Defense stat\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "defense: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "defense", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#defenseExp:member", - "docComment": "/**\n * Defense exp\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "defenseExp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "defenseExp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#dexterity:member", - "docComment": "/**\n * Dexterity stat\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "dexterity: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dexterity", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#dexterityExp:member", - "docComment": "/**\n * Dexterity exp\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "dexterityExp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dexterityExp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#factionRep:member", - "docComment": "/**\n * Faction reputation\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "factionRep: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "factionRep", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#hacking:member", - "docComment": "/**\n * Hacking stat\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#hackingExp:member", - "docComment": "/**\n * Hacking exp\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hackingExp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hackingExp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#strength:member", - "docComment": "/**\n * Strength stat\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "strength: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "strength", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#strengthExp:member", - "docComment": "/**\n * Strength exp\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "strengthExp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "strengthExp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CharacterMult#workMoney:member", - "docComment": "/**\n * Money earned from jobs\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workMoney: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workMoney", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!CodingAttemptOptions:interface", - "docComment": "/**\n * Options to affect the behavior of {@link CodingContract} attempt.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface CodingAttemptOptions " - } - ], - "releaseTag": "Public", - "name": "CodingAttemptOptions", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CodingAttemptOptions#returnReward:member", - "docComment": "/**\n * If truthy, then the function will return a string that states the contract’s reward when it is successfully solved.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "returnReward: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "returnReward", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!CodingContract:interface", - "docComment": "/**\n * Coding Contract API\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface CodingContract " - } - ], - "releaseTag": "Public", - "name": "CodingContract", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!CodingContract#attempt:member(1)", - "docComment": "/**\n * Attemps a coding contract.\n *\n * @remarks\n *\n * RAM cost: 10 GB\n *\n * Attempts to solve the Coding Contract with the provided solution.\n *\n * @param answer - Solution for the contract.\n *\n * @param fn - Filename of the contract.\n *\n * @param host - Host of the server containing the contract. Optional. Defaults to current server if not provided.\n *\n * @param opts - Optional parameters for configuring function behavior.\n *\n * @returns True if the solution was correct, false otherwise. If the returnReward option is configured, then the function will instead return a string. If the contract is successfully solved, the string will contain a description of the contract’s reward. Otherwise, it will be an empty string.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "attempt(answer: " - }, - { - "kind": "Content", - "text": "string[] | number" - }, - { - "kind": "Content", - "text": ", filename: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", opts?: " - }, - { - "kind": "Reference", - "text": "CodingAttemptOptions", - "canonicalReference": "bitburner!CodingAttemptOptions:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean | string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "answer", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "filename", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "opts", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - } - ], - "name": "attempt" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!CodingContract#getContractType:member(1)", - "docComment": "/**\n * Get the type of a coding contract.\n *\n * @remarks\n *\n * RAM cost: 5 GB\n *\n * Returns a name describing the type of problem posed by the Coding Contract. (e.g. Find Largest Prime Factor, Total Ways to Sum, etc.)\n *\n * @param fn - Filename of the contract.\n *\n * @param host - Host of the server containing the contract. Optional. Defaults to current server if not provided.\n *\n * @returns Name describing the type of problem posed by the Coding Contract.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getContractType(filename: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "filename", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getContractType" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!CodingContract#getData:member(1)", - "docComment": "/**\n * Get the input data.\n *\n * @remarks\n *\n * RAM cost: 5 GB\n *\n * Get the data associated with the specific Coding Contract. Note that this is not the same as the contract’s description. This is just the data that the contract wants you to act on in order to solve\n *\n * @param filename - Filename of the contract.\n *\n * @param host - Host of the server containing the contract. Optional. Defaults to current server if not provided.\n *\n * @returns The specified contract’s data, data type depends on contract type.;\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getData(filename: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "filename", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getData" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!CodingContract#getDescription:member(1)", - "docComment": "/**\n * Get the description.\n *\n * @remarks\n *\n * RAM cost: 5 GB\n *\n * Get the full text description for the problem posed by the Coding Contract.\n *\n * @param fn - Filename of the contract.\n *\n * @param host - Host of the server containing the contract. Optional. Defaults to current server if not provided.\n *\n * @returns Contract’s text description.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getDescription(filename: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "filename", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getDescription" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!CodingContract#getNumTriesRemaining:member(1)", - "docComment": "/**\n * Get the number of attempt remaining.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Get the number of tries remaining on the contract before it self-destructs.\n *\n * @param fn - Filename of the contract.\n *\n * @param host - Host of the server containing the contract. Optional. Defaults to current server if not provided.\n *\n * @returns How many attempts are remaining for the contract;\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getNumTriesRemaining(filename: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "filename", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getNumTriesRemaining" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Corporation:interface", - "docComment": "/**\n * Corporation API\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface Corporation extends " - }, - { - "kind": "Reference", - "text": "WarehouseAPI", - "canonicalReference": "bitburner!WarehouseAPI:interface" - }, - { - "kind": "Content", - "text": ", " - }, - { - "kind": "Reference", - "text": "OfficeAPI", - "canonicalReference": "bitburner!OfficeAPI:interface" - }, - { - "kind": "Content", - "text": " " - } - ], - "releaseTag": "Public", - "name": "Corporation", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#acceptInvestmentOffer:member(1)", - "docComment": "/**\n * Accept investment based on you companies current valuation\n *\n * @remarks\n *\n * Is based on current valuation and will not honer a specific Offer\n *\n * @returns An offer of investment\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "acceptInvestmentOffer(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "acceptInvestmentOffer" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#bribe:member(1)", - "docComment": "/**\n * Bribe a faction\n *\n * @param factionName - Faction name\n *\n * @param amountCash - Amount of money to bribe\n *\n * @param amountShares - Amount of shares to bribe\n *\n * @returns True if successful, false if not\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "bribe(factionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", amountCash: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", amountShares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "factionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "amountCash", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "amountShares", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "bribe" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#createCorporation:member(1)", - "docComment": "/**\n * Create a Corporation\n *\n * @param divisionName - Name of the division\n *\n * @param selfFund - If you should self fund, defaults to true, false will only work on Bitnode 3\n *\n * @returns true if created and false if not\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "createCorporation(corporationName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", selfFund: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "corporationName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "selfFund", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "createCorporation" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#expandCity:member(1)", - "docComment": "/**\n * Expand to a new city\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "expandCity(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "expandCity" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#expandIndustry:member(1)", - "docComment": "/**\n * Expand to a new industry\n *\n * @param industryType - Name of the industry\n *\n * @param divisionName - Name of the division\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "expandIndustry(industryType: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "industryType", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "expandIndustry" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#getCorporation:member(1)", - "docComment": "/**\n * Get corporation data\n *\n * @returns Corporation data\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCorporation(): " - }, - { - "kind": "Reference", - "text": "CorporationInfo", - "canonicalReference": "bitburner!CorporationInfo:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getCorporation" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#getDivision:member(1)", - "docComment": "/**\n * Get division data\n *\n * @param divisionName - Name of the division\n *\n * @returns Division data\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getDivision(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Division", - "canonicalReference": "bitburner!Division:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getDivision" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#getExpandCityCost:member(1)", - "docComment": "/**\n * Gets the cost to expand into a new city\n *\n * @returns cost\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getExpandCityCost(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getExpandCityCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#getExpandIndustryCost:member(1)", - "docComment": "/**\n * Gets the cost to expand into a new industry\n *\n * @param industryName - Name of the industry\n *\n * @returns cost\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getExpandIndustryCost(industryName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "industryName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getExpandIndustryCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#getInvestmentOffer:member(1)", - "docComment": "/**\n * Get an offer for investment based on you companies current valuation\n *\n * @returns An offer of investment\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getInvestmentOffer(): " - }, - { - "kind": "Reference", - "text": "InvestmentOffer", - "canonicalReference": "bitburner!InvestmentOffer:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getInvestmentOffer" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#getUnlockUpgradeCost:member(1)", - "docComment": "/**\n * Gets the cost to unlock a one time unlockable upgrade\n *\n * @param upgradeName - Name of the upgrade\n *\n * @returns cost of the upgrade\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getUnlockUpgradeCost(upgradeName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "upgradeName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getUnlockUpgradeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#getUpgradeLevel:member(1)", - "docComment": "/**\n * Get the level of a levelable upgrade\n *\n * @param upgradeName - Name of the upgrade\n *\n * @returns the level of the upgrade\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getUpgradeLevel(upgradeName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "upgradeName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getUpgradeLevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#getUpgradeLevelCost:member(1)", - "docComment": "/**\n * Gets the cost to unlock the next level of a levelable upgrade\n *\n * @param upgradeName - Name of the upgrade\n *\n * @returns cost of the upgrade\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getUpgradeLevelCost(upgradeName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "upgradeName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getUpgradeLevelCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#goPublic:member(1)", - "docComment": "/**\n * Go public\n *\n * @param numShares - number of shares you would like to issue for your IPO\n *\n * @returns true if you successfully go public, false if not\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "goPublic(numShares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "numShares", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "goPublic" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#hasUnlockUpgrade:member(1)", - "docComment": "/**\n * Check if you have a one time unlockable upgrade\n *\n * @param upgradeName - Name of the upgrade\n *\n * @returns true if unlocked and false if not\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hasUnlockUpgrade(upgradeName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "upgradeName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "hasUnlockUpgrade" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#issueDividends:member(1)", - "docComment": "/**\n * Issue dividends\n *\n * @param percent - Percent of profit to issue as dividends.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "issueDividends(percent: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "percent", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "issueDividends" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#levelUpgrade:member(1)", - "docComment": "/**\n * Level an upgrade.\n *\n * @param upgradeName - Name of the upgrade\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "levelUpgrade(upgradeName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "upgradeName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "levelUpgrade" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Corporation#unlockUpgrade:member(1)", - "docComment": "/**\n * Unlock an upgrade\n *\n * @param upgradeName - Name of the upgrade\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "unlockUpgrade(upgradeName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "upgradeName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "unlockUpgrade" - } - ], - "extendsTokenRanges": [ - { - "startIndex": 1, - "endIndex": 2 - }, - { - "startIndex": 3, - "endIndex": 5 - } - ] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!CorporationInfo:interface", - "docComment": "/**\n * General info about a corporation\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface CorporationInfo " - } - ], - "releaseTag": "Public", - "name": "CorporationInfo", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CorporationInfo#divisions:member", - "docComment": "/**\n * Array of all divisions\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "divisions: " - }, - { - "kind": "Reference", - "text": "Division", - "canonicalReference": "bitburner!Division:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "divisions", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CorporationInfo#expenses:member", - "docComment": "/**\n * Expenses per second this cycle\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "expenses: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "expenses", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CorporationInfo#funds:member", - "docComment": "/**\n * Funds available\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "funds: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "funds", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CorporationInfo#issuedShares:member", - "docComment": "/**\n * Amount of shares issued\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "issuedShares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "issuedShares", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CorporationInfo#name:member", - "docComment": "/**\n * Name of the corporation\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CorporationInfo#numShares:member", - "docComment": "/**\n * Amount of share owned\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "numShares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "numShares", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CorporationInfo#public:member", - "docComment": "/**\n * Indicating if the company is public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "public: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "public", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CorporationInfo#revenue:member", - "docComment": "/**\n * Revenue per second this cycle\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "revenue: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "revenue", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CorporationInfo#sharePrice:member", - "docComment": "/**\n * Price of the shares\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sharePrice: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "sharePrice", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CorporationInfo#shareSaleCooldown:member", - "docComment": "/**\n * Cooldown until shares can be sold again\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "shareSaleCooldown: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "shareSaleCooldown", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CorporationInfo#state:member", - "docComment": "/**\n * State of the corporation. Possible states are START, PURCHASE, PRODUCTION, SALE, EXPORT.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "state: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "state", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CorporationInfo#totalShares:member", - "docComment": "/**\n * Total number of shares issues by this corporation\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "totalShares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "totalShares", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!CrimeStats:interface", - "docComment": "/**\n * Data representing the internal values of a crime.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface CrimeStats " - } - ], - "releaseTag": "Public", - "name": "CrimeStats", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#agility_exp:member", - "docComment": "/**\n * agility exp gained from crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "agility_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agility_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#agility_success_weight:member", - "docComment": "/**\n * agility level impact on success change of the crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "agility_success_weight: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agility_success_weight", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#charisma_exp:member", - "docComment": "/**\n * charisma exp gained from crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "charisma_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "charisma_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#charisma_success_weight:member", - "docComment": "/**\n * charisma level impact on success change of the crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "charisma_success_weight: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "charisma_success_weight", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#defense_exp:member", - "docComment": "/**\n * defense exp gained from crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "defense_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "defense_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#defense_success_weight:member", - "docComment": "/**\n * defense level impact on success change of the crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "defense_success_weight: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "defense_success_weight", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#dexterity_exp:member", - "docComment": "/**\n * dexterity exp gained from crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "dexterity_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dexterity_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#dexterity_success_weight:member", - "docComment": "/**\n * dexterity level impact on success change of the crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "dexterity_success_weight: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dexterity_success_weight", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#difficulty:member", - "docComment": "/**\n * Number representing the difficulty of the crime. Used for success chance calculations\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "difficulty: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "difficulty", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#hacking_exp:member", - "docComment": "/**\n * hacking exp gained from crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#hacking_success_weight:member", - "docComment": "/**\n * hacking level impact on success change of the crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_success_weight: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking_success_weight", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#intelligence_exp:member", - "docComment": "/**\n * intelligence exp gained from crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "intelligence_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "intelligence_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#karma:member", - "docComment": "/**\n * Amount of karma lost for successfully committing this crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "karma: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "karma", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#kills:member", - "docComment": "/**\n * How many people die as a result of this crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "kills: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "kills", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#money:member", - "docComment": "/**\n * How much money is given\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "money: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "money", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#name:member", - "docComment": "/**\n * Name of crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "name: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#strength_exp:member", - "docComment": "/**\n * strength exp gained from crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "strength_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "strength_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#strength_success_weight:member", - "docComment": "/**\n * strength level impact on success change of the crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "strength_success_weight: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "strength_success_weight", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#time:member", - "docComment": "/**\n * Milliseconds it takes to attempt the crime\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "time: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "time", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!CrimeStats#type:member", - "docComment": "/**\n * Description of the crime activity\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "type", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Division:interface", - "docComment": "/**\n * Corporation division\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface Division " - } - ], - "releaseTag": "Public", - "name": "Division", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Division#awareness:member", - "docComment": "/**\n * Awareness of the division\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "awareness: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "awareness", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Division#cities:member", - "docComment": "/**\n * Cities in which this division has expanded\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "cities: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cities", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Division#lastCycleExpenses:member", - "docComment": "/**\n * Expenses last cycle\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "lastCycleExpenses: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "lastCycleExpenses", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Division#lastCycleRevenue:member", - "docComment": "/**\n * Revenue last cycle\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "lastCycleRevenue: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "lastCycleRevenue", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Division#name:member", - "docComment": "/**\n * Name of the division\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Division#popularity:member", - "docComment": "/**\n * Popularity of the division\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "popularity: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "popularity", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Division#prodMult:member", - "docComment": "/**\n * Production multiplier\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "prodMult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "prodMult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Division#products:member", - "docComment": "/**\n * Products developed by this division\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "products: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "products", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Division#research:member", - "docComment": "/**\n * Amount of research in that division\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "research: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "research", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Division#thisCycleExpenses:member", - "docComment": "/**\n * Expenses this cycle\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "thisCycleExpenses: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "thisCycleExpenses", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Division#thisCycleRevenue:member", - "docComment": "/**\n * Revenue this cycle\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "thisCycleRevenue: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "thisCycleRevenue", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Division#type:member", - "docComment": "/**\n * Type of division, like Aggriculture\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "type", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Division#upgrades:member", - "docComment": "/**\n * All research bought\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "upgrades: " - }, - { - "kind": "Content", - "text": "number[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "upgrades", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Employee:interface", - "docComment": "/**\n * Employee in an office\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface Employee " - } - ], - "releaseTag": "Public", - "name": "Employee", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Employee#cha:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "cha: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cha", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Employee#cre:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "cre: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cre", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Employee#eff:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "eff: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "eff", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Employee#ene:member", - "docComment": "/**\n * Energy\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ene: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ene", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Employee#exp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Employee#hap:member", - "docComment": "/**\n * Happiness\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hap: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hap", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Employee#int:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "int: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "int", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Employee#loc:member", - "docComment": "/**\n * City\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "loc: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "loc", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Employee#mor:member", - "docComment": "/**\n * Morale\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "mor: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "mor", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Employee#name:member", - "docComment": "/**\n * Name of the employee\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Employee#pos:member", - "docComment": "/**\n * Current job\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "pos: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "pos", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Employee#sal:member", - "docComment": "/**\n * Salary\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sal: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "sal", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!EmployeeJobs:interface", - "docComment": "/**\n * Object representing the number of employee in each job.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface EmployeeJobs " - } - ], - "releaseTag": "Public", - "name": "EmployeeJobs", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!EmployeeJobs#\"Research & Development\":member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "\"Research & Development\": " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "\"Research & Development\"", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!EmployeeJobs#Business:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "Business: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "Business", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!EmployeeJobs#Engineer:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "Engineer: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "Engineer", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!EmployeeJobs#Management:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "Management: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "Management", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!EmployeeJobs#Operations:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "Operations: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "Operations", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!EmployeeJobs#Training:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "Training: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "Training", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!EmployeeJobs#Unassigned:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "Unassigned: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "Unassigned", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!EquipmentStats:interface", - "docComment": "/**\n * Object representing data representing a gang member equipment.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface EquipmentStats " - } - ], - "releaseTag": "Public", - "name": "EquipmentStats", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!EquipmentStats#agi:member", - "docComment": "/**\n * Agility multiplier\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "agi?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "agi", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!EquipmentStats#cha:member", - "docComment": "/**\n * Charisma multiplier\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "cha?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "cha", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!EquipmentStats#def:member", - "docComment": "/**\n * Defense multiplier\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "def?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "def", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!EquipmentStats#dex:member", - "docComment": "/**\n * Dexterity multiplier\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "dex?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "dex", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!EquipmentStats#hack:member", - "docComment": "/**\n * Hacking multiplier\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hack?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hack", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!EquipmentStats#str:member", - "docComment": "/**\n * Strength multiplier\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "str?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "str", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "TypeAlias", - "canonicalReference": "bitburner!FilenameOrPID:type", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "type FilenameOrPID = " - }, - { - "kind": "Content", - "text": "number | string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "FilenameOrPID", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Formulas:interface", - "docComment": "/**\n * Formulas API\n *\n * @remarks\n *\n * You need Formulas.exe on your home computer to use this API.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface Formulas " - } - ], - "releaseTag": "Public", - "name": "Formulas", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Formulas#gang:member", - "docComment": "/**\n * Gang formulas\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "gang: " - }, - { - "kind": "Reference", - "text": "GangFormulas", - "canonicalReference": "bitburner!GangFormulas:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "gang", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Formulas#hacking:member", - "docComment": "/**\n * Hacking formulas\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking: " - }, - { - "kind": "Reference", - "text": "HackingFormulas", - "canonicalReference": "bitburner!HackingFormulas:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Formulas#hacknetNodes:member", - "docComment": "/**\n * Hacknet Nodes formulas\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknetNodes: " - }, - { - "kind": "Reference", - "text": "HacknetNodesFormulas", - "canonicalReference": "bitburner!HacknetNodesFormulas:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacknetNodes", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Formulas#hacknetServers:member", - "docComment": "/**\n * Hacknet Servers formulas\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknetServers: " - }, - { - "kind": "Reference", - "text": "HacknetServersFormulas", - "canonicalReference": "bitburner!HacknetServersFormulas:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacknetServers", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Formulas#skills:member", - "docComment": "/**\n * Skills formulas\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "skills: " - }, - { - "kind": "Reference", - "text": "SkillsFormulas", - "canonicalReference": "bitburner!SkillsFormulas:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "skills", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Fragment:interface", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface Fragment " - } - ], - "releaseTag": "Public", - "name": "Fragment", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Fragment#id:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "id: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "id", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Fragment#limit:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "limit: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "limit", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Fragment#power:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "power: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "power", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Fragment#shape:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "shape: " - }, - { - "kind": "Content", - "text": "boolean[][]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "shape", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Fragment#type:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "type: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "type", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Gang:interface", - "docComment": "/**\n * Gang API\n *\n * @remarks\n *\n * If you are not in BitNode-2, then you must have Source-File 2 in order to use this API.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface Gang " - } - ], - "releaseTag": "Public", - "name": "Gang", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#ascendMember:member(1)", - "docComment": "/**\n * Ascend a gang member.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Ascend the specified Gang Member.\n *\n * @param memberName - Name of member to ascend.\n *\n * @returns Object with info about the ascension results. undefined if ascension did not occur.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ascendMember(memberName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "GangMemberAscension", - "canonicalReference": "bitburner!GangMemberAscension:interface" - }, - { - "kind": "Content", - "text": " | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "memberName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "ascendMember" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#canRecruitMember:member(1)", - "docComment": "/**\n * Check if you can recruit a new gang member.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Returns boolean indicating whether a member can currently be recruited\n *\n * @returns True if a member can currently be recruited, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "canRecruitMember(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "canRecruitMember" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#createGang:member(1)", - "docComment": "/**\n * Create a gang.\n *\n * @remarks\n *\n * RAM cost: 1GB\n *\n * Create a gang with the specified faction.\n *\n * @returns True if the gang was created, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "createGang(faction: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "faction", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "createGang" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#getAscensionResult:member(1)", - "docComment": "/**\n * Get the result of an ascension without ascending.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Get the result of an ascension without ascending.\n *\n * @param memberName - Name of member.\n *\n * @returns Object with info about the ascension results. undefined if ascension is impossible.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getAscensionResult(memberName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "GangMemberAscension", - "canonicalReference": "bitburner!GangMemberAscension:interface" - }, - { - "kind": "Content", - "text": " | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "memberName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getAscensionResult" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#getBonusTime:member(1)", - "docComment": "/**\n * Get bonus time.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Returns the amount of accumulated “bonus time” (seconds) for the Gang mechanic.\n *\n * “Bonus time” is accumulated when the game is offline or if the game is inactive in the browser.\n *\n * “Bonus time” makes the game progress faster, up to 10x the normal speed.\n *\n * @returns Bonus time for the Gang mechanic in milliseconds.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getBonusTime(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getBonusTime" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#getChanceToWinClash:member(1)", - "docComment": "/**\n * Get chance to win clash with other gang.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns the chance you have to win a clash with the specified gang. The chance is returned in decimal form, not percentage\n *\n * @param gangName - Target gang\n *\n * @returns Chance you have to win a clash with the specified gang.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getChanceToWinClash(gangName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "gangName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getChanceToWinClash" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#getEquipmentCost:member(1)", - "docComment": "/**\n * Get cost of equipment.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Get the amount of money it takes to purchase a piece of Equipment or an Augmentation. If an invalid Equipment/Augmentation is specified, this function will return Infinity.\n *\n * @param equipName - Name of equipment.\n *\n * @returns Cost to purchase the specified Equipment/Augmentation (number). Infinity for invalid arguments\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getEquipmentCost(equipName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "equipName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getEquipmentCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#getEquipmentNames:member(1)", - "docComment": "/**\n * List equipment names.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Get the name of all possible equipment/upgrades you can purchase for your Gang Members. This includes Augmentations.\n *\n * @returns Names of all Equipments/Augmentations.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getEquipmentNames(): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getEquipmentNames" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#getEquipmentStats:member(1)", - "docComment": "/**\n * Get stats of an equipment.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Get the specified equipment stats.\n *\n * @param equipName - Name of equipment.\n *\n * @returns A dictionary containing the stats of the equipment.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getEquipmentStats(equipName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "EquipmentStats", - "canonicalReference": "bitburner!EquipmentStats:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "equipName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getEquipmentStats" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#getEquipmentType:member(1)", - "docComment": "/**\n * Get type of an equipment.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Get the specified equipment type.\n *\n * @param equipName - Name of equipment.\n *\n * @returns Type of the equipment.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getEquipmentType(equipName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "equipName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getEquipmentType" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#getGangInformation:member(1)", - "docComment": "/**\n * Get information about your gang.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Get general information about the gang.\n *\n * @returns Object containing general information about the gang.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getGangInformation(): " - }, - { - "kind": "Reference", - "text": "GangGenInfo", - "canonicalReference": "bitburner!GangGenInfo:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getGangInformation" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#getMemberInformation:member(1)", - "docComment": "/**\n * Get information about a specific gang member.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Get stat and equipment-related information about a Gang Member\n *\n * @param name - Name of member.\n *\n * @returns Object containing stat and equipment-related information about a Gang Member.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getMemberInformation(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "GangMemberInfo", - "canonicalReference": "bitburner!GangMemberInfo:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getMemberInformation" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#getMemberNames:member(1)", - "docComment": "/**\n * List all gang members.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Get the names of all Gang members\n *\n * @returns Names of all Gang members.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getMemberNames(): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getMemberNames" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#getOtherGangInformation:member(1)", - "docComment": "/**\n * Get information about the other gangs.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Get territory and power information about all gangs.\n *\n * @returns Object containing territory and power information about all gangs.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getOtherGangInformation(): " - }, - { - "kind": "Reference", - "text": "GangOtherInfo", - "canonicalReference": "bitburner!GangOtherInfo:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getOtherGangInformation" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#getTaskNames:member(1)", - "docComment": "/**\n * List member task names.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Get the name of all valid tasks that Gang members can be assigned to.\n *\n * @returns All valid tasks that Gang members can be assigned to.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getTaskNames(): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getTaskNames" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#getTaskStats:member(1)", - "docComment": "/**\n * Get stats of a task.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Get the stats of a gang task stats. This is typically used to evaluate which action should be executed next.\n *\n * @param name - Name of the task.\n *\n * @returns Detailed stats of a task.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getTaskStats(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "GangTaskStats", - "canonicalReference": "bitburner!GangTaskStats:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getTaskStats" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#inGang:member(1)", - "docComment": "/**\n * Check if you're in a gang.\n *\n * @remarks\n *\n * RAM cost: 1GB\n *\n * @returns True if you're in a gang, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "inGang(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "inGang" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#purchaseEquipment:member(1)", - "docComment": "/**\n * Purchase an equipment for a gang member.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Attempt to purchase the specified Equipment/Augmentation for the specified Gang member.\n *\n * @param memberName - Name of Gang member to purchase the equipment for.\n *\n * @param equipName - Name of Equipment/Augmentation to purchase.\n *\n * @returns True if the equipment was successfully purchased. False otherwise\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "purchaseEquipment(memberName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", equipName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "memberName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "equipName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "purchaseEquipment" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#recruitMember:member(1)", - "docComment": "/**\n * Recruit a new gang member.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Attempt to recruit a new gang member.\n *\n * Possible reasons for failure: * Cannot currently recruit a new member * There already exists a member with the specified name\n *\n * @param name - Name of member to recruit.\n *\n * @returns True if the member was successfully recruited, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "recruitMember(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "recruitMember" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#setMemberTask:member(1)", - "docComment": "/**\n * Set gang member to task.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Attempts to assign the specified Gang Member to the specified task. If an invalid task is specified, the Gang member will be set to idle (“Unassigned”).\n *\n * @param memberName - Name of Gang member to assign.\n *\n * @param taskName - Task to assign.\n *\n * @returns True if the Gang Member was successfully assigned to the task, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setMemberTask(memberName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", taskName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "memberName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "taskName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "setMemberTask" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Gang#setTerritoryWarfare:member(1)", - "docComment": "/**\n * Enable/Disable territory warfare.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Set whether or not the gang should engage in territory warfare\n *\n * @param engage - Whether or not to engage in territory warfare.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setTerritoryWarfare(engage: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "engage", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "setTerritoryWarfare" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!GangFormulas:interface", - "docComment": "/**\n * Gang formulas\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface GangFormulas " - } - ], - "releaseTag": "Public", - "name": "GangFormulas", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!GangFormulas#ascensionMultiplier:member(1)", - "docComment": "/**\n * Calculate ascension mult.\n *\n * @param points - Amount of ascension points.\n *\n * @returns The calculated ascension mult.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ascensionMultiplier(points: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "points", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "ascensionMultiplier" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!GangFormulas#ascensionPointsGain:member(1)", - "docComment": "/**\n * Calculate ascension point gain.\n *\n * @param exp - Experience point before ascension.\n *\n * @returns The calculated ascension point gain.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ascensionPointsGain(exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "exp", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "ascensionPointsGain" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!GangFormulas#moneyGain:member(1)", - "docComment": "/**\n * Calculate money gain per tick.\n *\n * @param gang - Gang info from {@link Gang.getGangInformation | getGangInformation}\n *\n * @param member - Member info from {@link Gang.getMemberInformation | getMemberInformation}\n *\n * @param task - Task info from {@link Gang.getTaskStats | getTaskStats}\n *\n * @returns The calculated money gain.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "moneyGain(gang: " - }, - { - "kind": "Reference", - "text": "GangGenInfo", - "canonicalReference": "bitburner!GangGenInfo:interface" - }, - { - "kind": "Content", - "text": ", member: " - }, - { - "kind": "Reference", - "text": "GangMemberInfo", - "canonicalReference": "bitburner!GangMemberInfo:interface" - }, - { - "kind": "Content", - "text": ", task: " - }, - { - "kind": "Reference", - "text": "GangTaskStats", - "canonicalReference": "bitburner!GangTaskStats:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "gang", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "member", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "task", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "moneyGain" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!GangFormulas#respectGain:member(1)", - "docComment": "/**\n * Calculate respect gain per tick.\n *\n * @param gang - Gang info from {@link Gang.getGangInformation | getGangInformation}\n *\n * @param member - Gang info from {@link Gang.getMemberInformation | getMemberInformation}\n *\n * @param task - Gang info from {@link Gang.getTaskStats | getTaskStats}\n *\n * @returns The calculated respect gain.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "respectGain(gang: " - }, - { - "kind": "Reference", - "text": "GangGenInfo", - "canonicalReference": "bitburner!GangGenInfo:interface" - }, - { - "kind": "Content", - "text": ", member: " - }, - { - "kind": "Reference", - "text": "GangMemberInfo", - "canonicalReference": "bitburner!GangMemberInfo:interface" - }, - { - "kind": "Content", - "text": ", task: " - }, - { - "kind": "Reference", - "text": "GangTaskStats", - "canonicalReference": "bitburner!GangTaskStats:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "gang", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "member", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "task", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "respectGain" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!GangFormulas#wantedLevelGain:member(1)", - "docComment": "/**\n * Calculate wanted gain per tick.\n *\n * @param gang - Gang info from {@link Gang.getGangInformation | getGangInformation}\n *\n * @param member - Member info from {@link Gang.getMemberInformation | getMemberInformation}\n *\n * @param task - Task info from {@link Gang.getTaskStats | getTaskStats}\n *\n * @returns The calculated wanted gain.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "wantedLevelGain(gang: " - }, - { - "kind": "Reference", - "text": "GangGenInfo", - "canonicalReference": "bitburner!GangGenInfo:interface" - }, - { - "kind": "Content", - "text": ", member: " - }, - { - "kind": "Reference", - "text": "GangMemberInfo", - "canonicalReference": "bitburner!GangMemberInfo:interface" - }, - { - "kind": "Content", - "text": ", task: " - }, - { - "kind": "Reference", - "text": "GangTaskStats", - "canonicalReference": "bitburner!GangTaskStats:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "gang", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "member", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "task", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "wantedLevelGain" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!GangFormulas#wantedPenalty:member(1)", - "docComment": "/**\n * Calculate the wanted penalty.\n *\n * @param gang - Gang info from {@link Gang.getGangInformation | getGangInformation}\n *\n * @returns The calculated wanted penalty.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "wantedPenalty(gang: " - }, - { - "kind": "Reference", - "text": "GangGenInfo", - "canonicalReference": "bitburner!GangGenInfo:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "gang", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "wantedPenalty" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!GangGenInfo:interface", - "docComment": "/**\n * Gang general info.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface GangGenInfo " - } - ], - "releaseTag": "Public", - "name": "GangGenInfo", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangGenInfo#faction:member", - "docComment": "/**\n * Name of faction that the gang belongs to (\"Slum Snakes\", etc.)\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "faction: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "faction", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangGenInfo#isHacking:member", - "docComment": "/**\n * Indicating whether or not it's a hacking gang\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "isHacking: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "isHacking", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangGenInfo#moneyGainRate:member", - "docComment": "/**\n * Money earned per game cycle\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "moneyGainRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "moneyGainRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangGenInfo#power:member", - "docComment": "/**\n * Gang's power for territory warfare\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "power: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "power", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangGenInfo#respect:member", - "docComment": "/**\n * Gang's respect\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "respect: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "respect", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangGenInfo#respectGainRate:member", - "docComment": "/**\n * Respect earned per game cycle\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "respectGainRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "respectGainRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangGenInfo#territory:member", - "docComment": "/**\n * Amount of territory held\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "territory: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "territory", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangGenInfo#territoryClashChance:member", - "docComment": "/**\n * Clash chance\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "territoryClashChance: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "territoryClashChance", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangGenInfo#territoryWarfareEngaged:member", - "docComment": "/**\n * Indicating if territory warfare is enabled\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "territoryWarfareEngaged: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "territoryWarfareEngaged", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangGenInfo#wantedLevel:member", - "docComment": "/**\n * Gang's wanted level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "wantedLevel: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "wantedLevel", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangGenInfo#wantedLevelGainRate:member", - "docComment": "/**\n * Wanted level gained/lost per game cycle (negative for losses)\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "wantedLevelGainRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "wantedLevelGainRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangGenInfo#wantedPenalty:member", - "docComment": "/**\n * Number indicating the current wanted penalty\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "wantedPenalty: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "wantedPenalty", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!GangMemberAscension:interface", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface GangMemberAscension " - } - ], - "releaseTag": "Public", - "name": "GangMemberAscension", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberAscension#agi:member", - "docComment": "/**\n * Agility multiplier gained from ascending\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "agi: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agi", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberAscension#cha:member", - "docComment": "/**\n * Charisma multiplier gained from ascending\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "cha: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cha", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberAscension#def:member", - "docComment": "/**\n * Defense multiplier gained from ascending\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "def: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "def", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberAscension#dex:member", - "docComment": "/**\n * Dexterity multiplier gained from ascending\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "dex: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dex", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberAscension#hack:member", - "docComment": "/**\n * Hacking multiplier gained from ascending\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hack: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hack", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberAscension#respect:member", - "docComment": "/**\n * Amount of respect lost from ascending\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "respect: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "respect", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberAscension#str:member", - "docComment": "/**\n * Strength multiplier gained from ascending\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "str: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "str", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!GangMemberInfo:interface", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface GangMemberInfo " - } - ], - "releaseTag": "Public", - "name": "GangMemberInfo", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#agi_asc_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "agi_asc_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agi_asc_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#agi_asc_points:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "agi_asc_points: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agi_asc_points", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#agi_exp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "agi_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agi_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#agi_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "agi_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agi_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#agi:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "agi: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agi", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#augmentations:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "augmentations: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "augmentations", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#cha_asc_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "cha_asc_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cha_asc_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#cha_asc_points:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "cha_asc_points: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cha_asc_points", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#cha_exp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "cha_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cha_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#cha_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "cha_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cha_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#cha:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "cha: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cha", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#def_asc_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "def_asc_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "def_asc_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#def_asc_points:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "def_asc_points: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "def_asc_points", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#def_exp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "def_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "def_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#def_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "def_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "def_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#def:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "def: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "def", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#dex_asc_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "dex_asc_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dex_asc_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#dex_asc_points:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "dex_asc_points: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dex_asc_points", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#dex_exp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "dex_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dex_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#dex_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "dex_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dex_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#dex:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "dex: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dex", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#earnedRespect:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "earnedRespect: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "earnedRespect", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#hack_asc_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hack_asc_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hack_asc_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#hack_asc_points:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hack_asc_points: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hack_asc_points", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#hack_exp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hack_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hack_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#hack_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hack_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hack_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#hack:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hack: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hack", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#moneyGain:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "moneyGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "moneyGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#name:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#respectGain:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "respectGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "respectGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#str_asc_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "str_asc_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "str_asc_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#str_asc_points:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "str_asc_points: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "str_asc_points", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#str_exp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "str_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "str_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#str_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "str_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "str_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#str:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "str: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "str", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#task:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "task: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "task", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#upgrades:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "upgrades: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "upgrades", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangMemberInfo#wantedLevelGain:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "wantedLevelGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "wantedLevelGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!GangOtherInfo:interface", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface GangOtherInfo " - } - ], - "releaseTag": "Public", - "name": "GangOtherInfo", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangOtherInfo#\"Slum Snakes\":member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "\"Slum Snakes\": " - }, - { - "kind": "Reference", - "text": "GangOtherInfoObject", - "canonicalReference": "bitburner!GangOtherInfoObject:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "\"Slum Snakes\"", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangOtherInfo#\"Speakers for the Dead\":member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "\"Speakers for the Dead\": " - }, - { - "kind": "Reference", - "text": "GangOtherInfoObject", - "canonicalReference": "bitburner!GangOtherInfoObject:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "\"Speakers for the Dead\"", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangOtherInfo#\"The Black Hand\":member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "\"The Black Hand\": " - }, - { - "kind": "Reference", - "text": "GangOtherInfoObject", - "canonicalReference": "bitburner!GangOtherInfoObject:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "\"The Black Hand\"", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangOtherInfo#\"The Dark Army\":member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "\"The Dark Army\": " - }, - { - "kind": "Reference", - "text": "GangOtherInfoObject", - "canonicalReference": "bitburner!GangOtherInfoObject:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "\"The Dark Army\"", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangOtherInfo#\"The Syndicate\":member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "\"The Syndicate\": " - }, - { - "kind": "Reference", - "text": "GangOtherInfoObject", - "canonicalReference": "bitburner!GangOtherInfoObject:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "\"The Syndicate\"", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangOtherInfo#NiteSec:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "NiteSec: " - }, - { - "kind": "Reference", - "text": "GangOtherInfoObject", - "canonicalReference": "bitburner!GangOtherInfoObject:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "NiteSec", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangOtherInfo#Tetrads:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "Tetrads: " - }, - { - "kind": "Reference", - "text": "GangOtherInfoObject", - "canonicalReference": "bitburner!GangOtherInfoObject:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "Tetrads", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!GangOtherInfoObject:interface", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface GangOtherInfoObject " - } - ], - "releaseTag": "Public", - "name": "GangOtherInfoObject", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangOtherInfoObject#power:member", - "docComment": "/**\n * Gang power\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "power: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "power", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangOtherInfoObject#territory:member", - "docComment": "/**\n * Gang territory, in decimal form\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "territory: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "territory", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!GangTaskStats:interface", - "docComment": "/**\n * Object representing data representing a gang member task.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface GangTaskStats " - } - ], - "releaseTag": "Public", - "name": "GangTaskStats", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#agiWeight:member", - "docComment": "/**\n * Agility skill impact on task scaling\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "agiWeight: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agiWeight", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#baseMoney:member", - "docComment": "/**\n * Base money earned\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "baseMoney: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "baseMoney", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#baseRespect:member", - "docComment": "/**\n * Base respect earned\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "baseRespect: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "baseRespect", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#baseWanted:member", - "docComment": "/**\n * Base wanted earned\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "baseWanted: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "baseWanted", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#chaWeight:member", - "docComment": "/**\n * Charisma skill impact on task scaling\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "chaWeight: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "chaWeight", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#defWeight:member", - "docComment": "/**\n * Defense skill impact on task scaling\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "defWeight: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "defWeight", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#desc:member", - "docComment": "/**\n * Task Description\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "desc: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "desc", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#dexWeight:member", - "docComment": "/**\n * Dexterity skill impact on task scaling\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "dexWeight: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dexWeight", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#difficulty:member", - "docComment": "/**\n * Number representing the difficulty of the task\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "difficulty: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "difficulty", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#hackWeight:member", - "docComment": "/**\n * Hacking skill impact on task scaling\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hackWeight: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hackWeight", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#isCombat:member", - "docComment": "/**\n * Is a task of a combat gang\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "isCombat: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "isCombat", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#isHacking:member", - "docComment": "/**\n * Is a task of a hacking gang\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "isHacking: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "isHacking", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#name:member", - "docComment": "/**\n * Task name\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#strWeight:member", - "docComment": "/**\n * Stength skill impact on task scaling\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "strWeight: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "strWeight", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTaskStats#territory:member", - "docComment": "/**\n * Territory impact on task scaling\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "territory: " - }, - { - "kind": "Reference", - "text": "GangTerritory", - "canonicalReference": "bitburner!GangTerritory:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "territory", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!GangTerritory:interface", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface GangTerritory " - } - ], - "releaseTag": "Public", - "name": "GangTerritory", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTerritory#money:member", - "docComment": "/**\n * Money gain impact on task scaling\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "money: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "money", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTerritory#respect:member", - "docComment": "/**\n * Respect gain impact on task scaling\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "respect: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "respect", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!GangTerritory#wanted:member", - "docComment": "/**\n * Wanted gain impact on task scaling\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "wanted: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "wanted", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!HackingFormulas:interface", - "docComment": "/**\n * Hacking formulas\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface HackingFormulas " - } - ], - "releaseTag": "Public", - "name": "HackingFormulas", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HackingFormulas#growPercent:member(1)", - "docComment": "/**\n * Calculate the percent a server would grow.\n *\n * @param server - Server info from {@link NS.getServer | getServer}\n *\n * @param threads - Amount of thread.\n *\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n *\n * @param cores - Number of cores on the computer that will execute grow.\n *\n * @returns The calculated grow percent.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "growPercent(server: " - }, - { - "kind": "Reference", - "text": "Server", - "canonicalReference": "bitburner!Server:interface" - }, - { - "kind": "Content", - "text": ", threads: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", player: " - }, - { - "kind": "Reference", - "text": "Player", - "canonicalReference": "bitburner!Player:interface" - }, - { - "kind": "Content", - "text": ", cores?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "server", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "threads", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "player", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "cores", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - } - ], - "name": "growPercent" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HackingFormulas#growTime:member(1)", - "docComment": "/**\n * Calculate grow time.\n *\n * @param server - Server info from {@link NS.getServer | getServer}\n *\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n *\n * @returns The calculated grow time.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "growTime(server: " - }, - { - "kind": "Reference", - "text": "Server", - "canonicalReference": "bitburner!Server:interface" - }, - { - "kind": "Content", - "text": ", player: " - }, - { - "kind": "Reference", - "text": "Player", - "canonicalReference": "bitburner!Player:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "server", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "player", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "growTime" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HackingFormulas#hackChance:member(1)", - "docComment": "/**\n * Calculate hack chance.\n *\n * @param server - Server info from {@link NS.getServer | getServer}\n *\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n *\n * @returns The calculated hack chance.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hackChance(server: " - }, - { - "kind": "Reference", - "text": "Server", - "canonicalReference": "bitburner!Server:interface" - }, - { - "kind": "Content", - "text": ", player: " - }, - { - "kind": "Reference", - "text": "Player", - "canonicalReference": "bitburner!Player:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "server", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "player", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "hackChance" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HackingFormulas#hackExp:member(1)", - "docComment": "/**\n * Calculate hack exp for one thread.\n *\n * @remarks\n *\n * Multiply by thread to get total exp\n *\n * @param server - Server info from {@link NS.getServer | getServer}\n *\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n *\n * @returns The calculated hack exp.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hackExp(server: " - }, - { - "kind": "Reference", - "text": "Server", - "canonicalReference": "bitburner!Server:interface" - }, - { - "kind": "Content", - "text": ", player: " - }, - { - "kind": "Reference", - "text": "Player", - "canonicalReference": "bitburner!Player:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "server", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "player", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "hackExp" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HackingFormulas#hackPercent:member(1)", - "docComment": "/**\n * Calculate hack percent for one thread.\n *\n * @remarks\n *\n * Multiply by thread to get total percent hacked.\n *\n * @param server - Server info from {@link NS.getServer | getServer}\n *\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n *\n * @returns The calculated hack percent.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hackPercent(server: " - }, - { - "kind": "Reference", - "text": "Server", - "canonicalReference": "bitburner!Server:interface" - }, - { - "kind": "Content", - "text": ", player: " - }, - { - "kind": "Reference", - "text": "Player", - "canonicalReference": "bitburner!Player:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "server", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "player", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "hackPercent" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HackingFormulas#hackTime:member(1)", - "docComment": "/**\n * Calculate hack time.\n *\n * @param server - Server info from {@link NS.getServer | getServer}\n *\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n *\n * @returns The calculated hack time.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hackTime(server: " - }, - { - "kind": "Reference", - "text": "Server", - "canonicalReference": "bitburner!Server:interface" - }, - { - "kind": "Content", - "text": ", player: " - }, - { - "kind": "Reference", - "text": "Player", - "canonicalReference": "bitburner!Player:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "server", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "player", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "hackTime" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HackingFormulas#weakenTime:member(1)", - "docComment": "/**\n * Calculate weaken time.\n *\n * @param server - Server info from {@link NS.getServer | getServer}\n *\n * @param player - Player info from {@link NS.getPlayer | getPlayer}\n *\n * @returns The calculated weaken time.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "weakenTime(server: " - }, - { - "kind": "Reference", - "text": "Server", - "canonicalReference": "bitburner!Server:interface" - }, - { - "kind": "Content", - "text": ", player: " - }, - { - "kind": "Reference", - "text": "Player", - "canonicalReference": "bitburner!Player:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "server", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "player", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "weakenTime" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!HackingMultipliers:interface", - "docComment": "/**\n * Hack related multipliers.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface HackingMultipliers " - } - ], - "releaseTag": "Public", - "name": "HackingMultipliers", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HackingMultipliers#chance:member", - "docComment": "/**\n * Player's hacking chance multiplier.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "chance: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "chance", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HackingMultipliers#growth:member", - "docComment": "/**\n * Player's hacking growth multiplier\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "growth: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "growth", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HackingMultipliers#money:member", - "docComment": "/**\n * Player's hacking money stolen multiplier.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "money: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "money", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HackingMultipliers#speed:member", - "docComment": "/**\n * Player's hacking speed multiplier.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "speed: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "speed", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Hacknet:interface", - "docComment": "/**\n * Hacknet API\n *\n * @remarks\n *\n * Not all these functions are immediately available.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface Hacknet " - } - ], - "releaseTag": "Public", - "name": "Hacknet", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#getCacheUpgradeCost:member(1)", - "docComment": "/**\n * Calculate the cost of upgrading hacknet node cache.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Returns the cost of upgrading the cache level of the specified Hacknet Server by n.\n *\n * If an invalid value for n is provided, then this function returns 0. If the specified Hacknet Node is already at max level, then Infinity is returned.\n *\n * @param index - Index/Identifier of Hacknet Node.\n *\n * @param n - Number of times to upgrade cache. Must be positive. Rounded to nearest integer.\n *\n * @returns Cost of upgrading the specified Hacknet Node's cache.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCacheUpgradeCost(index: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", n: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "index", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "n", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getCacheUpgradeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#getCoreUpgradeCost:member(1)", - "docComment": "/**\n * Calculate the cost of upgrading hacknet node cores.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Returns the cost of upgrading the number of cores of the specified Hacknet Node by n.\n *\n * If an invalid value for n is provided, then this function returns 0. If the specified Hacknet Node is already at max level, then Infinity is returned.\n *\n * @param index - Index/Identifier of Hacknet Node.\n *\n * @param n - Number of times to upgrade cores. Must be positive. Rounded to nearest integer.\n *\n * @returns Cost of upgrading the specified Hacknet Node's number of cores.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCoreUpgradeCost(index: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", n: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "index", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "n", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getCoreUpgradeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#getHashUpgradeLevel:member(1)", - "docComment": "/**\n * Get the level of a hash upgrade.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * @returns Level of the upgrade.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getHashUpgradeLevel(upgName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "upgName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getHashUpgradeLevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#getHashUpgrades:member(1)", - "docComment": "/**\n * Get the list of hash upgrades\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Returns the list of all available hash upgrades that can be used in the spendHashes function.\n *\n * @returns An array containing the available upgrades\n *\n * @example\n * ```ts\n * // NS1:\n * var upgrades = hacknet.getHashUpgrades(); // [\"Sell for Money\",\"Sell for Corporation Funds\",...]\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * const upgrades = ns.hacknet.getHashUpgrades(); // [\"Sell for Money\",\"Sell for Corporation Funds\",...]\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getHashUpgrades(): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getHashUpgrades" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#getLevelUpgradeCost:member(1)", - "docComment": "/**\n * Calculate the cost of upgrading hacknet node levels.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Returns the cost of upgrading the specified Hacknet Node by n levels.\n *\n * If an invalid value for n is provided, then this function returns 0. If the specified Hacknet Node is already at max level, then Infinity is returned.\n *\n * @param index - Index/Identifier of Hacknet Node.\n *\n * @param n - Number of levels to upgrade. Must be positive. Rounded to nearest integer.\n *\n * @returns Cost of upgrading the specified Hacknet Node.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getLevelUpgradeCost(index: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", n: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "index", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "n", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getLevelUpgradeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#getNodeStats:member(1)", - "docComment": "/**\n * Get the stats of a hacknet node.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Returns an object containing a variety of stats about the specified Hacknet Node.\n *\n * Note that for Hacknet Nodes, production refers to the amount of money the node generates. For Hacknet Servers (the upgraded version of Hacknet Nodes), production refers to the amount of hashes the node generates.\n *\n * @param index - Index/Identifier of Hacknet Node\n *\n * @returns Object containing a variety of stats about the specified Hacknet Node.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getNodeStats(index: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "NodeStats", - "canonicalReference": "bitburner!NodeStats:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "index", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getNodeStats" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#getPurchaseNodeCost:member(1)", - "docComment": "/**\n * Get the price of the next hacknet node.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Returns the cost of purchasing a new Hacknet Node.\n *\n * @returns Cost of purchasing a new Hacknet Node.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getPurchaseNodeCost(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getPurchaseNodeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#getRamUpgradeCost:member(1)", - "docComment": "/**\n * Calculate the cost of upgrading hacknet node RAM.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Returns the cost of upgrading the RAM of the specified Hacknet Node n times.\n *\n * If an invalid value for n is provided, then this function returns 0. If the specified Hacknet Node is already at max level, then Infinity is returned.\n *\n * @param index - Index/Identifier of Hacknet Node.\n *\n * @param n - Number of times to upgrade RAM. Must be positive. Rounded to nearest integer.\n *\n * @returns Cost of upgrading the specified Hacknet Node's ram.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getRamUpgradeCost(index: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", n: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "index", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "n", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getRamUpgradeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#getStudyMult:member(1)", - "docComment": "/**\n * Get the multipler to study.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * @returns Multiplier.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getStudyMult(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getStudyMult" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#getTrainingMult:member(1)", - "docComment": "/**\n * Get the multipler to training.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * @returns Multiplier.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getTrainingMult(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getTrainingMult" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#hashCapacity:member(1)", - "docComment": "/**\n * Get the maximum number of hashes you can store.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Returns the number of hashes you can store.\n *\n * @returns Number of hashes you can store.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hashCapacity(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "hashCapacity" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#hashCost:member(1)", - "docComment": "/**\n * Get the cost of a hash upgrade.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Returns the number of hashes required for the specified upgrade. The name of the upgrade must be an exact match.\n *\n * @param upgName - Name of the upgrade of Hacknet Node.\n *\n * @returns Number of hashes required for the specified upgrade.\n *\n * @example\n * ```ts\n * // NS1:\n * var upgradeName = \"Sell for Corporation Funds\";\n * if (hacknet.numHashes() > hacknet.hashCost(upgradeName)) {\n * hacknet.spendHashes(upgName);\n * }\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * const upgradeName = \"Sell for Corporation Funds\";\n * if (ns.hacknet.numHashes() > ns.hacknet.hashCost(upgradeName)) {\n * ns.hacknet.spendHashes(upgName);\n * }\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hashCost(upgName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "upgName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "hashCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#maxNumNodes:member(1)", - "docComment": "/**\n * Get the maximum number of hacknet nodes.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @returns maximum number of hacknet nodes.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "maxNumNodes(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "maxNumNodes" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#numHashes:member(1)", - "docComment": "/**\n * Get the total number of hashes stored.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Returns the number of hashes you have.\n *\n * @returns Number of hashes you have.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "numHashes(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "numHashes" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#numNodes:member(1)", - "docComment": "/**\n * Get the number of hacknet nodes you own.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Returns the number of Hacknet Nodes you own.\n *\n * @returns number of hacknet nodes.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "numNodes(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "numNodes" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#purchaseNode:member(1)", - "docComment": "/**\n * Purchase a new hacknet node.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Purchases a new Hacknet Node. Returns a number with the index of the Hacknet Node. This index is equivalent to the number at the end of the Hacknet Node’s name (e.g The Hacknet Node named `hacknet-node-4` will have an index of 4).\n *\n * If the player cannot afford to purchase a new Hacknet Node then the function will return -1.\n *\n * @returns The index of the Hacknet Node or if the player cannot afford to purchase a new Hacknet Node the function will return -1.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "purchaseNode(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "purchaseNode" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#spendHashes:member(1)", - "docComment": "/**\n * Purchase a hash upgrade.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Spend the hashes generated by your Hacknet Servers on an upgrade. Returns a boolean value - true if the upgrade is successfully purchased, and false otherwise.\n *\n * The name of the upgrade must be an exact match. The `upgTarget` argument is used for upgrades such as `Reduce Minimum Security`, which applies to a specific server. In this case, the `upgTarget` argument must be the hostname of the server.\n *\n * @param upgName - Name of the upgrade of Hacknet Node.\n *\n * @param upgTarget - Object to which upgrade applies. Required for certain upgrades.\n *\n * @returns True if the upgrade is successfully purchased, and false otherwise..\n *\n * @example\n * ```ts\n * // NS1:\n * hacknet.spendHashes(\"Sell for Corporation Funds\");\n * hacknet.spendHashes(\"Increase Maximum Money\", \"foodnstuff\");\n * ```\n *\n * @example\n * ```ts\n * NS2:\n * ns.hacknet.spendHashes(\"Sell for Corporation Funds\");\n * ns.hacknet.spendHashes(\"Increase Maximum Money\", \"foodnstuff\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "spendHashes(upgName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", upgTarget?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "upgName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "upgTarget", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "spendHashes" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#upgradeCache:member(1)", - "docComment": "/**\n * Upgrade the cache of a hacknet node.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).\n *\n * Tries to upgrade the specified Hacknet Server’s cache n times.\n *\n * Returns true if it successfully upgrades the Server’s cache n times, or if it purchases some positive amount and the Server reaches its max cache level.\n *\n * Returns false otherwise.\n *\n * @param index - Index/Identifier of Hacknet Node.\n *\n * @param n - Number of cache levels to purchase. Must be positive. Rounded to nearest integer.\n *\n * @returns True if the Hacknet Node’s cores are successfully purchased, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "upgradeCache(index: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", n: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "index", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "n", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "upgradeCache" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#upgradeCore:member(1)", - "docComment": "/**\n * Upgrade the core of a hacknet node.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Tries to purchase n cores for the specified Hacknet Node.\n *\n * Returns true if it successfully purchases n cores for the Hacknet Node or if it purchases some positive amount and the Node reaches its max number of cores.\n *\n * Returns false otherwise.\n *\n * @param index - Index/Identifier of Hacknet Node.\n *\n * @param n - Number of cores to purchase. Must be positive. Rounded to nearest integer.\n *\n * @returns True if the Hacknet Node’s cores are successfully purchased, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "upgradeCore(index: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", n: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "index", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "n", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "upgradeCore" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#upgradeLevel:member(1)", - "docComment": "/**\n * Upgrade the level of a hacknet node.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Tries to upgrade the level of the specified Hacknet Node by n.\n *\n * Returns true if the Hacknet Node’s level is successfully upgraded by n or if it is upgraded by some positive amount and the Node reaches its max level.\n *\n * Returns false otherwise.\n *\n * @param index - Index/Identifier of Hacknet Node.\n *\n * @param n - Number of levels to purchase. Must be positive. Rounded to nearest integer.\n *\n * @returns True if the Hacknet Node’s level is successfully upgraded, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "upgradeLevel(index: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", n: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "index", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "n", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "upgradeLevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Hacknet#upgradeRam:member(1)", - "docComment": "/**\n * Upgrade the RAM of a hacknet node.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Tries to upgrade the specified Hacknet Node’s RAM n times. Note that each upgrade doubles the Node’s RAM. So this is equivalent to multiplying the Node’s RAM by 2 n.\n *\n * Returns true if the Hacknet Node’s RAM is successfully upgraded n times or if it is upgraded some positive number of times and the Node reaches it max RAM.\n *\n * Returns false otherwise.\n *\n * @param index - Index/Identifier of Hacknet Node.\n *\n * @param n - Number of times to upgrade RAM. Must be positive. Rounded to nearest integer.\n *\n * @returns True if the Hacknet Node’s ram is successfully upgraded, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "upgradeRam(index: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", n: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "index", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "n", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "upgradeRam" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!HacknetMultipliers:interface", - "docComment": "/**\n * Hacknet related multipliers.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface HacknetMultipliers " - } - ], - "releaseTag": "Public", - "name": "HacknetMultipliers", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetMultipliers#coreCost:member", - "docComment": "/**\n * Player's hacknet core cost multiplier\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "coreCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "coreCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetMultipliers#levelCost:member", - "docComment": "/**\n * Player's hacknet level cost multiplier\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "levelCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "levelCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetMultipliers#production:member", - "docComment": "/**\n * Player's hacknet production multiplier\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "production: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "production", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetMultipliers#purchaseCost:member", - "docComment": "/**\n * Player's hacknet purchase cost multiplier\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "purchaseCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "purchaseCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetMultipliers#ramCost:member", - "docComment": "/**\n * Player's hacknet ram cost multiplier\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ramCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ramCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!HacknetNodeConstants:interface", - "docComment": "/**\n * Hacknet node related constants\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface HacknetNodeConstants " - } - ], - "releaseTag": "Public", - "name": "HacknetNodeConstants", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetNodeConstants#BaseCost:member", - "docComment": "/**\n * Base cost for a new node\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "BaseCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "BaseCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetNodeConstants#CoreBaseCost:member", - "docComment": "/**\n * Base cost to increase cores\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "CoreBaseCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "CoreBaseCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetNodeConstants#LevelBaseCost:member", - "docComment": "/**\n * Base cost per level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "LevelBaseCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "LevelBaseCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetNodeConstants#MaxCores:member", - "docComment": "/**\n * Max number of cores\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "MaxCores: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "MaxCores", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetNodeConstants#MaxLevel:member", - "docComment": "/**\n * Max node level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "MaxLevel: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "MaxLevel", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetNodeConstants#MaxRam:member", - "docComment": "/**\n * Max amount of RAM in GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "MaxRam: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "MaxRam", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetNodeConstants#MoneyGainPerLevel:member", - "docComment": "/**\n * Amount of money gained per level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "MoneyGainPerLevel: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "MoneyGainPerLevel", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetNodeConstants#PurchaseNextMult:member", - "docComment": "/**\n * Multiplier to purchase new node\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "PurchaseNextMult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "PurchaseNextMult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetNodeConstants#RamBaseCost:member", - "docComment": "/**\n * Base cost to incrase RAM\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "RamBaseCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "RamBaseCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetNodeConstants#UpgradeCoreMult:member", - "docComment": "/**\n * Multiplier to increase cores\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "UpgradeCoreMult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "UpgradeCoreMult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetNodeConstants#UpgradeLevelMult:member", - "docComment": "/**\n * Multiplier to increase node level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "UpgradeLevelMult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "UpgradeLevelMult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetNodeConstants#UpgradeRamMult:member", - "docComment": "/**\n * Multiplier to increase RAM\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "UpgradeRamMult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "UpgradeRamMult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!HacknetNodesFormulas:interface", - "docComment": "/**\n * Hacknet Node formulas\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface HacknetNodesFormulas " - } - ], - "releaseTag": "Public", - "name": "HacknetNodesFormulas", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetNodesFormulas#constants:member(1)", - "docComment": "/**\n * All constants used by the game.\n *\n * @returns An object with all hacknet node constants used by the game.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "constants(): " - }, - { - "kind": "Reference", - "text": "HacknetNodeConstants", - "canonicalReference": "bitburner!HacknetNodeConstants:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "constants" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetNodesFormulas#coreUpgradeCost:member(1)", - "docComment": "/**\n * Calculate cost of upgrading hacknet node cores.\n *\n * @param startingCore - starting cores\n *\n * @param extraCores - amount of cores to purchase (defaults to 1)\n *\n * @param costMult - player cost reduction (default to 1)\n *\n * @returns The calculated cost.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "coreUpgradeCost(startingCore: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", extraCores?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", costMult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "startingCore", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "extraCores", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "costMult", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "coreUpgradeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetNodesFormulas#hacknetNodeCost:member(1)", - "docComment": "/**\n * Calculate the cost of a hacknet node.\n *\n * @param n - number of the hacknet node\n *\n * @param mult - player cost reduction (defaults to 1)\n *\n * @returns The calculated cost.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknetNodeCost(n: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "n", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "mult", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "hacknetNodeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetNodesFormulas#levelUpgradeCost:member(1)", - "docComment": "/**\n * Calculate cost of upgrading hacknet node level.\n *\n * @param startingLevel - starting level\n *\n * @param extraLevels - amount of level to purchase (defaults to 1)\n *\n * @param costMult - player cost reduction (default to 1)\n *\n * @returns The calculated cost.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "levelUpgradeCost(startingLevel: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", extraLevels?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", costMult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "startingLevel", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "extraLevels", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "costMult", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "levelUpgradeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetNodesFormulas#moneyGainRate:member(1)", - "docComment": "/**\n * Calculate money gain rate.\n *\n * @param level - level of the node.\n *\n * @param ram - ram of the node.\n *\n * @param cores - cores of the node.\n *\n * @param mult - player production mult (default to 1)\n *\n * @returns The calculated money gain rate.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "moneyGainRate(level: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", ram: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", cores: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "level", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "ram", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "cores", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "mult", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - } - ], - "name": "moneyGainRate" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetNodesFormulas#ramUpgradeCost:member(1)", - "docComment": "/**\n * Calculate cost of upgrading hacknet node ram.\n *\n * @param startingRam - starting ram\n *\n * @param extraLevels - amount of level of ram to purchase (defaults to 1)\n *\n * @param costMult - player cost reduction (default to 1)\n *\n * @returns The calculated cost.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ramUpgradeCost(startingRam: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", extraLevels?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", costMult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "startingRam", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "extraLevels", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "costMult", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "ramUpgradeCost" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!HacknetServerConstants:interface", - "docComment": "/**\n * Hacknet server related constants\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface HacknetServerConstants " - } - ], - "releaseTag": "Public", - "name": "HacknetServerConstants", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#BaseCost:member", - "docComment": "/**\n * Base cost for a new server\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "BaseCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "BaseCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#CacheBaseCost:member", - "docComment": "/**\n * Base cost to upgrade cache\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "CacheBaseCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "CacheBaseCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#CoreBaseCost:member", - "docComment": "/**\n * Base cost to increase cores\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "CoreBaseCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "CoreBaseCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#HashesPerLevel:member", - "docComment": "/**\n * Number of hashes calculated per level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "HashesPerLevel: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "HashesPerLevel", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#MaxCache:member", - "docComment": "/**\n * Max cache size\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "MaxCache: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "MaxCache", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#MaxCores:member", - "docComment": "/**\n * Max number of cores\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "MaxCores: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "MaxCores", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#MaxLevel:member", - "docComment": "/**\n * Max level for a server\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "MaxLevel: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "MaxLevel", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#MaxRam:member", - "docComment": "/**\n * Max amount of RAM in GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "MaxRam: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "MaxRam", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#MaxServers:member", - "docComment": "/**\n * Max number of servers\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "MaxServers: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "MaxServers", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#PurchaseMult:member", - "docComment": "/**\n * Multiplier to purchase a new server\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "PurchaseMult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "PurchaseMult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#RamBaseCost:member", - "docComment": "/**\n * Base cost to increase RAM\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "RamBaseCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "RamBaseCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#UpgradeCacheMult:member", - "docComment": "/**\n * Multiplier to upgrade cache\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "UpgradeCacheMult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "UpgradeCacheMult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#UpgradeCoreMult:member", - "docComment": "/**\n * Multiplier to increase cores\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "UpgradeCoreMult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "UpgradeCoreMult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#UpgradeLevelMult:member", - "docComment": "/**\n * Multiplier to increase server level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "UpgradeLevelMult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "UpgradeLevelMult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!HacknetServerConstants#UpgradeRamMult:member", - "docComment": "/**\n * Multiplier to increase RAM\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "UpgradeRamMult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "UpgradeRamMult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!HacknetServersFormulas:interface", - "docComment": "/**\n * Hacknet Server formulas\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface HacknetServersFormulas " - } - ], - "releaseTag": "Public", - "name": "HacknetServersFormulas", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetServersFormulas#cacheUpgradeCost:member(1)", - "docComment": "/**\n * Calculate cost of upgrading hacknet server cache.\n *\n * @param startingCache - starting cache level\n *\n * @param extraCache - amount of levels of cache to purchase (defaults to 1)\n *\n * @returns The calculated cost.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "cacheUpgradeCost(startingCache: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", extraCache?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "startingCache", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "extraCache", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "cacheUpgradeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetServersFormulas#constants:member(1)", - "docComment": "/**\n * All constants used by the game.\n *\n * @returns An object with all hacknet server constants used by the game.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "constants(): " - }, - { - "kind": "Reference", - "text": "HacknetServerConstants", - "canonicalReference": "bitburner!HacknetServerConstants:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "constants" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetServersFormulas#coreUpgradeCost:member(1)", - "docComment": "/**\n * Calculate cost of upgrading hacknet server cores.\n *\n * @param startingCore - starting cores\n *\n * @param extraCores - amount of cores to purchase (defaults to 1)\n *\n * @param costMult - player cost reduction (default to 1)\n *\n * @returns The calculated cost.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "coreUpgradeCost(startingCore: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", extraCores?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", costMult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "startingCore", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "extraCores", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "costMult", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "coreUpgradeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetServersFormulas#hacknetServerCost:member(1)", - "docComment": "/**\n * Calculate the cost of a hacknet server.\n *\n * @param n - number of the hacknet server\n *\n * @param mult - player cost reduction (defaults to 1)\n *\n * @returns The calculated cost.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknetServerCost(n: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "n", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "mult", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "hacknetServerCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetServersFormulas#hashGainRate:member(1)", - "docComment": "/**\n * Calculate hash gain rate.\n *\n * @param level - level of the server.\n *\n * @param ramUsed - ramUsed of the server.\n *\n * @param maxRam - maxRam of the server.\n *\n * @param cores - cores of the server.\n *\n * @param mult - player production mult (default to 1)\n *\n * @returns The calculated hash gain rate.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hashGainRate(level: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", ramUsed: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", maxRam: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", cores: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", mult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 11, - "endIndex": 12 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "level", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "ramUsed", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "maxRam", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "cores", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - }, - { - "parameterName": "mult", - "parameterTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - } - } - ], - "name": "hashGainRate" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetServersFormulas#hashUpgradeCost:member(1)", - "docComment": "/**\n * Calculate hash cost of an upgrade.\n *\n * @param upgName - name of the upgrade\n *\n * @param level - level of the upgrade\n *\n * @returns The calculated hash cost.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hashUpgradeCost(upgName: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", level: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "upgName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "level", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "hashUpgradeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetServersFormulas#levelUpgradeCost:member(1)", - "docComment": "/**\n * Calculate cost of upgrading hacknet server level.\n *\n * @param startingLevel - starting level\n *\n * @param extraLevels - amount of level to purchase (defaults to 1)\n *\n * @param costMult - player cost reduction (default to 1)\n *\n * @returns The calculated cost.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "levelUpgradeCost(startingLevel: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", extraLevels?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", costMult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "startingLevel", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "extraLevels", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "costMult", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "levelUpgradeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!HacknetServersFormulas#ramUpgradeCost:member(1)", - "docComment": "/**\n * Calculate cost of upgrading hacknet server ram.\n *\n * @param startingRam - starting ram\n *\n * @param extraLevels - amount of level of ram to purchase (defaults to 1)\n *\n * @param costMult - player cost reduction (default to 1)\n *\n * @returns The calculated cost.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ramUpgradeCost(startingRam: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", extraLevels?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", costMult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "startingRam", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "extraLevels", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "costMult", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "ramUpgradeCost" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!InvestmentOffer:interface", - "docComment": "/**\n * Corporation investment offer\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface InvestmentOffer " - } - ], - "releaseTag": "Public", - "name": "InvestmentOffer", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!InvestmentOffer#funds:member", - "docComment": "/**\n * Amount of funds you will get from this investment\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "funds: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "funds", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!InvestmentOffer#round:member", - "docComment": "/**\n * Current round of funding (max 4)\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "round: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "round", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!InvestmentOffer#shares:member", - "docComment": "/**\n * Amount of share you will give in exchange for this investment\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "shares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "shares", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Material:interface", - "docComment": "/**\n * Material in a warehouse\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface Material " - } - ], - "releaseTag": "Public", - "name": "Material", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Material#name:member", - "docComment": "/**\n * Name of the material\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Material#prod:member", - "docComment": "/**\n * Amount of material produced\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "prod: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "prod", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Material#qlt:member", - "docComment": "/**\n * Quality of the material\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "qlt: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "qlt", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Material#qty:member", - "docComment": "/**\n * Amount of material\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "qty: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "qty", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Material#sell:member", - "docComment": "/**\n * Amount of material sold\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sell: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "sell", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!NetscriptPort:interface", - "docComment": "/**\n * Object representing a port. A port is a serialized queue.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface NetscriptPort " - } - ], - "releaseTag": "Public", - "name": "NetscriptPort", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NetscriptPort#clear:member(1)", - "docComment": "/**\n * Empties all data from the port.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "clear(): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "clear" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NetscriptPort#empty:member(1)", - "docComment": "/**\n * Check if the port is empty.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @returns true if the port is empty, otherwise false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "empty(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "empty" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NetscriptPort#full:member(1)", - "docComment": "/**\n * Check if the port is full.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @returns true if the port is full, otherwise false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "full(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "full" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NetscriptPort#peek:member(1)", - "docComment": "/**\n * Retrieve the first element from the port without removing it.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function is used to peek at the data from a port. It returns the first element in the specified port without removing that element. If the port is empty, the string “NULL PORT DATA” will be returned.\n *\n * @returns the data read\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "peek(): " - }, - { - "kind": "Content", - "text": "string | number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "peek" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NetscriptPort#read:member(1)", - "docComment": "/**\n * Shift an element out of the port.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function will remove the first element from the port and return it. If the port is empty, then the string “NULL PORT DATA” will be returned.\n *\n * @returns the data read.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "read(): " - }, - { - "kind": "Content", - "text": "string | number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "read" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NetscriptPort#tryWrite:member(1)", - "docComment": "/**\n * Attempt to write data to the port.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @returns True if the data was added to the port, false if the port was full\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "tryWrite(value: " - }, - { - "kind": "Content", - "text": "string | number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "value", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "tryWrite" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NetscriptPort#write:member(1)", - "docComment": "/**\n * Write data to a port.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @returns The data popped off the queue if it was full.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "write(value: " - }, - { - "kind": "Content", - "text": "string | number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "null | string | number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "value", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "write" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!NodeStats:interface", - "docComment": "/**\n * Object representing all the values related to a hacknet node.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface NodeStats " - } - ], - "releaseTag": "Public", - "name": "NodeStats", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NodeStats#cache:member", - "docComment": "/**\n * Cache level. Only applicable for Hacknet Servers\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "cache: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cache", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NodeStats#cores:member", - "docComment": "/**\n * Node's number of cores\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "cores: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cores", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NodeStats#hashCapacity:member", - "docComment": "/**\n * Hash Capacity provided by this Node. Only applicable for Hacknet Servers\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hashCapacity: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hashCapacity", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NodeStats#level:member", - "docComment": "/**\n * Node's level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "level: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "level", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NodeStats#name:member", - "docComment": "/**\n * Node's name\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NodeStats#production:member", - "docComment": "/**\n * Node's production per second\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "production: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "production", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NodeStats#ram:member", - "docComment": "/**\n * Node's RAM (GB)\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ram: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ram", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NodeStats#ramUsed:member", - "docComment": "/**\n * Node's used RAM (GB)\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ramUsed: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ramUsed", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NodeStats#timeOnline:member", - "docComment": "/**\n * Number of seconds since Node has been purchased\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "timeOnline: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "timeOnline", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NodeStats#totalProduction:member", - "docComment": "/**\n * Total number of money Node has produced\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "totalProduction: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "totalProduction", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!NS:interface", - "docComment": "/**\n * Collection of all functions passed to scripts\n *\n * @remarks\n *\n * Basic ns1 usage example:\n * ```ts\n * // Basic ns functions can be used directly\n * getHostname();\n * // Some related functions are gathered within a common namespace\n * stock.getPrice();\n * ```\n *\n * {@link https://bitburner.readthedocs.io/en/latest/netscript/netscript1.html | ns1 in-game docs}
Basic ns2 usage example:\n * ```ts\n * export async function main(ns) {\n * // Basic ns functions can be accessed on the ns object\n * ns.getHostname();\n * // Some related functions are gathered under a sub-property of the ns object\n * ns.stock.getPrice();\n * // Some functions need to be await ed\n * await ns.hack('n00dles');\n * }\n * ```\n *\n * {@link https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html | ns2 in-game docs}
\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface NS extends " - }, - { - "kind": "Reference", - "text": "Singularity", - "canonicalReference": "bitburner!Singularity:interface" - }, - { - "kind": "Content", - "text": " " - } - ], - "releaseTag": "Public", - "name": "NS", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#alert:member(1)", - "docComment": "/**\n * Open up a message box.\n *\n * @param msg - Message to alert.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "alert(msg: " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "msg", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "alert" - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NS#args:member", - "docComment": "/**\n * Arguments passed into the script.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Arguments passed into a script can be accessed using a normal array using the [] operator (args[0], args[1], etc…).\n *\n * It is also possible to get the number of arguments that was passed into a script using: 'args.length' WARNING: Do not try to modify the args array. This will break the game.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly args: " - }, - { - "kind": "Content", - "text": "(string | number | boolean)[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "args", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#asleep:member(1)", - "docComment": "/**\n * Suspends the script for n milliseconds. Doesn't block with concurrent calls.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @param millis - Number of milliseconds to sleep.\n *\n * @returns \n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "asleep(millis: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "millis", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "asleep" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#atExit:member(1)", - "docComment": "/**\n * Add callback function when the script dies\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * NS2 exclusive\n *\n * Add callback to be executed when the script dies.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "atExit(f: " - }, - { - "kind": "Content", - "text": "() => void" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "f", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "atExit" - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NS#bladeburner:member", - "docComment": "/**\n * Namespace for bladeburner functions.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly bladeburner: " - }, - { - "kind": "Reference", - "text": "Bladeburner", - "canonicalReference": "bitburner!Bladeburner:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "bladeburner", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#brutessh:member(1)", - "docComment": "/**\n * Runs BruteSSH.exe on a server.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * Runs the BruteSSH.exe program on the target server. BruteSSH.exe must exist on your home computer.\n *\n * @param host - Hostname of the target server.\n *\n * @example\n * ```ts\n * // NS1:\n * brutessh(\"foodnstuff\");\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * ns.brutessh(\"foodnstuff\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "brutessh(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "brutessh" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#clear:member(1)", - "docComment": "/**\n * Clear data from a file.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Delete all data from that text file.\n *\n * @param handle - Text file to clear.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "clear(handle: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "handle", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "clear" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#clearLog:member(1)", - "docComment": "/**\n * Clears the script’s logs.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "clearLog(): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "clearLog" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#clearPort:member(1)", - "docComment": "/**\n * Clear data from a port.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Deleta all data from the underlying queue.\n *\n * @param handle - Port to clear.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "clearPort(handle: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "handle", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "clearPort" - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NS#codingcontract:member", - "docComment": "/**\n * Namespace for codingcontract functions.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly codingcontract: " - }, - { - "kind": "Reference", - "text": "CodingContract", - "canonicalReference": "bitburner!CodingContract:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "codingcontract", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NS#corporation:member", - "docComment": "/**\n * Namespace for corporation functions. RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly corporation: " - }, - { - "kind": "Reference", - "text": "Corporation", - "canonicalReference": "bitburner!Corporation:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "corporation", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#deleteServer:member(1)", - "docComment": "/**\n * Delete a purchased server.\n *\n * @remarks\n *\n * 2.25 GB\n *\n * Deletes one of your purchased servers, which is specified by its hostname.\n *\n * The hostname argument can be any data type, but it will be converted to a string. Whitespace is automatically removed from the string. This function will not delete a server that still has scripts running on it.\n *\n * @param host - Host of the server to delete.\n *\n * @returns True if successful, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "deleteServer(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "deleteServer" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#disableLog:member(1)", - "docComment": "/**\n * Disables logging for the given function.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Logging can be disabled for all functions by passing `ALL` as the argument.\n *\n * Note that this does not completely remove all logging functionality. This only stops a function from logging when the function is successful. If the function fails, it will still log the reason for failure.\n *\n * @param fn - Name of function for which to disable logging.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "disableLog(fn: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "fn", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "disableLog" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#enableLog:member(1)", - "docComment": "/**\n * Enable logging for a certain function.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Re-enables logging for the given function. If `ALL` is passed into this function as an argument, then it will revert the effects of disableLog(`ALL`).\n *\n * @param fn - Name of function for which to enable logging.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "enableLog(fn: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "fn", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "enableLog" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#exec:member(1)", - "docComment": "/**\n * Start another script on any server.\n *\n * @remarks\n *\n * RAM cost: 1.3 GB\n *\n * Run a script as a separate process on a specified server. This is similar to the run function except that it can be used to run a script on any server, instead of just the current server.\n *\n * If the script was successfully started, then this functions returns the PID of that script. Otherwise, it returns 0.\n *\n * PID stands for Process ID. The PID is a unique identifier for each script. The PID will always be a positive integer.\n *\n * Running this function with a numThreads argument of 0 will return 0 without running the script. However, running this function with a negative numThreads argument will cause a runtime error.\n *\n * @param script - Filename of script to execute.\n *\n * @param host - Hostname of the `target server` on which to execute the script.\n *\n * @param numThreads - Optional thread count for new script. Set to 1 by default. Will be rounded to nearest integer.\n *\n * @param args - Additional arguments to pass into the new script that is being run. Note that if any arguments are being passed into the new script, then the third argument numThreads must be filled in with a value.\n *\n * @returns Returns the PID of a successfully started script, and 0 otherwise.\n *\n * @example\n * ```ts\n * // NS1:\n * //The simplest way to use the exec command is to call it with just the script name and the target server. The following example will try to run generic-hack.script on the foodnstuff server:\n * exec(\"generic-hack.script\", \"foodnstuff\");\n *\n * //The following example will try to run the script generic-hack.script on the joesguns server with 10 threads:\n * exec(\"generic-hack.script\", \"joesguns\", 10);\n *\n * //This last example will try to run the script foo.script on the foodnstuff server with 5 threads. It will also pass the number 1 and the string “test” in as arguments to the script:\n * exec(\"foo.script\", \"foodnstuff\", 5, 1, \"test\");\n * ```\n *\n * *\n *\n * @example\n * ```ts\n * // NS2:\n * //The simplest way to use the exec command is to call it with just the script name and the target server. The following example will try to run generic-hack.script on the foodnstuff server:\n * ns.exec(\"generic-hack.script\", \"foodnstuff\");\n *\n * //The following example will try to run the script generic-hack.script on the joesguns server with 10 threads:\n * ns.exec(\"generic-hack.script\", \"joesguns\", 10);\n *\n * //This last example will try to run the script foo.script on the foodnstuff server with 5 threads. It will also pass the number 1 and the string “test” in as arguments to the script:\n * ns.exec(\"foo.script\", \"foodnstuff\", 5, 1, \"test\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "exec(script: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", numThreads?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", ...args: " - }, - { - "kind": "Reference", - "text": "Array", - "canonicalReference": "!Array:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 10, - "endIndex": 11 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "script", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "numThreads", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 9 - } - } - ], - "name": "exec" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#exit:member(1)", - "docComment": "/**\n * Terminates the current script immediately.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "exit(): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "exit" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#fileExists:member(1)", - "docComment": "/**\n * Check if a file exists.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * Returns a boolean indicating whether the specified file exists on the target server. The filename for scripts is case-sensitive, but for other types of files it is not. For example, fileExists(“brutessh.exe”) will work fine, even though the actual program is named 'BruteSSH.exe'.\n *\n * If the hostname/ip argument is omitted, then the function will search through the current server (the server running the script that calls this function) for the file.\n *\n * @param filename - Filename of file to check.\n *\n * @param host - Host of target server. This is optional. If it is not specified then the function will use the current server as the target server.\n *\n * @returns True if specified file exists, and false otherwise.\n *\n * @example\n * ```ts\n * // NS1:\n * //The function call will return true if the script named foo.script exists on the foodnstuff server, and false otherwise.\n * fileExists(\"foo.script\", \"foodnstuff\");\n *\n * //The function call will return true if the current server contains the FTPCrack.exe program, and false otherwise.\n * fileExists(\"ftpcrack.exe\");\n * ```\n *\n * *\n *\n * @example\n * ```ts\n * // NS2:\n * // The function call will return true if the script named foo.script exists on the foodnstuff server, and false otherwise.\n * ns.fileExists(\"foo.script\", \"foodnstuff\");\n *\n * // The function call will return true if the current server contains the FTPCrack.exe program, and false otherwise.\n * ns.fileExists(\"ftpcrack.exe\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "fileExists(filename: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "filename", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "fileExists" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#flags:member(1)", - "docComment": "/**\n * Parse command line flags.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Allows unix like flag parsing.\n *\n * @example\n * ```ts\n * // example.script\n * var data = flags([\n * ['delay', 0], // a default number means this flag is a number\n * ['server', 'foodnstuff'], // a default string means this flag is a string\n * ['exclude', []], // a default array means this flag is a default array of string\n * ['help', false], // a default boolean means this flag is a boolean\n * ]);\n * tprint(data);\n *\n * // example.ns\n * export async function main(ns) {\n * const data = ns.flags([\n * ['delay', 0], // a default number means this flag is a number\n * ['server', 'foodnstuff'], // a default string means this flag is a string\n * ['exclude', []], // a default array means this flag is a default array of string\n * ['help', false], // a default boolean means this flag is a boolean\n * ]);\n * ns.tprint(data);\n * }\n *\n * // [home ~/]> run example.script\n * // {\"_\":[],\"delay\":0,\"server\":\"foodnstuff\",\"exclude\":[],\"help\":false}\n * // [home ~/]> run example.script --delay 3000\n * // {\"_\":[],\"server\":\"foodnstuff\",\"exclude\":[],\"help\":false,\"delay\":3000}\n * // [home ~/]> run example.script --delay 3000 --server harakiri-sushi\n * // {\"_\":[],\"exclude\":[],\"help\":false,\"delay\":3000,\"server\":\"harakiri-sushi\"}\n * // [home ~/]> run example.script --delay 3000 --server harakiri-sushi hello world\n * // {\"_\":[\"hello\",\"world\"],\"exclude\":[],\"help\":false,\"delay\":3000,\"server\":\"harakiri-sushi\"}\n * // [home ~/]> run example.script --delay 3000 --server harakiri-sushi hello world --exclude a --exclude b\n * // {\"_\":[\"hello\",\"world\"],\"help\":false,\"delay\":3000,\"server\":\"harakiri-sushi\",\"exclude\":[\"a\",\"b\"]}\n * // [home ~/]> run example.script --help\n * // {\"_\":[],\"delay\":0,\"server\":\"foodnstuff\",\"exclude\":[],\"help\":true}\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "flags(schema: " - }, - { - "kind": "Content", - "text": "[string, string | number | boolean | string[]][]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "schema", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "flags" - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NS#formulas:member", - "docComment": "/**\n * Namespace for formulas functions.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly formulas: " - }, - { - "kind": "Reference", - "text": "Formulas", - "canonicalReference": "bitburner!Formulas:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "formulas", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#ftpcrack:member(1)", - "docComment": "/**\n * Runs FTPCrack.exe on a server.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * Runs the FTPCrack.exe program on the target server. FTPCrack.exe must exist on your home computer.\n *\n * @param host - Hostname of the target server.\n *\n * @example\n * ```ts\n * // NS1:\n * ftpcrack(\"foodnstuff\");\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * ns.ftpcrack(\"foodnstuff\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ftpcrack(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "ftpcrack" - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NS#gang:member", - "docComment": "/**\n * Namespace for gang functions.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly gang: " - }, - { - "kind": "Reference", - "text": "Gang", - "canonicalReference": "bitburner!Gang:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "gang", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getBitNodeMultipliers:member(1)", - "docComment": "/**\n * Get the current Bitnode multipliers.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns an object containing the current BitNode multipliers. This function requires you to be in Bitnode 5 or have Source-File 5 in order to run. The multipliers are returned in decimal forms (e.g. 1.5 instead of 150%). The multipliers represent the difference between the current BitNode and the original BitNode (BitNode-1).\n *\n * For example, if the CrimeMoney multiplier has a value of 0.1, then that means that committing crimes in the current BitNode will only give 10% of the money you would have received in BitNode-1.\n *\n * @returns Object containing the current BitNode multipliers.\n *\n * @example\n * ```ts\n * // NS1:\n * var mults = getBitNodeMultipliers();\n * print(mults.ServerMaxMoney);\n * print(mults.HackExpGain);\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * const {ServerMaxMoney, HackExpGain} = ns.getBitNodeMultipliers();\n * print(ServerMaxMoney);\n * print(HackExpGain);\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getBitNodeMultipliers(): " - }, - { - "kind": "Reference", - "text": "BitNodeMultipliers", - "canonicalReference": "bitburner!BitNodeMultipliers:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getBitNodeMultipliers" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getFavorToDonate:member(1)", - "docComment": "/**\n * Returns the amount of Faction favor required to be able to donate to a faction.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * @returns Amount of Faction favor required to be able to donate to a faction.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getFavorToDonate(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getFavorToDonate" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getGrowTime:member(1)", - "docComment": "/**\n * Get the execution time of a grow() call.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * Returns the amount of time in milliseconds it takes to execute the grow Netscript function on the target server. The function takes in an optional hackLvl parameter that can be specified to see what the grow time would be at different hacking levels. The required time is increased by the security level of the target server and decreased by the player's hacking level.\n *\n * @param host - Host of target server.\n *\n * @returns Returns the amount of time in milliseconds it takes to execute the grow Netscript function. Returns Infinity if called on a Hacknet Server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getGrowTime(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getGrowTime" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getHackingLevel:member(1)", - "docComment": "/**\n * Returns the player’s current hacking level.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * @returns Player’s current hacking level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getHackingLevel(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getHackingLevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getHackingMultipliers:member(1)", - "docComment": "/**\n * Get hacking related multipliers.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns an object containing the Player’s hacking related multipliers. These multipliers are returned in fractional forms, not percentages (e.g. 1.5 instead of 150%).\n *\n * @returns Object containing the Player’s hacking related multipliers.\n *\n * @example\n * ```ts\n * // NS1:\n * // Example of how this can be used:\n * var mults = getHackingMultipliers();\n * print(mults.chance);\n * print(mults.growth);\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * // Example of how this can be used:\n * const {chance, growth} = ns.getHackingMultipliers();\n * print(chance);\n * print(growth);\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getHackingMultipliers(): " - }, - { - "kind": "Reference", - "text": "HackingMultipliers", - "canonicalReference": "bitburner!HackingMultipliers:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getHackingMultipliers" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getHacknetMultipliers:member(1)", - "docComment": "/**\n * Get hacknet related multipliers.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Returns an object containing the Player’s hacknet related multipliers. These multipliers are returned in fractional forms, not percentages (e.g. 1.5 instead of 150%).\n *\n * @returns Object containing the Player’s hacknet related multipliers.\n *\n * @example\n * ```ts\n * // NS1:\n * // Example of how this can be used:\n * var mults = getHacknetMultipliers();\n * print(mults.production);\n * print(mults.purchaseCost);\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * // Example of how this can be used:\n * const {production, purchaseCost} = ns.getHacknetMultipliers();\n * print(production);\n * print(purchaseCost);\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getHacknetMultipliers(): " - }, - { - "kind": "Reference", - "text": "HacknetMultipliers", - "canonicalReference": "bitburner!HacknetMultipliers:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getHacknetMultipliers" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getHackTime:member(1)", - "docComment": "/**\n * Get the execution time of a hack() call.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB When `hack` completes an amount of money is stolen depending on the player's skills. Returns the amount of time in milliseconds it takes to execute the hack Netscript function on the target server. The function takes in an optional hackLvl parameter that can be specified to see what the hack time would be at different hacking levels. The required time is increased by the security level of the target server and decreased by the player's hacking level.\n *\n * @param host - Host of target server.\n *\n * @returns Returns the amount of time in milliseconds it takes to execute the hack Netscript function. Returns Infinity if called on a Hacknet Server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getHackTime(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getHackTime" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getHostname:member(1)", - "docComment": "/**\n * Returns a string with the hostname of the server that the script is running on.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * @returns Hostname of the server that the script is on.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getHostname(): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getHostname" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getOwnedSourceFiles:member(1)", - "docComment": "/**\n * Get a list of acquired Source-Files.\n *\n * @remarks\n *\n * RAM cost: 5 GB\n *\n * Returns an array of source files\n *\n * @returns Array containing an object with number and level of the source file.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getOwnedSourceFiles(): " - }, - { - "kind": "Reference", - "text": "SourceFileLvl", - "canonicalReference": "bitburner!SourceFileLvl:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getOwnedSourceFiles" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getPlayer:member(1)", - "docComment": "/**\n * Get information about the player.\n *\n * @remarks\n *\n * RAM cost: 0.5 GB\n *\n * Returns an object with information on the current player.\n *\n * @returns Player info\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getPlayer(): " - }, - { - "kind": "Reference", - "text": "Player", - "canonicalReference": "bitburner!Player:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getPlayer" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getPortHandle:member(1)", - "docComment": "/**\n * Get all data on a port.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Get a handle to a Netscript Port.\n *\n * WARNING: Port Handles only work in NetscriptJS (Netscript 2.0). They will not work in Netscript 1.0.\n *\n * @param port - Port number. Must be an integer between 1 and 20.\n *\n * @see\n *\n * https://bitburner.readthedocs.io/en/latest/netscript/netscriptmisc.html#netscript-ports\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getPortHandle(port: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "NetscriptPort", - "canonicalReference": "bitburner!NetscriptPort:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "port", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getPortHandle" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getPurchasedServerCost:member(1)", - "docComment": "/**\n * Get cost of purchasing a server.\n *\n * @remarks\n *\n * RAM cost: 0.25 GB\n *\n * Returns the cost to purchase a server with the specified amount of ram.\n *\n * @param ram - Amount of RAM of a potential purchased server, in GB. Must be a power of 2 (2, 4, 8, 16, etc.). Maximum value of 1048576 (2^20).\n *\n * @returns The cost to purchase a server with the specified amount of ram.\n *\n * @example\n * ```ts\n * // NS1:\n * for (i = 1; i <= 20; i++) {\n * tprint(i + \" -- \" + getPurchasedServerCost(Math.pow(2, i)));\n * }\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * for (i = 1; i <= 20; i++) {\n * ns.tprint(i + \" -- \" + ns.getPurchasedServerCost(Math.pow(2, i)));\n * }\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getPurchasedServerCost(ram: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "ram", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getPurchasedServerCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getPurchasedServerLimit:member(1)", - "docComment": "/**\n * Returns the maximum number of servers you can purchase.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * @returns Returns the maximum number of servers you can purchase.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getPurchasedServerLimit(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getPurchasedServerLimit" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getPurchasedServerMaxRam:member(1)", - "docComment": "/**\n * Returns the maximum RAM that a purchased server can have.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * @returns Returns the maximum RAM (in GB) that a purchased server can have.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getPurchasedServerMaxRam(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getPurchasedServerMaxRam" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getPurchasedServers:member(1)", - "docComment": "/**\n * Returns an array with the hostnames of all of the servers you have purchased.\n *\n * @remarks\n *\n * 2.25 GB\n *\n * @returns Returns an array with the hostnames of all of the servers you have purchased.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getPurchasedServers(): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getPurchasedServers" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getRunningScript:member(1)", - "docComment": "/**\n * Get general info about a running script.\n *\n * @remarks\n *\n * RAM cost: 0.3 GB\n *\n * Running with no args returns curent script. If you use a PID as the first parameter, the hostname and args parameters are unnecessary.\n *\n * @param filename - Optional. Filename or PID of the script.\n *\n * @param hostname - Optional. Name of host server the script is running on.\n *\n * @param args - Arguments to identify the script\n *\n * @returns info about a running script\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getRunningScript(filename?: " - }, - { - "kind": "Reference", - "text": "FilenameOrPID", - "canonicalReference": "bitburner!FilenameOrPID:type" - }, - { - "kind": "Content", - "text": ", hostname?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", ...args: " - }, - { - "kind": "Content", - "text": "(string | number)[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "RunningScript", - "canonicalReference": "bitburner!RunningScript:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "filename", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "hostname", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "getRunningScript" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getScriptExpGain:member(1)", - "docComment": "/**\n * Get the exp gain of a script.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * Returns the amount of hacking experience the specified script generates while online (when the game is open, does not apply for offline experience gains). Remember that a script is uniquely identified by both its name and its arguments.\n *\n * This function can also return the total experience gain rate of all of your active scripts by running the function with no arguments.\n *\n * @param script - Filename of script.\n *\n * @param host - Server on which script is running.\n *\n * @param args - Arguments that the script is running with.\n *\n * @returns Amount of hacking experience the specified script generates while online.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getScriptExpGain(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getScriptExpGain" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getScriptExpGain:member(2)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "getScriptExpGain(script: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", ...args: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 2, - "parameters": [ - { - "parameterName": "script", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "getScriptExpGain" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getScriptIncome:member(1)", - "docComment": "/**\n * Get the income of a script.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * Returns the amount of income the specified script generates while online (when the game is open, does not apply for offline income). Remember that a script is uniquely identified by both its name and its arguments. So for example if you ran a script with the arguments “foodnstuff” and “5” then in order to use this function to get that script’s income you must specify those same arguments in the same order in this function call.\n *\n * This function can also be called with no arguments. If called with no arguments, then this function will return an array of two values. The first value is the total income (dollar / second) of all of your active scripts (scripts that are currently running on any server). The second value is the total income (dollar / second) that you’ve earned from scripts since you last installed Augmentations.\n *\n * @param script - Filename of script.\n *\n * @param host - Server on which script is running.\n *\n * @param args - Arguments that the script is running with.\n *\n * @returns Amount of income the specified script generates while online.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getScriptIncome(): " - }, - { - "kind": "Content", - "text": "[number, number]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getScriptIncome" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getScriptIncome:member(2)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "getScriptIncome(script: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", ...args: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 2, - "parameters": [ - { - "parameterName": "script", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "getScriptIncome" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getScriptLogs:member(1)", - "docComment": "/**\n * Get all the logs of a script.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Returns a script’s logs. The logs are returned as an array, where each line is an element in the array. The most recently logged line is at the end of the array. Note that there is a maximum number of lines that a script stores in its logs. This is configurable in the game’s options. If the function is called with no arguments, it will return the current script’s logs.\n *\n * Otherwise, the fn, hostname/ip, and args… arguments can be used to get the logs from another script. Remember that scripts are uniquely identified by both their names and arguments.\n *\n * @param fn - Optional. Filename of script to get logs from.\n *\n * @param host - Optional. Hostname of the server that the script is on.\n *\n * @param args - Arguments to identify which scripts to get logs for.\n *\n * @returns Returns an string array, where each line is an element in the array. The most recently logged line is at the end of the array.\n *\n * @example\n * ```ts\n * // NS1:\n * //Get logs from foo.script on the current server that was run with no args\n * getScriptLogs(\"foo.script\");\n *\n * //Open logs from foo.script on the foodnstuff server that was run with no args\n * getScriptLogs(\"foo.script\", \"foodnstuff\");\n *\n * //Open logs from foo.script on the foodnstuff server that was run with the arguments [1, \"test\"]\n * getScriptLogs(\"foo.script\", \"foodnstuff\", 1, \"test\");\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * //Get logs from foo.script on the current server that was run with no args\n * ns.getScriptLogs(\"foo.script\");\n *\n * //Open logs from foo.script on the foodnstuff server that was run with no args\n * ns.getScriptLogs(\"foo.script\", \"foodnstuff\");\n *\n * //Open logs from foo.script on the foodnstuff server that was run with the arguments [1, \"test\"]\n * ns.getScriptLogs(\"foo.script\", \"foodnstuff\", 1, \"test\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getScriptLogs(fn?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", ...args: " - }, - { - "kind": "Content", - "text": "any[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "fn", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "getScriptLogs" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getScriptName:member(1)", - "docComment": "/**\n * Returns the current script name.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @returns Current script name.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getScriptName(): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getScriptName" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getScriptRam:member(1)", - "docComment": "/**\n * Get the ram cost of a script.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * Returns the amount of RAM required to run the specified script on the target server. Returns 0 if the script does not exist.\n *\n * @param script - Filename of script. This is case-sensitive.\n *\n * @param host - Host of target server the script is located on. This is optional, If it is not specified then the function will se the current server as the target server.\n *\n * @returns Amount of RAM (in GB) required to run the specified script on the target server, and 0 if the script does not exist.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getScriptRam(script: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "script", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getScriptRam" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getServer:member(1)", - "docComment": "/**\n * Returns a server object for the given server. Defaults to the running script's server if host is not specified.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * @param host - Optional. Hostname for the requested server object.\n *\n * @returns The requested server object.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getServer(host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Server", - "canonicalReference": "bitburner!Server:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getServer" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getServerBaseSecurityLevel:member(1)", - "docComment": "/**\n * @remarks\n *\n * RAM cost: 0.1 GB Returns the base security level of the target server. This is the security level that the server starts out with. This is different than getServerSecurityLevel because getServerSecurityLevel returns the current security level of a server, which can constantly change due to hack, grow, and weaken, calls on that server. The base security level will stay the same until you reset by installing an Augmentation(s).\n *\n * @deprecated\n *\n * useless\n *\n * @param host - Host of target server.\n *\n * @returns Base security level of the target server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getServerBaseSecurityLevel(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getServerBaseSecurityLevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getServerGrowth:member(1)", - "docComment": "/**\n * Get a server growth parameter.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * Returns the server’s intrinsic “growth parameter”. This growth parameter is a number typically between 0 and 100 that represents how quickly the server’s money grows. This parameter affects the percentage by which the server’s money is increased when using the grow function. A higher growth parameter will result in a higher percentage increase from grow.\n *\n * @param host - Host of target server.\n *\n * @returns Parameter that affects the percentage by which the server’s money is increased when using the grow function.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getServerGrowth(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getServerGrowth" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getServerMaxMoney:member(1)", - "docComment": "/**\n * Get maximum money available on a server.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * Returns the maximum amount of money that can be available on a server.\n *\n * @param host - Host of target server.\n *\n * @returns Maximum amount of money available on the server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getServerMaxMoney(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getServerMaxMoney" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getServerMaxRam:member(1)", - "docComment": "/**\n * Get the max RAM on a server.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * @param host - Hostname of the target server.\n *\n * @returns max ram (GB)\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getServerMaxRam(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getServerMaxRam" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getServerMinSecurityLevel:member(1)", - "docComment": "/**\n * Returns the minimum security level of the target server.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * @param host - Host of target server.\n *\n * @returns Minimum security level of the target server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getServerMinSecurityLevel(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getServerMinSecurityLevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getServerMoneyAvailable:member(1)", - "docComment": "/**\n * Get money available on a server.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * Returns the amount of money available on a server. Running this function on the home computer will return the player’s money.\n *\n * @param host - Host of target server\n *\n * @returns Amount of money available on the server.\n *\n * @example\n * ```ts\n * // NS1:\n * getServerMoneyAvailable(\"foodnstuff\");\n * getServerMoneyAvailable(\"home\"); //Returns player's money\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * ns.getServerMoneyAvailable(\"foodnstuff\");\n * ns.getServerMoneyAvailable(\"home\"); // Returns player's money\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getServerMoneyAvailable(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getServerMoneyAvailable" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getServerNumPortsRequired:member(1)", - "docComment": "/**\n * Returns the number of open ports required to successfully run NUKE.exe on the specified server.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * @param host - Host of target server.\n *\n * @returns The number of open ports required to successfully run NUKE.exe on the specified server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getServerNumPortsRequired(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getServerNumPortsRequired" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getServerRam:member(1)", - "docComment": "/**\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * 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).\n *\n * @deprecated\n *\n * use getServerMaxRam / getServerUsedRam\n *\n * @param host - Host of target server.\n *\n * @returns Array with total and used memory on the specified server, in GB.\n *\n * @example\n * ```ts\n * // NS1:\n * var serverRam = getServerRam(\"helios\");\n * var totalRam = serverRam[0];\n * var ramUsed = serverRam[1];\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * const [totalRam, ramUsed] = ns.getServerRam(\"helios\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getServerRam(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "[number, number]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getServerRam" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getServerRequiredHackingLevel:member(1)", - "docComment": "/**\n * Returns the required hacking level of the target server.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * @param host - Host of target server.\n *\n * @returns The required hacking level of the target server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getServerRequiredHackingLevel(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getServerRequiredHackingLevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getServerSecurityLevel:member(1)", - "docComment": "/**\n * Get server security level.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * Returns the security level of the target server. A server’s security level is denoted by a number, typically between 1 and 100 (but it can go above 100).\n *\n * @param host - Host of target server.\n *\n * @returns Security level of the target server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getServerSecurityLevel(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getServerSecurityLevel" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getServerUsedRam:member(1)", - "docComment": "/**\n * Get the used RAM on a server.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * @param host - Hostname of the target server.\n *\n * @returns used ram (GB)\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getServerUsedRam(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getServerUsedRam" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getSharePower:member(1)", - "docComment": "/**\n * Calculate your share power. Based on all the active share calls.\n *\n * @remarks\n *\n * RAM cost: 0.2 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSharePower(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getSharePower" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getTimeSinceLastAug:member(1)", - "docComment": "/**\n * Returns the amount of time in milliseconds that have passed since you last installed Augmentations.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * @returns Time in milliseconds that have passed since you last installed Augmentations.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getTimeSinceLastAug(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getTimeSinceLastAug" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#getWeakenTime:member(1)", - "docComment": "/**\n * Get the execution time of a weaken() call.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * Returns the amount of time in milliseconds it takes to execute the weaken Netscript function on the target server. The function takes in an optional hackLvl parameter that can be specified to see what the weaken time would be at different hacking levels. The required time is increased by the security level of the target server and decreased by the player's hacking level.\n *\n * @param host - Host of target server.\n *\n * @returns Returns the amount of time in milliseconds it takes to execute the weaken Netscript function. Returns Infinity if called on a Hacknet Server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getWeakenTime(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getWeakenTime" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#grow:member(1)", - "docComment": "/**\n * Spoof money in a servers bank account, increasing the amount available.\n *\n * @remarks\n *\n * RAM cost: 0.15 GB\n *\n * Use your hacking skills to increase the amount of money available on a server. The runtime for this command depends on your hacking level and the target server’s security level. When `grow` completes, the money available on a target server will be increased by a certain, fixed percentage. This percentage is determined by the target server’s growth rate (which varies between servers) and security level. Generally, higher-level servers have higher growth rates. The getServerGrowth() function can be used to obtain a server’s growth rate.\n *\n * Like hack, `grow` can be called on any server, regardless of where the script is running. The grow() command requires root access to the target server, but there is no required hacking level to run the command. It also raises the security level of the target server by 0.004.\n *\n * @param host - Hostname of the target server to grow.\n *\n * @param opts - Optional parameters for configuring function behavior.\n *\n * @returns The number by which the money on the server was multiplied for the growth.\n *\n * @example\n * ```ts\n * // NS1:\n * var availableMoney = getServerMoneyAvailable(\"foodnstuff\");\n * currentMoney = currentMoney * (1 + grow(\"foodnstuff\"));\n * currentMoney = currentMoney * (1 + grow(\"foodnstuff\", { threads: 5 })); // Only use 5 threads to grow\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * let availableMoney = ns.getServerMoneyAvailable(\"foodnstuff\");\n * currentMoney *= (1 + await ns.grow(\"foodnstuff\"));\n * currentMoney *= (1 + await ns.grow(\"foodnstuff\", { threads: 5 })); // Only use 5 threads to grow\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "grow(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", opts?: " - }, - { - "kind": "Reference", - "text": "BasicHGWOptions", - "canonicalReference": "bitburner!BasicHGWOptions:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "opts", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "grow" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#growthAnalyze:member(1)", - "docComment": "/**\n * Calculate the number of grow thread needed to grow a server by a certain multiplier.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * This function returns the number of “growths” needed in order to increase the amount of money available on the specified server by the specified amount. The specified amount is multiplicative and is in decimal form, not percentage.\n *\n * Warning: The value returned by this function isn’t necessarily a whole number.\n *\n * @param host - Hostname of the target server.\n *\n * @param growthAmount - Multiplicative factor by which the server is grown. Decimal form..\n *\n * @returns The amount of grow calls needed to grow the specified server by the specified amount\n *\n * @example\n * ```ts\n * // NS1:\n * //For example, if you want to determine how many grow calls you need to double the amount of money on foodnstuff, you would use:\n * var growTimes = growthAnalyze(\"foodnstuff\", 2);\n * //If this returns 100, then this means you need to call grow 100 times in order to double the money (or once with 100 threads).\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * //For example, if you want to determine how many grow calls you need to double the amount of money on foodnstuff, you would use:\n * const growTimes = ns.growthAnalyze(\"foodnstuff\", 2);\n * //If this returns 100, then this means you need to call grow 100 times in order to double the money (or once with 100 threads).\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "growthAnalyze(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", growthAmount: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", cores?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "growthAmount", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "cores", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "growthAnalyze" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#growthAnalyzeSecurity:member(1)", - "docComment": "/**\n * Calculate the security increase for a number of thread.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Returns the security increase that would occur if a grow with this many threads happened.\n *\n * @param threads - Amount of threads that will be used.\n *\n * @returns The security increase.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "growthAnalyzeSecurity(threads: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "threads", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "growthAnalyzeSecurity" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#hack:member(1)", - "docComment": "/**\n * Steal a servers money.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * Function that is used to try and hack servers to steal money and gain hacking experience. The runtime for this command depends on your hacking level and the target server’s security level when this function is called. In order to hack a server you must first gain root access to that server and also have the required hacking level.\n *\n * A script can hack a server from anywhere. It does not need to be running on the same server to hack that server. For example, you can create a script that hacks the `foodnstuff` server and run that script on any server in the game.\n *\n * A successful `hack()` on a server will raise that server’s security level by 0.002.\n *\n * @param host - Hostname of the target server to hack.\n *\n * @param opts - Optional parameters for configuring function behavior.\n *\n * @returns The amount of money stolen if the hack is successful, and zero otherwise.\n *\n * @example\n * ```ts\n * // NS1:\n * var earnedMoney = hack(\"foodnstuff\");\n * earnedMoney = earnedMoney + hack(\"foodnstuff\", { threads: 5 }); // Only use 5 threads to hack\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * let earnedMoney = await ns.hack(\"foodnstuff\");\n * earnedMoney += await ns.hack(\"foodnstuff\", { threads: 5 }); // Only use 5 threads to hack\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hack(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", opts?: " - }, - { - "kind": "Reference", - "text": "BasicHGWOptions", - "canonicalReference": "bitburner!BasicHGWOptions:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "opts", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "hack" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#hackAnalyze:member(1)", - "docComment": "/**\n * Get the part of money stolen with a single thread.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Returns the part of the specified server’s money you will steal with a single thread hack.\n *\n * @param host - Hostname of the target server.\n *\n * @returns The part of money you will steal from the target server with a single thread hack.\n *\n * @example\n * ```ts\n * // NS1:\n * //For example, assume the following returns 0.01:\n * var hackAmount = hackAnalyze(\"foodnstuff\");\n * //This means that if hack the foodnstuff server using a single thread, then you will steal 1%, or 0.01 of its total money. If you hack using N threads, then you will steal N*0.01 times its total money.\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * //For example, assume the following returns 0.01:\n * const hackAmount = ns.hackAnalyze(\"foodnstuff\");\n * //This means that if hack the foodnstuff server using a single thread, then you will steal 1%, or 0.01 of its total money. If you hack using N threads, then you will steal N*0.01 times its total money.\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hackAnalyze(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "hackAnalyze" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#hackAnalyzeChance:member(1)", - "docComment": "/**\n * Get the chance of successfully hacking a server.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Returns the chance you have of successfully hacking the specified server.\n *\n * This returned value is in decimal form, not percentage.\n *\n * @param host - Hostname of the target server.\n *\n * @returns The chance you have of successfully hacking the target server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hackAnalyzeChance(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "hackAnalyzeChance" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#hackAnalyzeSecurity:member(1)", - "docComment": "/**\n * Get the security increase for a number of thread.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Returns the security increase that would occur if a hack with this many threads happened.\n *\n * @param threads - Amount of threads that will be used.\n *\n * @returns The security increase.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hackAnalyzeSecurity(threads: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "threads", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "hackAnalyzeSecurity" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#hackAnalyzeThreads:member(1)", - "docComment": "/**\n * Predict the effect of hack.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * This function returns the number of script threads you need when running the hack command to steal the specified amount of money from the target server. If hackAmount is less than zero or greater than the amount of money available on the server, then this function returns -1.\n *\n * Warning: The value returned by this function isn’t necessarily a whole number.\n *\n * @param host - Hostname of the target server to analyze.\n *\n * @param hackAmount - Amount of money you want to hack from the server.\n *\n * @returns The number of threads needed to hack the server for hackAmount money.\n *\n * @example\n * ```ts\n * //For example, let’s say the foodnstuff server has $10m and you run:\n * hackAnalyzeThreads(\"foodnstuff\", 1e6);\n * //If this function returns 50, this means that if your next hack call is run on a script with 50 threads, it will steal $1m from the foodnstuff server.\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hackAnalyzeThreads(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", hackAmount: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "hackAmount", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "hackAnalyzeThreads" - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NS#hacknet:member", - "docComment": "/**\n * Namespace for hacknet functions.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly hacknet: " - }, - { - "kind": "Reference", - "text": "Hacknet", - "canonicalReference": "bitburner!Hacknet:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacknet", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#hasRootAccess:member(1)", - "docComment": "/**\n * Check if your have root access on a server.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * Returns a boolean indicating whether or not the player has root access to the specified target server.\n *\n * @param host - Host of the target server\n *\n * @returns True if player has root access to the specified target server, and false otherwise.\n *\n * @example\n * ```ts\n * // NS1:\n * if (hasRootAccess(\"foodnstuff\") == false) {\n * nuke(\"foodnstuff\");\n * }\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * if (ns.hasRootAccess(\"foodnstuff\") == false) {\n * ns.nuke(\"foodnstuff\");\n * }\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hasRootAccess(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "hasRootAccess" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#httpworm:member(1)", - "docComment": "/**\n * Runs HTTPWorm.exe on a server.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * Runs the HTTPWorm.exe program on the target server. HTTPWorm.exe must exist on your home computer.\n *\n * @param host - Hostname of the target server.\n *\n * @example\n * ```ts\n * // NS1:\n * httpworm(\"foodnstuff\");\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * ns.httpworm(\"foodnstuff\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "httpworm(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "httpworm" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#isLogEnabled:member(1)", - "docComment": "/**\n * Checks the status of the logging for the given function.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @param fn - Name of function to check.\n *\n * @returns Returns a boolean indicating whether or not logging is enabled for that function (or `ALL`)\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "isLogEnabled(fn: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "fn", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "isLogEnabled" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#isRunning:member(1)", - "docComment": "/**\n * Check if a script is running.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * Returns a boolean indicating whether the specified script is running on the target server. If you use a PID instead of a filename, the hostname and args parameters are unnecessary. Remember that a script is uniquely identified by both its name and its arguments.\n *\n * @param script - Filename or PID of script to check. This is case-sensitive.\n *\n * @param host - Host of target server.\n *\n * @param args - Arguments to specify/identify which scripts to search for.\n *\n * @returns True if specified script is running on the target server, and false otherwise.\n *\n * @example\n * ```ts\n * // NS1:\n * //The function call will return true if there is a script named foo.script with no arguments running on the foodnstuff server, and false otherwise:\n * isRunning(\"foo.script\", \"foodnstuff\");\n *\n * //The function call will return true if there is a script named foo.script with no arguments running on the current server, and false otherwise:\n * isRunning(\"foo.script\", getHostname());\n *\n * //The function call will return true if there is a script named foo.script running with the arguments 1, 5, and “test” (in that order) on the joesguns server, and false otherwise:\n * isRunning(\"foo.script\", \"joesguns\", 1, 5, \"test\");\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * //The function call will return true if there is a script named foo.script with no arguments running on the foodnstuff server, and false otherwise:\n * ns.isRunning(\"foo.script\", \"foodnstuff\");\n *\n * //The function call will return true if there is a script named foo.script with no arguments running on the current server, and false otherwise:\n * ns.isRunning(\"foo.script\", ns.getHostname());\n *\n * //The function call will return true if there is a script named foo.script running with the arguments 1, 5, and “test” (in that order) on the joesguns server, and false otherwise:\n * ns.isRunning(\"foo.script\", \"joesguns\", 1, 5, \"test\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "isRunning(script: " - }, - { - "kind": "Reference", - "text": "FilenameOrPID", - "canonicalReference": "bitburner!FilenameOrPID:type" - }, - { - "kind": "Content", - "text": ", host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", ...args: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "script", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "isRunning" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#kill:member(1)", - "docComment": "/**\n * Terminate another script.\n *\n * @remarks\n *\n * RAM cost: 0.5 GB\n *\n * Kills the script on the target server specified by the script’s name and arguments. Remember that scripts are uniquely identified by both their name and arguments. For example, if `foo.script` is run with the argument 1, then this is not the same as `foo.script` run with the argument 2, even though they have the same code.\n *\n * @param script - Filename or pid of the script to kill\n *\n * @param host - Hostname of the server on which to kill the script.\n *\n * @param args - Arguments to identify which script to kill.\n *\n * @returns True if the script is successfully killed, and false otherwise.\n *\n * @example\n * ```ts\n * // NS1:\n * //The following example will try to kill a script named foo.script on the foodnstuff server that was ran with no arguments:\n * kill(\"foo.script\", \"foodnstuff\");\n *\n * //The following will try to kill a script named foo.script on the current server that was ran with no arguments:\n * kill(\"foo.script\", getHostname());\n *\n * //The following will try to kill a script named foo.script on the current server that was ran with the arguments 1 and “foodnstuff”:\n * kill(\"foo.script\", getHostname(), 1, \"foodnstuff\");\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * //The following example will try to kill a script named foo.script on the foodnstuff server that was ran with no arguments:\n * ns.kill(\"foo.script\", \"foodnstuff\");\n *\n * //The following will try to kill a script named foo.script on the current server that was ran with no arguments:\n * ns.kill(\"foo.script\", getHostname());\n *\n * //The following will try to kill a script named foo.script on the current server that was ran with the arguments 1 and “foodnstuff”:\n * ns.kill(\"foo.script\", getHostname(), 1, \"foodnstuff\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "kill(script: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "script", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "kill" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#kill:member(2)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "kill(script: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", ...args: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 2, - "parameters": [ - { - "parameterName": "script", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "kill" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#killall:member(1)", - "docComment": "/**\n * Terminate all scripts on a server.\n *\n * @remarks\n *\n * RAM cost: 0.5 GB\n *\n * Kills all running scripts on the specified server. This function returns true if any scripts were killed, and false otherwise. In other words, it will return true if there are any scripts running on the target server. If no host is defined, it will kill all scripts, where the script is running.\n *\n * @param host - IP or hostname of the server on which to kill all scripts.\n *\n * @returns True if any scripts were killed, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "killall(host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "killall" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#ls:member(1)", - "docComment": "/**\n * List files on a server.\n *\n * @remarks\n *\n * RAM cost: 0.2 GB\n *\n * Returns an array with the filenames of all files on the specified server (as strings). The returned array is sorted in alphabetic order.\n *\n * @param host - Host of the target server.\n *\n * @param grep - A substring to search for in the filename.\n *\n * @returns Array with the filenames of all files on the specified server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ls(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", grep?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "grep", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "ls" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#mv:member(1)", - "docComment": "/**\n * Move a file on the target server.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * NS2 exclusive\n *\n * Move the source file to the specified destination on the target server.\n *\n * This command only works for scripts and text files (.txt). It cannot, however, be used to convert from script to text file, or vice versa.\n *\n * This function can also be used to rename files.\n *\n * @param host - Host of target server.\n *\n * @param source - Filename of the source file.\n *\n * @param destination - Filename of the destination file.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "mv(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", source: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", destination: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "source", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "destination", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "mv" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#nFormat:member(1)", - "docComment": "/**\n * Format a number\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Converts a number into a string with the specified formatter. This uses the numeraljs library, so the formatters must be compatible with that. This is the same function that the game itself uses to display numbers.\n *\n * see: http://numeraljs.com/\n *\n * @param n - Number to format.\n *\n * @param format - Formatter.\n *\n * @returns Formated number.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "nFormat(n: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", format: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "n", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "format", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "nFormat" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#nuke:member(1)", - "docComment": "/**\n * Runs NUKE.exe on a server.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * Running NUKE.exe on a target server gives you root access which means you can executes scripts on said server. NUKE.exe must exist on your home computer.\n *\n * @param host - Hostname of the target server.\n *\n * @example\n * ```ts\n * // NS1:\n * nuke(\"foodnstuff\");\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * ns.nuke(\"foodnstuff\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "nuke(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "nuke" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#peek:member(1)", - "docComment": "/**\n * Get a copy of the data from a port without popping it.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function is used to peek at the data from a port. It returns the first element in the specified port without removing that element. If the port is empty, the string “NULL PORT DATA” will be returned.\n *\n * @param port - Port to peek. Must be an integer between 1 and 20.\n *\n * @returns Data in the specified port.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "peek(port: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "port", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "peek" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#print:member(1)", - "docComment": "/**\n * Prints one or move values or variables to the script’s logs.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @param args - Value(s) to be printed.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "print(...args: " - }, - { - "kind": "Content", - "text": "any[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "print" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#prompt:member(1)", - "docComment": "/**\n * Prompt the player with a Yes/No modal.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Prompts the player with a dialog box with two options: “Yes” and “No”. This function will return true if the player click “Yes” and false if the player clicks “No”. The script’s execution is halted until the player selects one of the options.\n *\n * @param txt - Text to appear in the prompt dialog box.\n *\n * @returns True if the player click “Yes” and false if the player clicks “No”.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "prompt(txt: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "txt", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "prompt" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#ps:member(1)", - "docComment": "/**\n * List running scripts on a server.\n *\n * @remarks\n *\n * RAM cost: 0.2 GB\n *\n * Returns an array with general information about all scripts running on the specified target server.\n *\n * @param host - Host address of the target server. If not specified, it will be the current server’s IP by default.\n *\n * @returns Array with general information about all scripts running on the specified target server.\n *\n * @example\n * ```ts\n * // NS1:\n * const scripts = ps(\"home\");\n * for (let i = 0; i < scripts.length; ++i) {\n * tprint(scripts[i].filename + ' ' + scripts[i].threads);\n * tprint(scripts[i].args);\n * }\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * const ps = ns.ps(\"home\");\n * for (script of ps) {\n * ns.tprint(`${script.filename} ${ps[i].threads}`);\n * ns.tprint(script.args);\n * }\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ps(host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "ProcessInfo", - "canonicalReference": "bitburner!ProcessInfo:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "ps" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#purchaseServer:member(1)", - "docComment": "/**\n * Purchase a server.\n *\n * @remarks\n *\n * 2.25 GB\n *\n * Purchased a server with the specified hostname and amount of RAM.\n *\n * The hostname argument can be any data type, but it will be converted to a string and have whitespace removed. Anything that resolves to an empty string will cause the function to fail. If there is already a server with the specified hostname, then the function will automatically append a number at the end of the hostname argument value until it finds a unique hostname. For example, if the script calls `purchaseServer(“foo”, 4)` but a server named “foo” already exists, the it will automatically change the hostname to `foo-0`. If there is already a server with the hostname `foo-0`, then it will change the hostname to `foo-1`, and so on.\n *\n * Note that there is a maximum limit to the amount of servers you can purchase.\n *\n * Returns the hostname of the newly purchased server as a string. If the function fails to purchase a server, then it will return an empty string. The function will fail if the arguments passed in are invalid, if the player does not have enough money to purchase the specified server, or if the player has exceeded the maximum amount of servers.\n *\n * @param hostname - Host of the purchased server.\n *\n * @param ram - Amount of RAM of the purchased server, in GB. Must be a power of 2 (2, 4, 8, 16, etc.). Maximum value of 1048576 (2^20).\n *\n * @returns The hostname of the newly purchased server.\n *\n * @example\n * ```ts\n * // NS1:\n * var ram = 64;\n * var prefix = \"pserv-\";\n * for (i = 0; i < 5; ++i) {\n * purchaseServer(prefix + i, ram);\n * }\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * const ram = 64;\n * const prefix = \"pserv-\";\n * for (i = 0; i < 5; ++i) {\n * ns.purchaseServer(prefix + i, ram);\n * }\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "purchaseServer(hostname: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", ram: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "hostname", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "ram", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "purchaseServer" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#read:member(1)", - "docComment": "/**\n * Read content of a file.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function is used to read data from a text file (.txt).\n *\n * This function will return the data in the specified text file. If the text file does not exist, an empty string will be returned.\n *\n * @param handle - Filename to read from.\n *\n * @returns Data in the specified text file.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "read(handle: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "handle", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "read" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#readPort:member(1)", - "docComment": "/**\n * Read data from a port.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Read data from that port. A port is a serialized queue. This function will remove the first element from that queue and return it. If the queue is empty, then the string “NULL PORT DATA” will be returned.\n *\n * @returns the data read.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "readPort(port: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "port", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "readPort" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#relaysmtp:member(1)", - "docComment": "/**\n * Runs relaySMTP.exe on a server.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * Runs the relaySMTP.exe program on the target server. relaySMTP.exe must exist on your home computer.\n *\n * @param host - Hostname of the target server.\n *\n * @example\n * ```ts\n * // NS1:\n * relaysmtp(\"foodnstuff\");\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * ns.relaysmtp(\"foodnstuff\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "relaysmtp(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "relaysmtp" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#rm:member(1)", - "docComment": "/**\n * Delete a file.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Removes the specified file from the current server. This function works for every file type except message (.msg) files.\n *\n * @param name - Filename of file to remove. Must include the extension.\n *\n * @param host - Host Address of the server on which to delete the file. Optional. Defaults to current server.\n *\n * @returns True if it successfully deletes the file, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "rm(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "rm" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#run:member(1)", - "docComment": "/**\n * Start another script on the current server.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Run a script as a separate process. This function can only be used to run scripts located on the current server (the server running the script that calls this function). Requires a significant amount of RAM to run this command.\n *\n * If the script was successfully started, then this functions returns the PID of that script. Otherwise, it returns 0.\n *\n * PID stands for Process ID. The PID is a unique identifier for each script. The PID will always be a positive integer.\n *\n * Running this function with a numThreads argument of 0 will return 0 without running the script. However, running this function with a negative numThreads argument will cause a runtime error.\n *\n * @param script - Filename of script to run.\n *\n * @param numThreads - Optional thread count for new script. Set to 1 by default. Will be rounded to nearest integer.\n *\n * @param args - Additional arguments to pass into the new script that is being run. Note that if any arguments are being passed into the new script, then the second argument numThreads must be filled in with a value.\n *\n * @returns Returns the PID of a successfully started script, and 0 otherwise.\n *\n * @example\n * ```ts\n * // NS1:\n * //The simplest way to use the run command is to call it with just the script name. The following example will run ‘foo.script’ single-threaded with no arguments:\n * run(\"foo.script\");\n *\n * //The following example will run ‘foo.script’ but with 5 threads instead of single-threaded:\n * run(\"foo.script\", 5);\n *\n * //This next example will run ‘foo.script’ single-threaded, and will pass the string ‘foodnstuff’ into the script as an argument:\n * run(\"foo.script\", 1, 'foodnstuff');\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * //The simplest way to use the run command is to call it with just the script name. The following example will run ‘foo.script’ single-threaded with no arguments:\n * ns.run(\"foo.script\");\n *\n * //The following example will run ‘foo.script’ but with 5 threads instead of single-threaded:\n * ns.run(\"foo.script\", 5);\n *\n * //This next example will run ‘foo.script’ single-threaded, and will pass the string ‘foodnstuff’ into the script as an argument:\n * ns.run(\"foo.script\", 1, 'foodnstuff');\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "run(script: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", numThreads?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", ...args: " - }, - { - "kind": "Reference", - "text": "Array", - "canonicalReference": "!Array:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 8, - "endIndex": 9 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "script", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "numThreads", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 7 - } - } - ], - "name": "run" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#scan:member(1)", - "docComment": "/**\n * Get the list of servers connected to a server.\n *\n * @remarks\n *\n * RAM cost: 0.2 GB\n *\n * Returns an array containing the hostnames of all servers that are one node way from the specified target server. The hostnames in the returned array are strings.\n *\n * @param host - Optional, Hostname of the server to scan, default to current server.\n *\n * @returns Returns an string of hostnames.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "scan(host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "scan" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#scp:member(1)", - "docComment": "/**\n * Copy file between servers.\n *\n * @remarks\n *\n * RAM cost: 0.6 GB\n *\n * Copies a script or literature (.lit) file(s) to another server. The files argument can be either a string specifying a single file to copy, or an array of strings specifying multiple files to copy.\n *\n * @param files - Filename or an array of filenames of script/literature files to copy.\n *\n * @param source - Host of the source server, which is the server from which the file will be copied. This argument is optional and if it’s omitted the source will be the current server.\n *\n * @param destination - Host of the destination server, which is the server to which the file will be copied.\n *\n * @returns True if the script/literature file is successfully copied over and false otherwise. If the files argument is an array then this function will return true if at least one of the files in the array is successfully copied.\n *\n * @example\n * ```ts\n * // NS1:\n * //Copies foo.lit from the helios server to the home computer:\n * scp(\"foo.lit\", \"helios\", \"home\");\n *\n * //Tries to copy three files from rothman-uni to home computer:\n * files = [\"foo1.lit\", \"foo2.script\", \"foo3.script\"];\n * scp(files, \"rothman-uni\", \"home\");\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * //Copies foo.lit from the helios server to the home computer:\n * await ns.scp(\"foo.lit\", \"helios\", \"home\");\n *\n * //Tries to copy three files from rothman-uni to home computer:\n * files = [\"foo1.lit\", \"foo2.script\", \"foo3.script\"];\n * await ns.scp(files, \"rothman-uni\", \"home\");\n * ```\n *\n * @example\n * ```ts\n * //ns2, copies files from home to a target server\n * const server = ns.args[0];\n * const files = [\"hack.js\",\"weaken.js\",\"grow.js\"];\n * await ns.scp(files, \"home\", server);\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "scp(files: " - }, - { - "kind": "Content", - "text": "string | string[]" - }, - { - "kind": "Content", - "text": ", destination: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "files", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "destination", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "scp" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#scp:member(2)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "scp(files: " - }, - { - "kind": "Content", - "text": "string | string[]" - }, - { - "kind": "Content", - "text": ", source: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", destination: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 9 - }, - "releaseTag": "Public", - "overloadIndex": 2, - "parameters": [ - { - "parameterName": "files", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "source", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "destination", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "scp" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#scriptKill:member(1)", - "docComment": "/**\n * Kill all scripts with a filename.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Kills all scripts with the specified filename on the target server specified by hostname, regardless of arguments.\n *\n * @param script - Filename of script to kill. This is case-sensitive.\n *\n * @param host - Host of target server.\n *\n * @returns true if one or more scripts were successfully killed, and false if none were.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "scriptKill(script: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "script", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "scriptKill" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#scriptRunning:member(1)", - "docComment": "/**\n * Check if any script with a filename is running.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Returns a boolean indicating whether any instance of the specified script is running on the target server, regardless of its arguments.\n *\n * This is different than the isRunning function because it does not try to identify a specific instance of a running script by its arguments.\n *\n * @param script - Filename of script to check. This is case-sensitive.\n *\n * @param host - Host of target server.\n *\n * @returns True if the specified script is running, and false otherwise.\n *\n * @example\n * ```ts\n * // NS1:\n * //The function call will return true if there is any script named foo.script running on the foodnstuff server, and false otherwise:\n * scriptRunning(\"foo.script\", \"foodnstuff\");\n *\n * //The function call will return true if there is any script named “foo.script” running on the current server, and false otherwise:\n * scriptRunning(\"foo.script\", getHostname());\n * ```\n *\n * *\n *\n * @example\n * ```ts\n * // NS2:\n * //The function call will return true if there is any script named foo.script running on the foodnstuff server, and false otherwise:\n * ns.scriptRunning(\"foo.script\", \"foodnstuff\");\n *\n * //The function call will return true if there is any script named “foo.script” running on the current server, and false otherwise:\n * ns.scriptRunning(\"foo.script\", ns.getHostname());\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "scriptRunning(script: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "script", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "scriptRunning" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#serverExists:member(1)", - "docComment": "/**\n * Returns a boolean denoting whether or not the specified server exists.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB\n *\n * @param host - Host of target server.\n *\n * @returns True if specified server exists, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "serverExists(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "serverExists" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#share:member(1)", - "docComment": "/**\n * Share your computer with your factions.\n *\n * @remarks\n *\n * RAM cost: 2.4 GB\n *\n * Increases your rep gain of hacking contracts while share is called. Scales with thread count.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "share(): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "share" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#sleep:member(1)", - "docComment": "/**\n * Suspends the script for n milliseconds.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @param millis - Number of milliseconds to sleep.\n *\n * @returns \n *\n * @example\n * ```ts\n * // NS1:\n * // This will count from 1 to 10 in your terminal, with one number every 5 seconds\n * for (var i=0; i<10; i++) {\n * tprint(i + 1);\n * sleep(5000);\n * }\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * // This will count from 1 to 10 in your terminal, with one number every 5 seconds\n * for (var i=0; i<10; i++) {\n * ns.tprint(i + 1);\n * await ns.sleep(5000);\n * }\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sleep(millis: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "millis", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "sleep" - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NS#sleeve:member", - "docComment": "/**\n * Namespace for sleeve functions.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly sleeve: " - }, - { - "kind": "Reference", - "text": "Sleeve", - "canonicalReference": "bitburner!Sleeve:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "sleeve", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#spawn:member(1)", - "docComment": "/**\n * Terminate current script and start another in 10s.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * Terminates the current script, and then after a delay of about 10 seconds it will execute the newly-specified script. The purpose of this function is to execute a new script without being constrained by the RAM usage of the current one. This function can only be used to run scripts on the local server.\n *\n * Because this function immediately terminates the script, it does not have a return value.\n *\n * @param script - Filename of script to execute.\n *\n * @param numThreads - Number of threads to spawn new script with. Will be rounded to nearest integer.\n *\n * @param args - Additional arguments to pass into the new script that is being run.\n *\n * @example\n * ```ts\n * // NS1:\n * //The following example will execute the script ‘foo.script’ with 10 threads and the arguments ‘foodnstuff’ and 90:\n * spawn('foo.script', 10, 'foodnstuff', 90);\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * //The following example will execute the script ‘foo.script’ with 10 threads and the arguments ‘foodnstuff’ and 90:\n * ns.spawn('foo.script', 10, 'foodnstuff', 90);\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "spawn(script: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", numThreads?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", ...args: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "script", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "numThreads", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "spawn" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#sprintf:member(1)", - "docComment": "/**\n * Format a string.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * see: https://github.com/alexei/sprintf.js\n *\n * @param format - String to format.\n *\n * @param args - Formating arguments.\n *\n * @returns Formated text.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sprintf(format: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", ...args: " - }, - { - "kind": "Content", - "text": "any[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "format", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "sprintf" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#sqlinject:member(1)", - "docComment": "/**\n * Runs SQLInject.exe on a server.\n *\n * @remarks\n *\n * RAM cost: 0.05 GB\n *\n * @param host - Hostname of the target server.\n *\n * @example\n * ```ts\n * // NS1:\n * sqlinject(\"foodnstuff\");\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * ns.sqlinject(\"foodnstuff\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sqlinject(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "sqlinject" - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NS#stanek:member", - "docComment": "/**\n * Namespace for stanek functions. RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly stanek: " - }, - { - "kind": "Reference", - "text": "Stanek", - "canonicalReference": "bitburner!Stanek:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "stanek", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NS#stock:member", - "docComment": "/**\n * Namespace for stock functions.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly stock: " - }, - { - "kind": "Reference", - "text": "TIX", - "canonicalReference": "bitburner!TIX:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "stock", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#tail:member(1)", - "docComment": "/**\n * Open the tail window of a script.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Opens a script’s logs. This is functionally the same as the tail Terminal command.\n *\n * If the function is called with no arguments, it will open the current script’s logs.\n *\n * Otherwise, the fn, hostname/ip, and args… arguments can be used to get the logs from another script. Remember that scripts are uniquely identified by both their names and arguments.\n *\n * @param fn - Optional. Filename or PID of the script being tailed. If omitted, the current script is tailed.\n *\n * @param host - Optional. Hostname of the script being tailed. Defaults to the server this script is running on. If args are specified, this is not optional.\n *\n * @param args - Arguments for the script being tailed.\n *\n * @example\n * ```ts\n * // NS1:\n * //Open logs from foo.script on the current server that was run with no args\n * tail(\"foo.script\");\n *\n * //Get logs from foo.script on the foodnstuff server that was run with no args\n * tail(\"foo.script\", \"foodnstuff\");\n *\n * //Get logs from foo.script on the foodnstuff server that was run with the arguments [1, \"test\"]\n * tail(\"foo.script\", \"foodnstuff\", 1, \"test\");\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * //Open logs from foo.script on the current server that was run with no args\n * ns.tail(\"foo.script\");\n *\n * //Get logs from foo.script on the foodnstuff server that was run with no args\n * ns.tail(\"foo.script\", \"foodnstuff\");\n *\n * //Get logs from foo.script on the foodnstuff server that was run with the arguments [1, \"test\"]\n * ns.tail(\"foo.script\", \"foodnstuff\", 1, \"test\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "tail(fn?: " - }, - { - "kind": "Reference", - "text": "FilenameOrPID", - "canonicalReference": "bitburner!FilenameOrPID:type" - }, - { - "kind": "Content", - "text": ", host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", ...args: " - }, - { - "kind": "Content", - "text": "any[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "fn", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "tail" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#tFormat:member(1)", - "docComment": "/**\n * Format time to readable string\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @param milliseconds - Number of millisecond to format.\n *\n * @param milliPrecision - Format time with subsecond precision, defaults to false.\n *\n * @returns The formatted time.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "tFormat(milliseconds: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", milliPrecision?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "milliseconds", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "milliPrecision", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "tFormat" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#toast:member(1)", - "docComment": "/**\n * Queue a toast (bottom-right notification).\n *\n * @param msg - Message in the toast.\n *\n * @param variant - Type of toast, must be one of success, info, warning, error. Defaults to success.\n *\n * @param duration - Duration of toast in ms. Can also be `null` to create a persistent toast. Defaults to 2000\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "toast(msg: " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": ", variant?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", duration?: " - }, - { - "kind": "Content", - "text": "number | null" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "msg", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "variant", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "duration", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "toast" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#tprint:member(1)", - "docComment": "/**\n * Prints one or more values or variables to the Terminal.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @param args - Value(s) to be printed.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "tprint(...args: " - }, - { - "kind": "Content", - "text": "any[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "tprint" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#tprintf:member(1)", - "docComment": "/**\n * Prints a raw value or a variable to the Terminal.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @param format - format of the message\n *\n * @param msg - Value to be printed.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "tprintf(format: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", ...values: " - }, - { - "kind": "Content", - "text": "any[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "format", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "values", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "tprintf" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#tryWritePort:member(1)", - "docComment": "/**\n * Attempt to write to a port.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Attempts to write data to the specified Netscript Port. If the port is full, the data will not be written. Otherwise, the data will be written normally.\n *\n * @param port - Port or text file that will be written to.\n *\n * @param data - Data to write.\n *\n * @returns True if the data is successfully written to the port, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "tryWritePort(port: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", data: " - }, - { - "kind": "Content", - "text": "string[] | number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "port", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "data", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "tryWritePort" - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!NS#ui:member", - "docComment": "/**\n * Namespace for user interface functions. RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly ui: " - }, - { - "kind": "Reference", - "text": "UserInterface", - "canonicalReference": "bitburner!UserInterface:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ui", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#vsprintf:member(1)", - "docComment": "/**\n * Format a string with an array of arguments.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * see: https://github.com/alexei/sprintf.js\n *\n * @param format - String to format.\n *\n * @param args - Formating arguments.\n *\n * @returns Formated text.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "vsprintf(format: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", args: " - }, - { - "kind": "Content", - "text": "any[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "format", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "args", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "vsprintf" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#weaken:member(1)", - "docComment": "/**\n * Reduce a server security level.\n *\n * @remarks\n *\n * RAM cost: 0.15 GB\n *\n * Use your hacking skills to attack a server’s security, lowering the server’s security level. The runtime for this command depends on your hacking level and the target server’s security level when this function is called. This function lowers the security level of the target server by 0.05.\n *\n * Like hack and grow, `weaken` can be called on any server, regardless of where the script is running. This command requires root access to the target server, but there is no required hacking level to run the command.\n *\n * @param host - Hostname of the target server to weaken.\n *\n * @param opts - Optional parameters for configuring function behavior.\n *\n * @returns The amount by which the target server’s security level was decreased. This is equivalent to 0.05 multiplied by the number of script threads.\n *\n * @example\n * ```ts\n * // NS1:\n * var currentSecurity = getServerSecurityLevel(\"foodnstuff\");\n * currentSecurity = currentSecurity - weaken(\"foodnstuff\");\n * currentSecurity = currentSecurity - weaken(\"foodnstuff\", { threads: 5 }); // Only use 5 threads to weaken\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * let currentSecurity = ns.getServerSecurityLevel(\"foodnstuff\");\n * currentSecurity -= await ns.weaken(\"foodnstuff\");\n * currentSecurity -= await ns.weaken(\"foodnstuff\", { threads: 5 }); // Only use 5 threads to weaken\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "weaken(host: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", opts?: " - }, - { - "kind": "Reference", - "text": "BasicHGWOptions", - "canonicalReference": "bitburner!BasicHGWOptions:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "opts", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "weaken" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#weakenAnalyze:member(1)", - "docComment": "/**\n * Predict the effect of weaken.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Returns the security decrease that would occur if a weaken with this many threads happened.\n *\n * @param threads - Amount of threads that will be used.\n *\n * @param cores - Optional. The number of cores of the server that would run weaken.\n *\n * @returns The security decrease.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "weakenAnalyze(threads: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", cores?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "threads", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cores", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "weakenAnalyze" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#wget:member(1)", - "docComment": "/**\n * Download a file from the internet.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Retrieves data from a URL and downloads it to a file on the specified server. The data can only be downloaded to a script (.script, .ns, .js) or a text file (.txt). If the file already exists, it will be overwritten by this command. Note that it will not be possible to download data from many websites because they do not allow cross-origin resource sharing (CORS).\n *\n * IMPORTANT: This is an asynchronous function that returns a Promise. The Promise’s resolved value will be a boolean indicating whether or not the data was successfully retrieved from the URL. Because the function is async and returns a Promise, it is recommended you use wget in NetscriptJS (Netscript 2.0).\n *\n * In NetscriptJS, you must preface any call to wget with the await keyword (like you would hack or sleep). wget will still work in Netscript 1.0, but the functions execution will not be synchronous (i.e. it may not execute when you expect/want it to). Furthermore, since Promises are not supported in ES5, you will not be able to process the returned value of wget in Netscript 1.0.\n *\n * @param url - URL to pull data from.\n *\n * @param target - Filename to write data to. Must be script or text file.\n *\n * @param host - Optional hostname/ip of server for target file.\n *\n * @returns True if the data was successfully retrieved from the URL, false otherwise.\n *\n * @example\n * ```ts\n * // NS1:\n * wget(\"https://raw.githubusercontent.com/danielyxie/bitburner/master/README.md\", \"game_readme.txt\");\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * await ns.wget(\"https://raw.githubusercontent.com/danielyxie/bitburner/master/README.md\", \"game_readme.txt\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "wget(url: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", target: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", host?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 9 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "url", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "target", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "host", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "wget" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#write:member(1)", - "docComment": "/**\n * Write data to a file.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * This function can be used to write data to a text file (.txt).\n *\n * This function will write data to that text file. If the specified text file does not exist, then it will be created. The third argument mode, defines how the data will be written to the text file. If *mode is set to “w”, then the data is written in “write” mode which means that it will overwrite all existing data on the text file. If mode is set to any other value then the data will be written in “append” mode which means that the data will be added at the end of the text file.\n *\n * @param handle - Filename of the text file that will be written to.\n *\n * @param data - Data to write.\n *\n * @param mode - Defines the write mode. Only valid when writing to text files.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "write(handle: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", data?: " - }, - { - "kind": "Content", - "text": "string[] | number | string" - }, - { - "kind": "Content", - "text": ", mode?: " - }, - { - "kind": "Content", - "text": "\"w\" | \"a\"" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 9 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "handle", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "data", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "mode", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "write" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!NS#writePort:member(1)", - "docComment": "/**\n * Write data to a port.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * Write data to that netscript port.\n *\n * @returns The data popped off the queue if it was full.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "writePort(port: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", data: " - }, - { - "kind": "Content", - "text": "string | number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "port", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "data", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "writePort" - } - ], - "extendsTokenRanges": [ - { - "startIndex": 1, - "endIndex": 3 - } - ] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Office:interface", - "docComment": "/**\n * Office for a division in a city.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface Office " - } - ], - "releaseTag": "Public", - "name": "Office", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Office#employeeProd:member", - "docComment": "/**\n * Positions of the employees\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "employeeProd: " - }, - { - "kind": "Reference", - "text": "EmployeeJobs", - "canonicalReference": "bitburner!EmployeeJobs:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "employeeProd", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Office#employees:member", - "docComment": "/**\n * Name of all the employees\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "employees: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "employees", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Office#loc:member", - "docComment": "/**\n * City of the office\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "loc: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "loc", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Office#maxEne:member", - "docComment": "/**\n * Maximum amount of energy of the employees\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "maxEne: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "maxEne", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Office#maxHap:member", - "docComment": "/**\n * Maximum happiness of the employees\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "maxHap: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "maxHap", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Office#maxMor:member", - "docComment": "/**\n * Maximum morale of the employees\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "maxMor: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "maxMor", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Office#minEne:member", - "docComment": "/**\n * Minimum amount of energy of the employees\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "minEne: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "minEne", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Office#minHap:member", - "docComment": "/**\n * Minimum happiness of the employees\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "minHap: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "minHap", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Office#size:member", - "docComment": "/**\n * Maximum number of employee\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "size: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "size", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!OfficeAPI:interface", - "docComment": "/**\n * Corporation Office API\n *\n * @remarks\n *\n * Requires the Office API upgrade from your corporation.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface OfficeAPI " - } - ], - "releaseTag": "Public", - "name": "OfficeAPI", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#assignJob:member(1)", - "docComment": "/**\n * Assign an employee to a job.\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @param employeeName - name of the employee\n *\n * @param job - Name of the job.\n *\n * @returns A promise that is fulfilled when the assignment is complete.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "assignJob(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", employeeName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", job: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 9, - "endIndex": 11 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "employeeName", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "job", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - } - ], - "name": "assignJob" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#buyCoffee:member(1)", - "docComment": "/**\n * Buy coffee for your employees\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @returns A promise that is fulfilled when the coffee is served.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "buyCoffee(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "buyCoffee" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#getEmployee:member(1)", - "docComment": "/**\n * Get data about an employee\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @param employeeName - Name of the employee\n *\n * @returns Employee data\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getEmployee(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", employeeName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Employee", - "canonicalReference": "bitburner!Employee:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "employeeName", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "getEmployee" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#getHireAdVertCost:member(1)", - "docComment": "/**\n * Get the cost to Hire AdVert\n *\n * @param divisionName - Name of the division\n *\n * @returns Cost\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getHireAdVertCost(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getHireAdVertCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#getHireAdVertCount:member(1)", - "docComment": "/**\n * Get the number of times you have Hired AdVert\n *\n * @param divisionName - Name of the division\n *\n * @returns Number of times you have Hired AdVert\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getHireAdVertCount(adivisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "adivisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getHireAdVertCount" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#getOffice:member(1)", - "docComment": "/**\n * Get data about an office\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @returns Office data\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getOffice(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Office", - "canonicalReference": "bitburner!Office:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getOffice" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#getOfficeSizeUpgradeCost:member(1)", - "docComment": "/**\n * Cost to Upgrade office size.\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @param size - Amount of positions to open\n *\n * @returns Cost of upgrading the office\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getOfficeSizeUpgradeCost(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", asize: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "asize", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "getOfficeSizeUpgradeCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#getResearchCost:member(1)", - "docComment": "/**\n * Get the cost to unlock research\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @returns cost\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getResearchCost(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", researchName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "researchName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getResearchCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#hasResearched:member(1)", - "docComment": "/**\n * Gets if you have unlocked a research\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @returns true is unlocked, false if not\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hasResearched(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", researchName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "researchName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "hasResearched" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#hireAdVert:member(1)", - "docComment": "/**\n * Hire AdVert.\n *\n * @param divisionName - Name of the division\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hireAdVert(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "hireAdVert" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#hireEmployee:member(1)", - "docComment": "/**\n * Hire an employee.\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @returns The newly hired employee, if any\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hireEmployee(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Employee", - "canonicalReference": "bitburner!Employee:interface" - }, - { - "kind": "Content", - "text": " | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "hireEmployee" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#research:member(1)", - "docComment": "/**\n * Purchase a research\n *\n * @param divisionName - Name of the division\n *\n * @param researchName - Name of the research\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "research(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", researchName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "researchName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "research" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#setAutoJobAssignment:member(1)", - "docComment": "/**\n * Set the auto job assignment for a job\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @param job - Name of the job\n *\n * @param amount - Number of employees to assign to that job\n *\n * @returns A promise that is fulfilled when the assignment is complete.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setAutoJobAssignment(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", job: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", amount: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 9, - "endIndex": 11 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "job", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "amount", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - } - ], - "name": "setAutoJobAssignment" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#throwParty:member(1)", - "docComment": "/**\n * Throw a party for your employees\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @param costPerEmployee - Amount to spend per employee.\n *\n * @returns Amount of happiness increased.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "throwParty(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", costPerEmployee: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 9 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "costPerEmployee", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "throwParty" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!OfficeAPI#upgradeOfficeSize:member(1)", - "docComment": "/**\n * Upgrade office size.\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @param size - Amount of positions to open\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "upgradeOfficeSize(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", size: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "size", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "upgradeOfficeSize" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Enum", - "canonicalReference": "bitburner!OrderTypes:enum", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export enum OrderTypes " - } - ], - "releaseTag": "Public", - "name": "OrderTypes", - "members": [ - { - "kind": "EnumMember", - "canonicalReference": "bitburner!OrderTypes.LimitBuy:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "LimitBuy = " - }, - { - "kind": "Content", - "text": "\"Limit Buy Order\"" - } - ], - "releaseTag": "Public", - "name": "LimitBuy", - "initializerTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "EnumMember", - "canonicalReference": "bitburner!OrderTypes.LimitSell:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "LimitSell = " - }, - { - "kind": "Content", - "text": "\"Limit Sell Order\"" - } - ], - "releaseTag": "Public", - "name": "LimitSell", - "initializerTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "EnumMember", - "canonicalReference": "bitburner!OrderTypes.StopBuy:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "StopBuy = " - }, - { - "kind": "Content", - "text": "\"Stop Buy Order\"" - } - ], - "releaseTag": "Public", - "name": "StopBuy", - "initializerTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "EnumMember", - "canonicalReference": "bitburner!OrderTypes.StopSell:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "StopSell = " - }, - { - "kind": "Content", - "text": "\"Stop Sell Order\"" - } - ], - "releaseTag": "Public", - "name": "StopSell", - "initializerTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Player:interface", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface Player " - } - ], - "releaseTag": "Public", - "name": "Player", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#agility_exp_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "agility_exp_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agility_exp_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#agility_exp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "agility_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agility_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#agility_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "agility_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agility_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#agility:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "agility: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agility", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#bitNodeN:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "bitNodeN: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "bitNodeN", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#bladeburner_analysis_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "bladeburner_analysis_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "bladeburner_analysis_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#bladeburner_max_stamina_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "bladeburner_max_stamina_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "bladeburner_max_stamina_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#bladeburner_stamina_gain_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "bladeburner_stamina_gain_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "bladeburner_stamina_gain_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#bladeburner_success_chance_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "bladeburner_success_chance_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "bladeburner_success_chance_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#charisma_exp_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "charisma_exp_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "charisma_exp_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#charisma_exp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "charisma_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "charisma_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#charisma_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "charisma_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "charisma_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#charisma:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "charisma: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "charisma", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#city:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "city: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "city", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#className:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "className: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "className", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#company_rep_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "company_rep_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "company_rep_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#companyName:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "companyName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "companyName", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#createProgramName:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "createProgramName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "createProgramName", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#createProgramReqLvl:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "createProgramReqLvl: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "createProgramReqLvl", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#crime_money_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "crime_money_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "crime_money_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#crime_success_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "crime_success_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "crime_success_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#crimeType:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "crimeType: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "crimeType", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#currentWorkFactionDescription:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "currentWorkFactionDescription: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "currentWorkFactionDescription", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#currentWorkFactionName:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "currentWorkFactionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "currentWorkFactionName", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#defense_exp_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "defense_exp_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "defense_exp_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#defense_exp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "defense_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "defense_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#defense_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "defense_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "defense_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#defense:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "defense: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "defense", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#dexterity_exp_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "dexterity_exp_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dexterity_exp_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#dexterity_exp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "dexterity_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dexterity_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#dexterity_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "dexterity_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dexterity_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#dexterity:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "dexterity: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dexterity", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#faction_rep_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "faction_rep_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "faction_rep_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#factions:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "factions: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "factions", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hacking_chance_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_chance_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking_chance_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hacking_exp_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_exp_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking_exp_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hacking_exp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hacking_grow_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_grow_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking_grow_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hacking_money_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_money_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking_money_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hacking_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hacking_speed_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking_speed_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking_speed_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hacking:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hacknet_node_core_cost_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknet_node_core_cost_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacknet_node_core_cost_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hacknet_node_level_cost_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknet_node_level_cost_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacknet_node_level_cost_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hacknet_node_money_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknet_node_money_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacknet_node_money_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hacknet_node_purchase_cost_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknet_node_purchase_cost_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacknet_node_purchase_cost_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hacknet_node_ram_cost_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacknet_node_ram_cost_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacknet_node_ram_cost_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#has4SData:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "has4SData: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "has4SData", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#has4SDataTixApi:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "has4SDataTixApi: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "has4SDataTixApi", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hasCorporation:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hasCorporation: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hasCorporation", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hasTixApiAccess:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hasTixApiAccess: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hasTixApiAccess", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hasWseAccount:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hasWseAccount: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hasWseAccount", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#hp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#intelligence:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "intelligence: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "intelligence", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#isWorking:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "isWorking: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "isWorking", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#jobs:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "jobs: " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "jobs", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#location:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "location: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "location", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#max_hp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "max_hp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "max_hp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#money:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "money: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "money", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#numPeopleKilled:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "numPeopleKilled: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "numPeopleKilled", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#playtimeSinceLastAug:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "playtimeSinceLastAug: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "playtimeSinceLastAug", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#playtimeSinceLastBitnode:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "playtimeSinceLastBitnode: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "playtimeSinceLastBitnode", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#strength_exp_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "strength_exp_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "strength_exp_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#strength_exp:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "strength_exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "strength_exp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#strength_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "strength_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "strength_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#strength:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "strength: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "strength", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#tor:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "tor: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "tor", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#totalPlaytime:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "totalPlaytime: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "totalPlaytime", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#work_money_mult:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "work_money_mult: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "work_money_mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workAgiExpGained:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workAgiExpGained: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workAgiExpGained", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workAgiExpGainRate:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workAgiExpGainRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workAgiExpGainRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workChaExpGained:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workChaExpGained: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workChaExpGained", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workChaExpGainRate:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workChaExpGainRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workChaExpGainRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workDefExpGained:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workDefExpGained: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workDefExpGained", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workDefExpGainRate:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workDefExpGainRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workDefExpGainRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workDexExpGained:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workDexExpGained: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workDexExpGained", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workDexExpGainRate:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workDexExpGainRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workDexExpGainRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workHackExpGained:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workHackExpGained: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workHackExpGained", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workHackExpGainRate:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workHackExpGainRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workHackExpGainRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workMoneyGained:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workMoneyGained: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workMoneyGained", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workMoneyGainRate:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workMoneyGainRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workMoneyGainRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workMoneyLossRate:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workMoneyLossRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workMoneyLossRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workRepGained:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workRepGained: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workRepGained", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workRepGainRate:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workRepGainRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workRepGainRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workStrExpGained:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workStrExpGained: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workStrExpGained", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workStrExpGainRate:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workStrExpGainRate: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workStrExpGainRate", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Player#workType:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "workType: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workType", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!PlayerSkills:interface", - "docComment": "/**\n * Short summary of the players skills.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface PlayerSkills " - } - ], - "releaseTag": "Public", - "name": "PlayerSkills", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!PlayerSkills#agility:member", - "docComment": "/**\n * Agility level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "agility: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agility", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!PlayerSkills#charisma:member", - "docComment": "/**\n * Chraisma level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "charisma: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "charisma", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!PlayerSkills#defense:member", - "docComment": "/**\n * Defense level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "defense: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "defense", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!PlayerSkills#dexterity:member", - "docComment": "/**\n * Dexterity level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "dexterity: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dexterity", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!PlayerSkills#hacking:member", - "docComment": "/**\n * Hacking level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!PlayerSkills#intelligence:member", - "docComment": "/**\n * Intelligence level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "intelligence: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "intelligence", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!PlayerSkills#strength:member", - "docComment": "/**\n * Strength level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "strength: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "strength", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Enum", - "canonicalReference": "bitburner!PositionTypes:enum", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export enum PositionTypes " - } - ], - "releaseTag": "Public", - "name": "PositionTypes", - "members": [ - { - "kind": "EnumMember", - "canonicalReference": "bitburner!PositionTypes.Long:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "Long = " - }, - { - "kind": "Content", - "text": "\"L\"" - } - ], - "releaseTag": "Public", - "name": "Long", - "initializerTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "EnumMember", - "canonicalReference": "bitburner!PositionTypes.Short:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "Short = " - }, - { - "kind": "Content", - "text": "\"S\"" - } - ], - "releaseTag": "Public", - "name": "Short", - "initializerTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!ProcessInfo:interface", - "docComment": "/**\n * A single process on a server.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface ProcessInfo " - } - ], - "releaseTag": "Public", - "name": "ProcessInfo", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!ProcessInfo#args:member", - "docComment": "/**\n * Script's arguments\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "args: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "args", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!ProcessInfo#filename:member", - "docComment": "/**\n * Script name.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "filename: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "filename", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!ProcessInfo#pid:member", - "docComment": "/**\n * Process ID\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "pid: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "pid", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!ProcessInfo#threads:member", - "docComment": "/**\n * Number of threads script is running with\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "threads: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "threads", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Product:interface", - "docComment": "/**\n * Product in a warehouse\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface Product " - } - ], - "releaseTag": "Public", - "name": "Product", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Product#cityData:member", - "docComment": "/**\n * 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]\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "cityData: " - }, - { - "kind": "Content", - "text": "{ [key: string]: number[] }" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cityData", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Product#cmp:member", - "docComment": "/**\n * Competition for the product\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "cmp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cmp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Product#developmentProgress:member", - "docComment": "/**\n * Creation progress - A number between 0-100 representing percentage\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "developmentProgress: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "developmentProgress", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Product#dmd:member", - "docComment": "/**\n * Demand for the product\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "dmd: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dmd", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Product#name:member", - "docComment": "/**\n * Name of the product\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Product#pCost:member", - "docComment": "/**\n * Production cost\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "pCost: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "pCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Product#sCost:member", - "docComment": "/**\n * Sell cost, can be \"MP+5\"\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sCost: " - }, - { - "kind": "Content", - "text": "string | number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "sCost", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!RunningScript:interface", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface RunningScript " - } - ], - "releaseTag": "Public", - "name": "RunningScript", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!RunningScript#args:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "args: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "args", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!RunningScript#filename:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "filename: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "filename", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!RunningScript#logs:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "logs: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "logs", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!RunningScript#offlineExpGained:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "offlineExpGained: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "offlineExpGained", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!RunningScript#offlineMoneyMade:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "offlineMoneyMade: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "offlineMoneyMade", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!RunningScript#offlineRunningTime:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "offlineRunningTime: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "offlineRunningTime", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!RunningScript#onlineExpGained:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "onlineExpGained: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "onlineExpGained", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!RunningScript#onlineMoneyMade:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "onlineMoneyMade: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "onlineMoneyMade", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!RunningScript#onlineRunningTime:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "onlineRunningTime: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "onlineRunningTime", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!RunningScript#pid:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "pid: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "pid", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!RunningScript#ramUsage:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "ramUsage: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ramUsage", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!RunningScript#server:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "server: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "server", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!RunningScript#threads:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "threads: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "threads", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Server:interface", - "docComment": "/**\n * A single server.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface Server " - } - ], - "releaseTag": "Public", - "name": "Server", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#backdoorInstalled:member", - "docComment": "/**\n * Flag indicating whether this server has a backdoor installed by a player\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "backdoorInstalled: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "backdoorInstalled", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#baseDifficulty:member", - "docComment": "/**\n * Initial server security level (i.e. security level when the server was created)\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "baseDifficulty: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "baseDifficulty", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#cpuCores:member", - "docComment": "/**\n * How many CPU cores this server has. Maximum of 8. Affects magnitude of grow and weaken.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "cpuCores: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cpuCores", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#ftpPortOpen:member", - "docComment": "/**\n * Flag indicating whether the FTP port is open\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ftpPortOpen: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ftpPortOpen", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#hackDifficulty:member", - "docComment": "/**\n * Server Security Level\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hackDifficulty: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hackDifficulty", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#hasAdminRights:member", - "docComment": "/**\n * Flag indicating whether player has admin/root access to this server\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hasAdminRights: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hasAdminRights", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#hostname:member", - "docComment": "/**\n * Hostname. Must be unique\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hostname: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hostname", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#httpPortOpen:member", - "docComment": "/**\n * Flag indicating whether HTTP Port is open\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "httpPortOpen: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "httpPortOpen", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#ip:member", - "docComment": "/**\n * IP Address. Must be unique\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ip: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ip", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#isConnectedTo:member", - "docComment": "/**\n * Flag indicating whether player is curently connected to this server\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "isConnectedTo: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "isConnectedTo", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#maxRam:member", - "docComment": "/**\n * RAM (GB) available on this server\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "maxRam: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "maxRam", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#minDifficulty:member", - "docComment": "/**\n * Minimum server security level that this server can be weakened to\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "minDifficulty: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "minDifficulty", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#moneyAvailable:member", - "docComment": "/**\n * How much money currently resides on the server and can be hacked\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "moneyAvailable: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "moneyAvailable", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#moneyMax:member", - "docComment": "/**\n * Maximum amount of money that this server can hold\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "moneyMax: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "moneyMax", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#numOpenPortsRequired:member", - "docComment": "/**\n * Number of open ports required in order to gain admin/root access\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "numOpenPortsRequired: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "numOpenPortsRequired", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#openPortCount:member", - "docComment": "/**\n * How many ports are currently opened on the server\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "openPortCount: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "openPortCount", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#organizationName:member", - "docComment": "/**\n * Name of company/faction/etc. that this server belongs to. Optional, not applicable to all Servers\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "organizationName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "organizationName", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#purchasedByPlayer:member", - "docComment": "/**\n * Flag indicating whether this is a purchased server\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "purchasedByPlayer: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "purchasedByPlayer", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#ramUsed:member", - "docComment": "/**\n * RAM (GB) used. i.e. unavailable RAM\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "ramUsed: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "ramUsed", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#requiredHackingSkill:member", - "docComment": "/**\n * Hacking level required to hack this server\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "requiredHackingSkill: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "requiredHackingSkill", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#serverGrowth:member", - "docComment": "/**\n * Parameter that affects how effectively this server's money can be increased using the grow() Netscript function\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "serverGrowth: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "serverGrowth", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#smtpPortOpen:member", - "docComment": "/**\n * Flag indicating whether SMTP Port is open\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "smtpPortOpen: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "smtpPortOpen", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#sqlPortOpen:member", - "docComment": "/**\n * Flag indicating whether SQL Port is open\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sqlPortOpen: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "sqlPortOpen", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Server#sshPortOpen:member", - "docComment": "/**\n * Flag indicating whether the SSH Port is open\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sshPortOpen: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "sshPortOpen", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Singularity:interface", - "docComment": "/**\n * Singularity API\n *\n * @remarks\n *\n * This API requires Source-File 4 to use. The RAM cost of all these functions is multiplied by 16/4/1 based on Source-File 4 levels.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface Singularity " - } - ], - "releaseTag": "Public", - "name": "Singularity", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#applyToCompany:member(1)", - "docComment": "/**\n * Apply for a job at a company.\n *\n * @remarks\n *\n * RAM cost: 3 GB * 16/4/1\n *\n * This function will automatically try to apply to the specified company for a position in the specified field. This function can also be used to apply for promotions by specifying the company and field you are already employed at.\n *\n * This function will return true if you successfully get a job/promotion, and false otherwise. Note that if you are trying to use this function to apply for a promotion and you don’t get one, it will return false.\n *\n * @param companyName - Name of company to apply to.\n *\n * @param field - Field to which you want to apply.\n *\n * @returns True if the player successfully get a job/promotion, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "applyToCompany(companyName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", field: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "companyName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "field", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "applyToCompany" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#checkFactionInvitations:member(1)", - "docComment": "/**\n * List all current faction invitations.\n *\n * @remarks\n *\n * RAM cost: 3 GB * 16/4/1\n *\n * Returns an array with the name of all Factions you currently have oustanding invitations from.\n *\n * @returns Array with the name of all Factions you currently have oustanding invitations from.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "checkFactionInvitations(): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "checkFactionInvitations" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#commitCrime:member(1)", - "docComment": "/**\n * Commit a crime.\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * This function is used to automatically attempt to commit crimes. If you are already in the middle of some ‘working’ action (such as working for a company or training at a gym), then running this function will automatically cancel that action and give you your earnings.\n *\n * This function returns the number of milliseconds it takes to attempt the specified crime (e.g It takes 60 seconds to attempt the ‘Rob Store’ crime, so running `commitCrime('rob store')` will return 60,000).\n *\n * Warning: I do not recommend using the time returned from this function to try and schedule your crime attempts. Instead, I would use the isBusy Singularity function to check whether you have finished attempting a crime. This is because although the game sets a certain crime to be X amount of seconds, there is no guarantee that your browser will follow that time limit.\n *\n * @param crime - Name of crime to attempt.\n *\n * @returns The number of milliseconds it takes to attempt the specified crime.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "commitCrime(crime: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "crime", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "commitCrime" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#connect:member(1)", - "docComment": "/**\n * Connect to a server.\n *\n * @remarks\n *\n * RAM cost: 2 GB * 16/4/1\n *\n * Run the connect HOSTNAME command in the terminal. Can only connect to neighbors.\n *\n * @returns True if the connect command was successful, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "connect(hostname: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "hostname", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "connect" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#createProgram:member(1)", - "docComment": "/**\n * Create a program.\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * This function will automatically set you to start working on creating the specified program. If you are already in the middle of some “working” action (such as working for a company, training at a gym, or taking a course), then running this function will automatically cancel that action and give you your earnings.\n *\n * This function returns true if you successfully start working on the specified program, and false otherwise.\n *\n * Note that creating a program using this function has the same hacking level requirements as it normally would. These level requirements are: * BruteSSH.exe: 50 * FTPCrack.exe: 100 * relaySMTP.exe: 250 * HTTPWorm.exe: 500 * SQLInject.exe: 750 * DeepscanV1.exe: 75 * DeepscanV2.exe: 400 * ServerProfiler.exe: 75 * AutoLink.exe: 25\n *\n * @param program - Name of program to create.\n *\n * @param focus - Acquire player focus on this program creation. Optional. Defaults to true.\n *\n * @returns True if you successfully start working on the specified program, and false otherwise.\n *\n * @example\n * ```ts\n * // NS1:\n * createProgram(“relaysmtp.exe”);\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * ns.createProgram(“relaysmtp.exe”);\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "createProgram(program: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", focus?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "program", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "focus", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "createProgram" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#donateToFaction:member(1)", - "docComment": "/**\n * Donate to a faction.\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * Attempts to donate money to the specified faction in exchange for reputation. Returns true if you successfully donate the money, and false otherwise.\n *\n * @param faction - Name of faction to donate to.\n *\n * @param amount - Amount of money to donate.\n *\n * @returns True if the money was donated, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "donateToFaction(faction: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", amount: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "faction", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "amount", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "donateToFaction" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getAugmentationCost:member(1)", - "docComment": "/**\n * Get the price and reputation of an augmentation.\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * 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.\n *\n * If an invalid Augmentation name is passed in for the augName argument, this function will return the array [-1, -1].\n *\n * @deprecated\n *\n * use getAugmentationPrice getAugmentationRepCost\n *\n * @param augName - Name of Augmentation.\n *\n * @returns Array with first element as a reputation requirement and second element as the money cost.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getAugmentationCost(augName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "[number, number]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "augName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getAugmentationCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getAugmentationPrereq:member(1)", - "docComment": "/**\n * Get the pre-requisite of an augmentation.\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * This function returns an array with the names of the prerequisite Augmentation(s) for the specified Augmentation. If there are no prerequisites, a blank array is returned.\n *\n * @param augName - Name of Augmentation.\n *\n * @returns Array with the names of the prerequisite Augmentation(s) for the specified Augmentation.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getAugmentationPrereq(augName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "augName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getAugmentationPrereq" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getAugmentationPrice:member(1)", - "docComment": "/**\n * Get price of an augmentation.\n *\n * @remarks\n *\n * RAM cost: 2.5 GB * 16/4/1\n *\n * @param augName - Name of Augmentation.\n *\n * @returns Price of the augmentation.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getAugmentationPrice(augName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "augName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getAugmentationPrice" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getAugmentationRepReq:member(1)", - "docComment": "/**\n * Get reputation requirement of an augmentation.\n *\n * @remarks\n *\n * RAM cost: 2.5 GB * 16/4/1\n *\n * @param augName - Name of Augmentation.\n *\n * @returns Reputation requirement of the augmentation.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getAugmentationRepReq(augName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "augName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getAugmentationRepReq" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getAugmentationsFromFaction:member(1)", - "docComment": "/**\n * Get a list of augmentation available from a faction.\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * Returns an array containing the names (as strings) of all Augmentations that are available from the specified faction.\n *\n * @param faction - Name of faction.\n *\n * @returns Array containing the names of all Augmentations.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getAugmentationsFromFaction(faction: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "faction", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getAugmentationsFromFaction" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getAugmentationStats:member(1)", - "docComment": "/**\n * Get the stats of an augmentation.\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * This function returns augmentation stats.\n *\n * @param name - Name of Augmentation. CASE-SENSITIVE.\n *\n * @returns Augmentation stats.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getAugmentationStats(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "AugmentationStats", - "canonicalReference": "bitburner!AugmentationStats:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getAugmentationStats" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getCharacterInformation:member(1)", - "docComment": "/**\n * Returns an object with various information about your character.\n *\n * @remarks\n *\n * RAM cost: 0.5 GB * 16/4/1\n *\n * @deprecated\n *\n * use getPlayer\n *\n * @returns Object with various information about your character.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCharacterInformation(): " - }, - { - "kind": "Reference", - "text": "CharacterInfo", - "canonicalReference": "bitburner!CharacterInfo:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getCharacterInformation" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getCompanyFavor:member(1)", - "docComment": "/**\n * Get company favor.\n *\n * @remarks\n *\n * RAM cost: 1 GB * 16/4/1\n *\n * This function will return the amount of favor you have at the specified company. If the company passed in as an argument is invalid, -1 will be returned.\n *\n * @param companyName - Name of the company.\n *\n * @returns Amount of favor you have at the specified company.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCompanyFavor(companyName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "companyName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getCompanyFavor" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getCompanyFavorGain:member(1)", - "docComment": "/**\n * Get company favor gain.\n *\n * @remarks\n *\n * RAM cost: 0.75 GB * 16/4/1\n *\n * This function will return the amount of favor you will gain for the specified company when you reset by installing Augmentations.\n *\n * @param companyName - Name of the company.\n *\n * @returns Amount of favor you gain at the specified company when you reset by installing Augmentations.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCompanyFavorGain(companyName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "companyName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getCompanyFavorGain" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getCompanyRep:member(1)", - "docComment": "/**\n * Get company reputation.\n *\n * @remarks\n *\n * RAM cost: 1 GB * 16/4/1\n *\n * This function will return the amount of reputation you have at the specified company. If the company passed in as an argument is invalid, -1 will be returned.\n *\n * @param companyName - Name of the company.\n *\n * @returns Amount of reputation you have at the specified company.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCompanyRep(companyName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "companyName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getCompanyRep" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getCrimeChance:member(1)", - "docComment": "/**\n * Get chance to successfully commit a crime.\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * This function returns your chance of success at commiting the specified crime.\n *\n * @param crime - Name of crime.\n *\n * @returns Chance of success at commiting the specified crime.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCrimeChance(crime: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "crime", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getCrimeChance" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getCrimeStats:member(1)", - "docComment": "/**\n * Get stats related to a crime.\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * Returns the stats of the crime.\n *\n * @param crime - Name of crime. Not case-sensitive\n *\n * @returns The stats of the crime.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCrimeStats(crime: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "CrimeStats", - "canonicalReference": "bitburner!CrimeStats:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "crime", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getCrimeStats" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getCurrentServer:member(1)", - "docComment": "/**\n * Get the current server.\n *\n * @remarks\n *\n * RAM cost: 2 GB * 16/4/1\n *\n * @returns Name of the current server.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getCurrentServer(): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getCurrentServer" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getFactionFavor:member(1)", - "docComment": "/**\n * Get faction favor.\n *\n * @remarks\n *\n * RAM cost: 1 GB * 16/4/1\n *\n * This function returns the amount of favor you have for the specified faction.\n *\n * @param faction - Name of faction.\n *\n * @returns Amount of favor you have for the specified faction.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getFactionFavor(faction: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "faction", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getFactionFavor" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getFactionFavorGain:member(1)", - "docComment": "/**\n * Get faction favor gain.\n *\n * @remarks\n *\n * RAM cost: 0.75 GB * 16/4/1\n *\n * This function returns the amount of favor you will gain for the specified faction when you reset by installing Augmentations.\n *\n * @param faction - Name of faction.\n *\n * @returns Amount of favor you will gain for the specified faction when you reset by installing Augmentations.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getFactionFavorGain(faction: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "faction", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getFactionFavorGain" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getFactionRep:member(1)", - "docComment": "/**\n * Get faction reputation.\n *\n * @remarks\n *\n * RAM cost: 1 GB * 16/4/1\n *\n * This function returns the amount of reputation you have for the specified faction.\n *\n * @param faction - Name of faction to work for.\n *\n * @returns Amount of reputation you have for the specified faction.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getFactionRep(faction: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "faction", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getFactionRep" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getOwnedAugmentations:member(1)", - "docComment": "/**\n * Get a list of owned augmentation.\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * This function returns an array containing the names (as strings) of all Augmentations you have.\n *\n * @param purchased - Specifies whether the returned array should include Augmentations you have purchased but not yet installed. By default, this argument is false which means that the return value will NOT have the purchased Augmentations.\n *\n * @returns Array containing the names (as strings) of all Augmentations you have.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getOwnedAugmentations(purchased?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "purchased", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getOwnedAugmentations" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getStats:member(1)", - "docComment": "/**\n * Returns an object with the Player’s stats.\n *\n * @remarks\n *\n * RAM cost: 0.5 GB * 16/4/1\n *\n * @deprecated\n *\n * use getPlayer\n *\n * @returns Object with the Player’s stats.\n *\n * @example\n * ```ts\n * res = getStats();\n * print('My charisma level is: ' + res.charisma);\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getStats(): " - }, - { - "kind": "Reference", - "text": "PlayerSkills", - "canonicalReference": "bitburner!PlayerSkills:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getStats" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getUpgradeHomeCoresCost:member(1)", - "docComment": "/**\n * Get the price of upgrading home cores.\n *\n * @remarks\n *\n * RAM cost: 1.5 GB * 16/4/1\n *\n * Returns the cost of upgrading the player’s home computer cores.\n *\n * @returns Cost of upgrading the player’s home computer cores.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getUpgradeHomeCoresCost(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getUpgradeHomeCoresCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#getUpgradeHomeRamCost:member(1)", - "docComment": "/**\n * Get the price of upgrading home RAM.\n *\n * @remarks\n *\n * RAM cost: 1.5 GB * 16/4/1\n *\n * Returns the cost of upgrading the player’s home computer RAM.\n *\n * @returns Cost of upgrading the player’s home computer RAM.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getUpgradeHomeRamCost(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getUpgradeHomeRamCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#goToLocation:member(1)", - "docComment": "/**\n * Go to a location.\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * Move the player to a specific location.\n *\n * @param locationName - Name of the location.\n *\n * @returns True if the player was moved there, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "goToLocation(locationName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "locationName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "goToLocation" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#gymWorkout:member(1)", - "docComment": "/**\n * Workout at the gym.\n *\n * @remarks\n *\n * RAM cost: 2 GB * 16/4/1\n *\n * This function will automatically set you to start working out at a gym to train a particular stat. If you are already in the middle of some “working” action (such as working at a company, for a faction, or on a program), then running this function will automatically cancel that action and give you your earnings.\n *\n * The cost and experience gains for all of these gyms are the same as if you were to manually visit these gyms and train\n *\n * @param gymName - Name of gym. You must be in the correct city for whatever gym you specify.\n *\n * @param stat - The stat you want to train.\n *\n * @param focus - Acquire player focus on this gym workout. Optional. Defaults to true.\n *\n * @returns True if actions is successfully started, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "gymWorkout(gymName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", stat: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", focus?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "gymName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "stat", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "focus", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "gymWorkout" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#hospitalize:member(1)", - "docComment": "/**\n * Hospitalize the player.\n *\n * @remarks\n *\n * RAM cost: 0.25 GB * 16/4/1\n *\n * @returns The cost of the hospitalization.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hospitalize(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "hospitalize" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#installAugmentations:member(1)", - "docComment": "/**\n * Install your purchased augmentations.\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * This function will automatically install your Augmentations, resetting the game as usual.\n *\n * @param cbScript - This is a script that will automatically be run after Augmentations are installed (after the reset). This script will be run with no arguments and 1 thread. It must be located on your home computer.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "installAugmentations(cbScript?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "cbScript", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "installAugmentations" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#installBackdoor:member(1)", - "docComment": "/**\n * Run the backdoor command in the terminal.\n *\n * @remarks\n *\n * RAM cost: 2 GB * 16/4/1\n *\n * @returns Promise waiting for the installation to finish.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "installBackdoor(): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "installBackdoor" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#isBusy:member(1)", - "docComment": "/**\n * Check if the player is busy.\n *\n * @remarks\n *\n * RAM cost: 0.5 GB * 16/4/1\n *\n * Returns a boolean indicating whether or not the player is currently performing an ‘action’. These actions include working for a company/faction, studying at a univeristy, working out at a gym, creating a program, committing a crime, or carrying out a Hacking Mission.\n *\n * @returns True if the player is currently performing an ‘action’, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "isBusy(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "isBusy" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#isFocused:member(1)", - "docComment": "/**\n * Check if the player is focused.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB * 16/4/1\n *\n * @returns True if the player is focused.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "isFocused(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "isFocused" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#joinFaction:member(1)", - "docComment": "/**\n * Join a faction.\n *\n * @remarks\n *\n * RAM cost: 3 GB * 16/4/1\n *\n * This function will automatically accept an invitation from a faction and join it.\n *\n * @param faction - Name of faction to join.\n *\n * @returns True if player joined the faction, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "joinFaction(faction: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "faction", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "joinFaction" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#manualHack:member(1)", - "docComment": "/**\n * Run the hack command in the terminal.\n *\n * @remarks\n *\n * RAM cost: 2 GB * 16/4/1\n *\n * @returns Amount of money stolen by manual hacking.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "manualHack(): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "manualHack" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#purchaseAugmentation:member(1)", - "docComment": "/**\n * Purchase an augmentation\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * This function will try to purchase the specified Augmentation through the given Faction.\n *\n * This function will return true if the Augmentation is successfully purchased, and false otherwise.\n *\n * @param faction - Name of faction to purchase Augmentation from.\n *\n * @param augmentation - Name of Augmentation to purchase.\n *\n * @returns True if the Augmentation is successfully purchased, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "purchaseAugmentation(faction: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", augmentation: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "faction", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "augmentation", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "purchaseAugmentation" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#purchaseProgram:member(1)", - "docComment": "/**\n * Purchase a program from the dark web.\n *\n * @remarks\n *\n * RAM cost: 2 GB * 16/4/1\n *\n * This function allows you to automatically purchase programs. You MUST have a TOR router in order to use this function. The cost of purchasing programs using this function is the same as if you were purchasing them through the Dark Web using the Terminal buy command.\n *\n * @param programName - Name of program to purchase.\n *\n * @returns True if the specified program is purchased, and false otherwise.\n *\n * @example\n * ```ts\n * // NS1\n * purchaseProgram(\"brutessh.exe\");\n * ```\n *\n * @example\n * ```ts\n * // NS2\n * ns.purchaseProgram(\"brutessh.exe\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "purchaseProgram(programName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "programName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "purchaseProgram" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#purchaseTor:member(1)", - "docComment": "/**\n * Purchase the TOR router.\n *\n * @remarks\n *\n * RAM cost: 2 GB * 16/4/1\n *\n * This function allows you to automatically purchase a TOR router. The cost for purchasing a TOR router using this function is the same as if you were to manually purchase one.\n *\n * @returns True if actions is successful, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "purchaseTor(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "purchaseTor" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#setFocus:member(1)", - "docComment": "/**\n * Set the players focus.\n *\n * @remarks\n *\n * RAM cost: 0.1 GB * 16/4/1\n *\n * @returns True if the focus was changed.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setFocus(focus: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "focus", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "setFocus" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#softReset:member(1)", - "docComment": "/**\n * Soft reset the game.\n *\n * @remarks\n *\n * RAM cost: 5 GB * 16/4/1\n *\n * This function will perform a reset even if you don’t have any augmentation installed.\n *\n * @param cbScript - This is a script that will automatically be run after Augmentations are installed (after the reset). This script will be run with no arguments and 1 thread. It must be located on your home computer.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "softReset(cbScript: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "cbScript", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "softReset" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#stopAction:member(1)", - "docComment": "/**\n * Stop the current action.\n *\n * @remarks\n *\n * RAM cost: 1 GB * 16/4/1\n *\n * This function is used to end whatever ‘action’ the player is currently performing. The player will receive whatever money/experience/etc. he has earned from that action.\n *\n * The actions that can be stopped with this function are:\n *\n * * Studying at a university * Working for a company/faction * Creating a program * Committing a Crime\n *\n * This function will return true if the player’s action was ended. It will return false if the player was not performing an action when this function was called.\n *\n * @returns True if the player’s action was ended, false if the player was not performing an action.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "stopAction(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "stopAction" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#travelToCity:member(1)", - "docComment": "/**\n * Travel to another city.\n *\n * @remarks\n *\n * RAM cost: 2 GB * 16/4/1\n *\n * This function allows the player to travel to any city. The cost for using this function is the same as the cost for traveling through the Travel Agency.\n *\n * @param city - City to travel to.\n *\n * @returns True if actions is successful, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "travelToCity(city: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "city", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "travelToCity" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#universityCourse:member(1)", - "docComment": "/**\n * Take university class.\n *\n * @remarks\n *\n * RAM cost: 2 GB * 16/4/1\n *\n * This function will automatically set you to start taking a course at a university. If you are already in the middle of some “working” action (such as working at a company, for a faction, or on a program), then running this function will automatically cancel that action and give you your earnings.\n *\n * The cost and experience gains for all of these universities and classes are the same as if you were to manually visit and take these classes.\n *\n * @param universityName - Name of university. You must be in the correct city for whatever university you specify.\n *\n * @param courseName - Name of course.\n *\n * @param focus - Acquire player focus on this class. Optional. Defaults to true.\n *\n * @returns True if actions is successfully started, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "universityCourse(universityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", courseName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", focus?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "universityName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "courseName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "focus", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "universityCourse" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#upgradeHomeCores:member(1)", - "docComment": "/**\n * Upgrade home computer cores.\n *\n * @remarks\n *\n * RAM cost: 3 GB * 16/4/1\n *\n * This function will upgrade amount of cores on the player’s home computer. The cost is the same as if you were to do it manually.\n *\n * This function will return true if the player’s home computer cores is successfully upgraded, and false otherwise.\n *\n * @returns True if the player’s home computer cores is successfully upgraded, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "upgradeHomeCores(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "upgradeHomeCores" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#upgradeHomeRam:member(1)", - "docComment": "/**\n * Upgrade home computer RAM.\n *\n * @remarks\n *\n * RAM cost: 3 GB * 16/4/1\n *\n * This function will upgrade amount of RAM on the player’s home computer. The cost is the same as if you were to do it manually.\n *\n * This function will return true if the player’s home computer RAM is successfully upgraded, and false otherwise.\n *\n * @returns True if the player’s home computer RAM is successfully upgraded, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "upgradeHomeRam(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "upgradeHomeRam" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#workForCompany:member(1)", - "docComment": "/**\n * Work for a company.\n *\n * @remarks\n *\n * RAM cost: 3 GB * 16/4/1\n *\n * This function will automatically set you to start working at the company at which you are employed. If you are already in the middle of some “working” action (such as working for a faction, training at a gym, or creating a program), then running this function will automatically cancel that action and give you your earnings.\n *\n * This function will return true if the player starts working, and false otherwise.\n *\n * Note that when you are working for a company, you will not actually receive your earnings (reputation, money, experience) until you FINISH the action.\n *\n * @param companyName - Name of company to work for. Must be an exact match. Optional. If not specified, this argument defaults to the last job that you worked\n *\n * @param focus - Acquire player focus on this work operation. Optional. Defaults to true.\n *\n * @returns True if the player starts working, and false otherwise.\n *\n * @example\n * ```ts\n * // NS1:\n * //If you only want to work until you get 100,000 company reputation. One small hack to get around this is to continuously restart the action to receive your earnings:\n * while (getCompanyRep(COMPANY HERE) < VALUE) {\n * workForCompany();\n * sleep(60000);\n * }\n * //This way, your company reputation will be updated every minute.\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * //If you only want to work until you get 100,000 company reputation. One small hack to get around this is to continuously restart the action to receive your earnings:\n * while (ns.getCompanyRep(COMPANY HERE) < VALUE) {\n * ns.workForCompany();\n * await ns.sleep(60000);\n * }\n * //This way, your company reputation will be updated every minute.\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workForCompany(companyName?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", focus?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "companyName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "focus", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "workForCompany" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Singularity#workForFaction:member(1)", - "docComment": "/**\n * Work for a faction.\n *\n * @remarks\n *\n * RAM cost: 3 GB * 16/4/1\n *\n * This function will automatically set you to start working for the specified faction. Obviously, you must be a member of the faction or else this function will fail. If you are already in the middle of some “working” action (such as working for a company, training at a gym, or creating a program), then running this function will automatically cancel that action and give you your earnings.\n *\n * This function will return true if you successfully start working for the specified faction, and false otherwise.\n *\n * Note that when you are working for a faction, you will not actually receive your earnings (reputation, experience) until you FINISH the action.\n *\n * @param faction - Name of faction to work for.\n *\n * @param workType - Type of work to perform for the faction.\n *\n * @param focus - Acquire player focus on this work operation. Optional. Defaults to true.\n *\n * @returns True if the player starts working, and false otherwise.\n *\n * @example\n * ```ts\n * // NS1:\n * //If you only want to work until you get 100,000 faction reputation. One small hack to get around this is to continuously restart the action to receive your earnings:\n * while (getFactionRep(FACTION NAME) < VALUE) {\n * workForFaction(FACNAME, WORKTYPE);\n * sleep(60000);\n * }\n * //This way, your faction reputation will be updated every minute.\n * ```\n *\n * @example\n * ```ts\n * // NS2:\n * //If you only want to work until you get 100,000 faction reputation. One small hack to get around this is to continuously restart the action to receive your earnings:\n * while (ns.getFactionRep(FACTION NAME) < VALUE) {\n * ns.workForFaction(FACNAME, WORKTYPE);\n * await ns.sleep(60000);\n * }\n * //This way, your faction reputation will be updated every minute.\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workForFaction(faction: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", workType: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", focus?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "faction", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "workType", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "focus", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "workForFaction" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!SkillsFormulas:interface", - "docComment": "/**\n * Skills formulas\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface SkillsFormulas " - } - ], - "releaseTag": "Public", - "name": "SkillsFormulas", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!SkillsFormulas#calculateExp:member(1)", - "docComment": "/**\n * Calculate exp for skill level.\n *\n * @param skill - target skill level\n *\n * @param skillMult - Multiplier for that skill, defaults to 1.\n *\n * @returns The calculated exp required.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "calculateExp(skill: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", skillMult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "skill", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "skillMult", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "calculateExp" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!SkillsFormulas#calculateSkill:member(1)", - "docComment": "/**\n * Calculate skill level.\n *\n * @param exp - experience for that skill\n *\n * @param skillMult - Multiplier for that skill, defaults to 1.\n *\n * @returns The calculated skill level.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "calculateSkill(exp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", skillMult?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "exp", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "skillMult", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "calculateSkill" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Sleeve:interface", - "docComment": "/**\n * Sleeve API\n *\n * @remarks\n *\n * If you are not in BitNode-10, then you must have Source-File 10 in order to use this API.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface Sleeve " - } - ], - "releaseTag": "Public", - "name": "Sleeve", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#getInformation:member(1)", - "docComment": "/**\n * Get information about a sleeve.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return a struct containing tons of information about this sleeve\n *\n * @param sleeveNumber - Index of the sleeve to retrieve information.\n *\n * @returns Object containing tons of information about this sleeve.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getInformation(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "SleeveInformation", - "canonicalReference": "bitburner!SleeveInformation:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getInformation" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#getNumSleeves:member(1)", - "docComment": "/**\n * Get the number of sleeves you own.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return the number of duplicate sleeves the player has.\n *\n * @returns number of duplicate sleeves the player has.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getNumSleeves(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getNumSleeves" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#getSleeveAugmentations:member(1)", - "docComment": "/**\n * Get augmentations installed on a sleeve.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return a list of augmentation names that this sleeve has installed.\n *\n * @param sleeveNumber - Index of the sleeve to retrieve augmentations from.\n *\n * @returns List of augmentation names that this sleeve has installed.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSleeveAugmentations(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getSleeveAugmentations" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#getSleevePurchasableAugs:member(1)", - "docComment": "/**\n * List purchasable augs for a sleeve.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return a list of augmentations that the player can buy for this sleeve.\n *\n * @param sleeveNumber - Index of the sleeve to retrieve purchasable augmentations from.\n *\n * @returns List of augmentations that the player can buy for this sleeve.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSleevePurchasableAugs(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "AugmentPair", - "canonicalReference": "bitburner!AugmentPair:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getSleevePurchasableAugs" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#getSleeveStats:member(1)", - "docComment": "/**\n * Get the stats of a sleeve.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return a structure containing the stats of the sleeve.\n *\n * @param sleeveNumber - Index of the sleeve to get stats of.\n *\n * @returns Object containing the stats of the sleeve.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSleeveStats(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "SleeveSkills", - "canonicalReference": "bitburner!SleeveSkills:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getSleeveStats" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#getTask:member(1)", - "docComment": "/**\n * Get task of a sleeve.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return the current task that the sleeve is performing. type is set to “Idle” if the sleeve isn’t doing anything.\n *\n * @param sleeveNumber - Index of the sleeve to retrieve task from.\n *\n * @returns Object containing information the current task that the sleeve is performing.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getTask(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "SleeveTask", - "canonicalReference": "bitburner!SleeveTask:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getTask" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#purchaseSleeveAug:member(1)", - "docComment": "/**\n * Purchase an aug for a sleeve.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return true if the aug was purchased and installed on the sleeve.\n *\n * @param sleeveNumber - Index of the sleeve to buy an aug for.\n *\n * @param augName - Name of the aug to buy. Must be an exact match.\n *\n * @returns True if the aug was purchased and installed on the sleeve, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "purchaseSleeveAug(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", augName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "augName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "purchaseSleeveAug" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#setToCommitCrime:member(1)", - "docComment": "/**\n * Set a sleeve to commit crime.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not this action was set successfully.\n *\n * Returns false if an invalid action is specified.\n *\n * @param sleeveNumber - Index of the sleeve to start commiting crime.\n *\n * @param name - Name of the crime. Must be an exact match.\n *\n * @returns True if this action was set successfully, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setToCommitCrime(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "setToCommitCrime" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#setToCompanyWork:member(1)", - "docComment": "/**\n * Set a sleeve to work for a company.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not the sleeve started working or this company.\n *\n * @param sleeveNumber - Index of the sleeve to work for the company.\n *\n * @param companyName - Name of the company to work for.\n *\n * @returns True if the sleeve started working on this company, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setToCompanyWork(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", companyName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "companyName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "setToCompanyWork" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#setToFactionWork:member(1)", - "docComment": "/**\n * Set a sleeve to work for a faction.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not the sleeve started working or this faction.\n *\n * @param sleeveNumber - Index of the sleeve to work for the faction.\n *\n * @param factionName - Name of the faction to work for.\n *\n * @param factionWorkType - Name of the action to perform for this faction.\n *\n * @returns True if the sleeve started working on this faction, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setToFactionWork(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", factionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", factionWorkType: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "factionName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "factionWorkType", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "setToFactionWork" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#setToGymWorkout:member(1)", - "docComment": "/**\n * Set a sleeve to workout at the gym.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not the sleeve started working out.\n *\n * @param sleeveNumber - Index of the sleeve to workout at the gym.\n *\n * @param gymName - Name of the gym.\n *\n * @param stat - Name of the stat to train.\n *\n * @returns True if the sleeve started working out, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setToGymWorkout(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", gymName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", stat: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "gymName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "stat", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "setToGymWorkout" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#setToShockRecovery:member(1)", - "docComment": "/**\n * Set a sleeve to shock recovery.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not this action was set successfully.\n *\n * @param sleeveNumber - Index of the sleeve to start recovery.\n *\n * @returns True if this action was set successfully, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setToShockRecovery(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "setToShockRecovery" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#setToSynchronize:member(1)", - "docComment": "/**\n * Set a sleeve to synchronize.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not this action was set successfully.\n *\n * @param sleeveNumber - Index of the sleeve to start synchronizing.\n *\n * @returns True if this action was set successfully, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setToSynchronize(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "setToSynchronize" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#setToUniversityCourse:member(1)", - "docComment": "/**\n * Set a sleeve to take a class at a university.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not this action was set successfully.\n *\n * @param sleeveNumber - Index of the sleeve to start taking class.\n *\n * @param university - Name of the university to attend.\n *\n * @param className - Name of the class to follow.\n *\n * @returns True if this action was set successfully, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setToUniversityCourse(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", university: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", className: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "university", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "className", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "setToUniversityCourse" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Sleeve#travel:member(1)", - "docComment": "/**\n * Make a sleeve travel to another city.\n *\n * @remarks\n *\n * RAM cost: 4 GB\n *\n * Return a boolean indicating whether or not the sleeve reached destination.\n *\n * @param sleeveNumber - Index of the sleeve to travel.\n *\n * @param cityName - Name of the destination city.\n *\n * @returns True if the sleeve reached destination, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "travel(sleeveNumber: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sleeveNumber", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "travel" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!SleeveInformation:interface", - "docComment": "/**\n * Object representing sleeve information.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface SleeveInformation " - } - ], - "releaseTag": "Public", - "name": "SleeveInformation", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveInformation#city:member", - "docComment": "/**\n * Location of the sleeve\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "city: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "city", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveInformation#earningsForPlayer:member", - "docComment": "/**\n * Earnings synchronized to the player\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "earningsForPlayer: " - }, - { - "kind": "Reference", - "text": "SleeveWorkGains", - "canonicalReference": "bitburner!SleeveWorkGains:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "earningsForPlayer", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveInformation#earningsForSleeves:member", - "docComment": "/**\n * Earnings synchronized to other sleeves\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "earningsForSleeves: " - }, - { - "kind": "Reference", - "text": "SleeveWorkGains", - "canonicalReference": "bitburner!SleeveWorkGains:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "earningsForSleeves", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveInformation#earningsForTask:member", - "docComment": "/**\n * Earnings for this sleeve\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "earningsForTask: " - }, - { - "kind": "Reference", - "text": "SleeveWorkGains", - "canonicalReference": "bitburner!SleeveWorkGains:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "earningsForTask", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveInformation#hp:member", - "docComment": "/**\n * Current hp of the sleeve\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveInformation#jobs:member", - "docComment": "/**\n * Jobs available to the sleeve\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "jobs: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "jobs", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveInformation#jobTitle:member", - "docComment": "/**\n * Job titles available to the sleeve\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "jobTitle: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "jobTitle", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveInformation#maxHp:member", - "docComment": "/**\n * Max hp of the sleeve\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "maxHp: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "maxHp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveInformation#mult:member", - "docComment": "/**\n * Sleeve multipliers\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "mult: " - }, - { - "kind": "Reference", - "text": "CharacterMult", - "canonicalReference": "bitburner!CharacterMult:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "mult", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveInformation#timeWorked:member", - "docComment": "/**\n * Time spent on the current task in milliseconds\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "timeWorked: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "timeWorked", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveInformation#tor:member", - "docComment": "/**\n * Does this sleeve have access to the tor router\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "tor: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "tor", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveInformation#workRepGain:member", - "docComment": "/**\n * Faction or company reputation gained for the current task\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workRepGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workRepGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!SleeveSkills:interface", - "docComment": "/**\n * Object representing a sleeve stats.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface SleeveSkills " - } - ], - "releaseTag": "Public", - "name": "SleeveSkills", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveSkills#agility:member", - "docComment": "/**\n * Current agility of the sleeve\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "agility: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "agility", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveSkills#charisma:member", - "docComment": "/**\n * Current charisma of the sleeve\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "charisma: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "charisma", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveSkills#defense:member", - "docComment": "/**\n * Current defense of the sleeve\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "defense: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "defense", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveSkills#dexterity:member", - "docComment": "/**\n * Current dexterity of the sleeve\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "dexterity: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "dexterity", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveSkills#hacking:member", - "docComment": "/**\n * Current hacking skill of the sleeve\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hacking: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hacking", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveSkills#shock:member", - "docComment": "/**\n * Current shock of the sleeve [0-100]\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "shock: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "shock", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveSkills#strength:member", - "docComment": "/**\n * Current strength of the sleeve\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "strength: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "strength", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveSkills#sync:member", - "docComment": "/**\n * Current sync of the sleeve [0-100]\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sync: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "sync", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!SleeveTask:interface", - "docComment": "/**\n * Object representing a sleeve current task.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface SleeveTask " - } - ], - "releaseTag": "Public", - "name": "SleeveTask", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveTask#crime:member", - "docComment": "/**\n * Crime currently attempting, if any\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "crime: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "crime", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveTask#factionWorkType:member", - "docComment": "/**\n * Faction work type being performed, if any\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "factionWorkType: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "factionWorkType", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveTask#gymStatType:member", - "docComment": "/**\n * Stat being trained at the gym, if any\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "gymStatType: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "gymStatType", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveTask#location:member", - "docComment": "/**\n * Location of the task, if any\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "location: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "location", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveTask#task:member", - "docComment": "/**\n * Task type\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "task: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "task", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!SleeveWorkGains:interface", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface SleeveWorkGains " - } - ], - "releaseTag": "Public", - "name": "SleeveWorkGains", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveWorkGains#workAgiExpGain:member", - "docComment": "/**\n * Agility exp gained from work\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workAgiExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workAgiExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveWorkGains#workChaExpGain:member", - "docComment": "/**\n * Charisma exp gained from work\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workChaExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workChaExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveWorkGains#workDefExpGain:member", - "docComment": "/**\n * Defense exp gained from work,\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workDefExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workDefExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveWorkGains#workDexExpGain:member", - "docComment": "/**\n * Dexterity exp gained from work\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workDexExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workDexExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveWorkGains#workHackExpGain:member", - "docComment": "/**\n * Hacking exp gained from work\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workHackExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workHackExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveWorkGains#workMoneyGain:member", - "docComment": "/**\n * Money gained from work\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workMoneyGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workMoneyGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SleeveWorkGains#workStrExpGain:member", - "docComment": "/**\n * Strength exp gained from work\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "workStrExpGain: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "workStrExpGain", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!SourceFileLvl:interface", - "docComment": "/**\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface SourceFileLvl " - } - ], - "releaseTag": "Public", - "name": "SourceFileLvl", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SourceFileLvl#lvl:member", - "docComment": "/**\n * The level of the source file\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "lvl: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "lvl", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!SourceFileLvl#n:member", - "docComment": "/**\n * The number of the source file\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "n: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "n", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Stanek:interface", - "docComment": "/**\n * Stanek's Gift API.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface Stanek " - } - ], - "releaseTag": "Public", - "name": "Stanek", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Stanek#activeFragments:member(1)", - "docComment": "/**\n * List of fragments in Stanek's Gift.\n *\n * @remarks\n *\n * RAM cost: 5 GB\n *\n * @returns List of active fragments placed on Stanek's Gift.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "activeFragments(): " - }, - { - "kind": "Reference", - "text": "ActiveFragment", - "canonicalReference": "bitburner!ActiveFragment:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "activeFragments" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Stanek#canPlace:member(1)", - "docComment": "/**\n * Check if fragment can be placed at specified location.\n *\n * @remarks\n *\n * RAM cost: 0.5 GB\n *\n * @param rootX - rootX Root X against which to align the top left of the fragment.\n *\n * @param rootY - rootY Root Y against which to align the top left of the fragment.\n *\n * @param rotation - rotation A number from 0 to 3, the mount of 90 degree turn to take.\n *\n * @param fragmentId - fragmentId ID of the fragment to place.\n *\n * @returns true if the fragment can be placed at that position. false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "canPlace(rootX: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", rootY: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", rotation: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", fragmentId: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "rootX", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "rootY", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "rotation", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "fragmentId", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - } - ], - "name": "canPlace" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Stanek#charge:member(1)", - "docComment": "/**\n * Charge a fragment, increasing its power.\n *\n * @remarks\n *\n * RAM cost: 0.4 GB\n *\n * @param rootX - rootX Root X against which to align the top left of the fragment.\n *\n * @param rootY - rootY Root Y against which to align the top left of the fragment.\n *\n * @returns Promise that lasts until the charge action is over.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "charge(rootX: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", rootY: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "rootX", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "rootY", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "charge" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Stanek#clear:member(1)", - "docComment": "/**\n * Clear the board of all fragments.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "clear(): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "clear" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Stanek#fragmentDefinitions:member(1)", - "docComment": "/**\n * List possible fragments.\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @returns List of possible fragments.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "fragmentDefinitions(): " - }, - { - "kind": "Reference", - "text": "Fragment", - "canonicalReference": "bitburner!Fragment:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "fragmentDefinitions" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Stanek#get:member(1)", - "docComment": "/**\n * Get placed fragment at location.\n *\n * @remarks\n *\n * RAM cost: 5 GB\n *\n * @param rootX - X against which to align the top left of the fragment.\n *\n * @param rootY - Y against which to align the top left of the fragment.\n *\n * @returns The fragment at [rootX, rootY], if any.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "get(rootX: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", rootY: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "ActiveFragment", - "canonicalReference": "bitburner!ActiveFragment:interface" - }, - { - "kind": "Content", - "text": " | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "rootX", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "rootY", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "get" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Stanek#height:member(1)", - "docComment": "/**\n * Stanek's Gift height.\n *\n * @remarks\n *\n * RAM cost: 0.4 GB\n *\n * @returns The height of the gift.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "height(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "height" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Stanek#place:member(1)", - "docComment": "/**\n * Place fragment on Stanek's Gift.\n *\n * @remarks\n *\n * RAM cost: 5 GB\n *\n * @param rootX - X against which to align the top left of the fragment.\n *\n * @param rootY - Y against which to align the top left of the fragment.\n *\n * @param rotation - A number from 0 to 3, the mount of 90 degree turn to take.\n *\n * @param fragmentId - ID of the fragment to place.\n *\n * @returns true if the fragment can be placed at that position. false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "place(rootX: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", rootY: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", rotation: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", fragmentId: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "rootX", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "rootY", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "rotation", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "fragmentId", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - } - ], - "name": "place" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Stanek#remove:member(1)", - "docComment": "/**\n * Remove fragment at location.\n *\n * @remarks\n *\n * RAM cost: 0.15 GB\n *\n * @param rootX - X against which to align the top left of the fragment.\n *\n * @param rootY - Y against which to align the top left of the fragment.\n *\n * @returns The fragment at [rootX, rootY], if any.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "remove(rootX: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", rootY: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "rootX", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "rootY", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "remove" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!Stanek#width:member(1)", - "docComment": "/**\n * Stanek's Gift width.\n *\n * @remarks\n *\n * RAM cost: 0.4 GB\n *\n * @returns The width of the gift.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "width(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "width" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!StockOrder:interface", - "docComment": "/**\n * Return value of {@link TIX.getOrders | getOrders}\n *\n * Keys are stock symbols, properties are arrays of {@link StockOrderObject}\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface StockOrder " - } - ], - "releaseTag": "Public", - "name": "StockOrder", - "members": [ - { - "kind": "IndexSignature", - "canonicalReference": "bitburner!StockOrder:index(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "[key: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "]: " - }, - { - "kind": "Reference", - "text": "StockOrderObject", - "canonicalReference": "bitburner!StockOrderObject:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "key", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ] - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!StockOrderObject:interface", - "docComment": "/**\n * Value in map of {@link StockOrder}\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface StockOrderObject " - } - ], - "releaseTag": "Public", - "name": "StockOrderObject", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!StockOrderObject#position:member", - "docComment": "/**\n * Order position\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "position: " - }, - { - "kind": "Reference", - "text": "PositionTypes", - "canonicalReference": "bitburner!PositionTypes:enum" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "position", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!StockOrderObject#price:member", - "docComment": "/**\n * Price per share\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "price: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "price", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!StockOrderObject#shares:member", - "docComment": "/**\n * Number of shares\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "shares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "shares", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!StockOrderObject#type:member", - "docComment": "/**\n * Order type\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "type: " - }, - { - "kind": "Reference", - "text": "OrderTypes", - "canonicalReference": "bitburner!OrderTypes:enum" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "type", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!TIX:interface", - "docComment": "/**\n * Stock market API\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface TIX " - } - ], - "releaseTag": "Public", - "name": "TIX", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#buy:member(1)", - "docComment": "/**\n * Buy stocks.\n *\n * @remarks\n *\n * RAM cost: 2.5 GB Attempts to purchase shares of a stock using a Market Order.\n *\n * If the player does not have enough money to purchase the specified number of shares, then no shares will be purchased. Remember that every transaction on the stock exchange costs a certain commission fee.\n *\n * If this function successfully purchases the shares, it will return the stock price at which each share was purchased. Otherwise, it will return 0.\n *\n * @param sym - Stock symbol.\n *\n * @param shares - Number of shares to purchased. Must be positive. Will be rounded to nearest integer.\n *\n * @returns The stock price at which each share was purchased, otherwise 0 if the shares weren't purchased.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "buy(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", shares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "shares", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "buy" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#cancelOrder:member(1)", - "docComment": "/**\n * Cancel order for stocks.\n *\n * @remarks\n *\n * RAM cost: 2.5 GB Cancels an oustanding Limit or Stop order on the stock market.\n *\n * The ability to use limit and stop orders is **not** immediately available to the player and must be unlocked later on in the game.\n *\n * @param sym - Stock symbol.\n *\n * @param shares - Number of shares for order. Must be positive. Will be rounded to nearest integer.\n *\n * @param price - Execution price for the order.\n *\n * @param type - Type of order.\n *\n * @param pos - Specifies whether the order is a “Long” or “Short” position.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "cancelOrder(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", shares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", price: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", pos: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 11, - "endIndex": 12 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "shares", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "price", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - }, - { - "parameterName": "pos", - "parameterTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - } - } - ], - "name": "cancelOrder" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#getAskPrice:member(1)", - "docComment": "/**\n * Returns the ask price of that stock.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * @param sym - Stock symbol.\n *\n * @returns The ask price of a stock.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getAskPrice(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getAskPrice" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#getBidPrice:member(1)", - "docComment": "/**\n * Returns the bid price of that stock.\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * @param sym - Stock symbol.\n *\n * @returns The bid price of a stock.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getBidPrice(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getBidPrice" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#getForecast:member(1)", - "docComment": "/**\n * Returns the probability that the specified stock’s price will increase (as opposed to decrease) during the next tick.\n *\n * @remarks\n *\n * RAM cost: 2.5 GB The probability is returned as a decimal value, NOT a percentage (e.g. if a stock has a 60% chance of increasing, then this function will return 0.6, NOT 60).\n *\n * In other words, if this function returned 0.30 for a stock, then this means that the stock’s price has a 30% chance of increasing and a 70% chance of decreasing during the next tick.\n *\n * In order to use this function, you must first purchase access to the Four Sigma (4S) Market Data TIX API.\n *\n * @param sym - Stock symbol.\n *\n * @returns Probability that the specified stock’s price will increase (as opposed to decrease) during the next tick.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getForecast(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getForecast" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#getMaxShares:member(1)", - "docComment": "/**\n * Returns the maximum number of shares of a stock.\n *\n * @remarks\n *\n * RAM cost: 2 GB This is the maximum amount of the stock that can be purchased in both the Long and Short positions combined.\n *\n * @param sym - Stock symbol.\n *\n * @returns Maximum number of shares that the stock has.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getMaxShares(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getMaxShares" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#getOrders:member(1)", - "docComment": "/**\n * Returns your order book for the stock market.\n *\n * @remarks\n *\n * RAM cost: 2.5 GB This is an object containing information for all the Limit and Stop Orders you have in the stock market. For each symbol you have a position in, the returned object will have a key with that symbol's name. The object's properties are each an array of {@link StockOrderObject} The object has the following structure:\n * ```ts\n * {\n * string1: [ // Array of orders for this stock\n * {\n * shares: Order quantity\n * price: Order price\n * type: Order type\n * position: Either \"L\" or \"S\" for Long or Short position\n * },\n * {\n * ...\n * },\n * ...\n * ],\n * string2: [ // Array of orders for this stock\n * ...\n * ],\n * ...\n * }\n * ```\n *\n * The “Order type” property can have one of the following four values: \"Limit Buy Order\", \"Limit Sell Order\", \"Stop Buy Order\", \"Stop Sell Order\". Note that the order book will only contain information for stocks that you actually have orders in.\n *\n * @returns Object containing information for all the Limit and Stop Orders you have in the stock market.\n *\n * @example\n * ```ts\n * \"If you do not have orders in Nova Medical (NVMD), then the returned object will not have a “NVMD” property.\"\n * {\n * ECP: [\n * {\n * shares: 5,\n * price: 100,000\n * type: \"Stop Buy Order\",\n * position: \"S\",\n * },\n * {\n * shares: 25,\n * price: 125,000\n * type: \"Limit Sell Order\",\n * position: \"L\",\n * },\n * ],\n * SYSC: [\n * {\n * shares: 100,\n * price: 10,000\n * type: \"Limit Buy Order\",\n * position: \"L\",\n * },\n * ],\n * }\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getOrders(): " - }, - { - "kind": "Reference", - "text": "StockOrder", - "canonicalReference": "bitburner!StockOrder:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getOrders" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#getPosition:member(1)", - "docComment": "/**\n * Returns the player’s position in a stock.\n *\n * @remarks\n *\n * RAM cost: 2 GB Returns an array of four elements that represents the player’s position in a stock.\n *\n * The first element is the returned array is the number of shares the player owns of the stock in the Long position. The second element in the array is the average price of the player’s shares in the Long position.\n *\n * The third element in the array is the number of shares the player owns of the stock in the Short position. The fourth element in the array is the average price of the player’s Short position.\n *\n * All elements in the returned array are numeric.\n *\n * @param sym - Stock symbol.\n *\n * @returns Array of four elements that represents the player’s position in a stock.\n *\n * @example\n * ```ts\n * // NS1\n * var pos = stock.getPosition(\"ECP\");\n * var shares = pos[0];\n * var avgPx = pos[1];\n * var sharesShort = pos[2];\n * var avgPxShort = pos[3];\n * ```\n *\n * @example\n * ```ts\n * // NS2\n * const [shares, avgPx, sharesShort, avgPxShort] = ns.stock.getPosition(\"ECP\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getPosition(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "[number, number, number, number]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getPosition" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#getPrice:member(1)", - "docComment": "/**\n * Returns the price of a stock\n *\n * @remarks\n *\n * RAM cost: 2 GB The stock’s price is the average of its bid and ask price.\n *\n * @param sym - Stock symbol.\n *\n * @returns The price of a stock.\n *\n * @example\n * ```ts\n * // NS1\n * stock.getPrice(\"FISG\");\n * ```\n *\n * @example\n * ```ts\n * // NS2\n * ns.stock.getPrice(\"FISG\");\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getPrice(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getPrice" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#getPurchaseCost:member(1)", - "docComment": "/**\n * Calculates cost of buying stocks.\n *\n * @remarks\n *\n * RAM cost: 2 GB Calculates and returns how much it would cost to buy a given number of shares of a stock. This takes into account spread, large transactions influencing the price of the stock and commission fees.\n *\n * @param sym - Stock symbol.\n *\n * @param shares - Number of shares to purchase.\n *\n * @param posType - Specifies whether the order is a “Long” or “Short” position.\n *\n * @returns Cost to buy a given number of shares of a stock.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getPurchaseCost(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", shares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", posType: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "shares", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "posType", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "getPurchaseCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#getSaleGain:member(1)", - "docComment": "/**\n * Calculate profit of selling stocks.\n *\n * @remarks\n *\n * RAM cost: 2 GB Calculates and returns how much you would gain from selling a given number of shares of a stock. This takes into account spread, large transactions influencing the price of the stock and commission fees.\n *\n * @param sym - Stock symbol.\n *\n * @param shares - Number of shares to sell.\n *\n * @param posType - Specifies whether the order is a “Long” or “Short” position.\n *\n * @returns Gain from selling a given number of shares of a stock.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSaleGain(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", shares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", posType: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "shares", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "posType", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "getSaleGain" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#getSymbols:member(1)", - "docComment": "/**\n * Returns an array of the symbols of the tradable stocks\n *\n * @remarks\n *\n * RAM cost: 2 GB\n *\n * @returns Array of the symbols of the tradable stocks.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSymbols(): " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getSymbols" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#getVolatility:member(1)", - "docComment": "/**\n * Returns the volatility of the specified stock.\n *\n * @remarks\n *\n * RAM cost: 2.5 GB Volatility represents the maximum percentage by which a stock’s price can change every tick. The volatility is returned as a decimal value, NOT a percentage (e.g. if a stock has a volatility of 3%, then this function will return 0.03, NOT 3).\n *\n * In order to use this function, you must first purchase access to the Four Sigma (4S) Market Data TIX API.\n *\n * @param sym - Stock symbol.\n *\n * @returns Volatility of the specified stock.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getVolatility(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getVolatility" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#placeOrder:member(1)", - "docComment": "/**\n * Place order for stocks.\n *\n * @remarks\n *\n * RAM cost: 2.5 GB Places an order on the stock market. This function only works for Limit and Stop Orders.\n *\n * The ability to place limit and stop orders is **not** immediately available to the player and must be unlocked later on in the game.\n *\n * Returns true if the order is successfully placed, and false otherwise.\n *\n * @param sym - Stock symbol.\n *\n * @param shares - Number of shares for order. Must be positive. Will be rounded to nearest integer.\n *\n * @param price - Execution price for the order.\n *\n * @param type - Type of order.\n *\n * @param pos - Specifies whether the order is a “Long” or “Short” position.\n *\n * @returns True if the order is successfully placed, and false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "placeOrder(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", shares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", price: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", type: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", pos: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 11, - "endIndex": 12 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "shares", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "price", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - }, - { - "parameterName": "pos", - "parameterTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - } - } - ], - "name": "placeOrder" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#purchase4SMarketData:member(1)", - "docComment": "/**\n * Purchase 4S Market Data Access.\n *\n * @remarks\n *\n * RAM cost: 2.5 GB\n *\n * @returns True if you successfully purchased it or if you already have access, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "purchase4SMarketData(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "purchase4SMarketData" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#purchase4SMarketDataTixApi:member(1)", - "docComment": "/**\n * Purchase 4S Market Data TIX API Access.\n *\n * @remarks\n *\n * RAM cost: 2.5 GB\n *\n * @returns True if you successfully purchased it or if you already have access, false otherwise.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "purchase4SMarketDataTixApi(): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "purchase4SMarketDataTixApi" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#sell:member(1)", - "docComment": "/**\n * Sell stocks.\n *\n * @remarks\n *\n * RAM cost: 2.5 GB Attempts to sell shares of a stock using a Market Order.\n *\n * If the specified number of shares in the function exceeds the amount that the player actually owns, then this function will sell all owned shares. Remember that every transaction on the stock exchange costs a certain commission fee.\n *\n * The net profit made from selling stocks with this function is reflected in the script’s statistics. This net profit is calculated as:\n *\n * shares * (sell_price - average_price_of_purchased_shares)\n *\n * If the sale is successful, this function will return the stock price at which each share was sold. Otherwise, it will return 0.\n *\n * @param sym - Stock symbol.\n *\n * @param shares - Number of shares to sell. Must be positive. Will be rounded to nearest integer.\n *\n * @returns The stock price at which each share was sold, otherwise 0 if the shares weren't sold.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sell(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", shares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "shares", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "sell" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#sellShort:member(1)", - "docComment": "/**\n * Sell short stock.\n *\n * @remarks\n *\n * RAM cost: 2.5 GB Attempts to sell a short position of a stock using a Market Order.\n *\n * The ability to short a stock is **not** immediately available to the player and must be unlocked later on in the game.\n *\n * If the specified number of shares exceeds the amount that the player actually owns, then this function will sell all owned shares. Remember that every transaction on the stock exchange costs a certain commission fee.\n *\n * If the sale is successful, this function will return the stock price at which each share was sold. Otherwise it will return 0.\n *\n * @param sym - Stock symbol.\n *\n * @param shares - Number of shares to sell. Must be positive. Will be rounded to nearest integer.\n *\n * @returns The stock price at which each share was sold, otherwise 0 if the shares weren't sold.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sellShort(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", shares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "shares", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "sellShort" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!TIX#short:member(1)", - "docComment": "/**\n * Short stocks.\n *\n * @remarks\n *\n * RAM cost: 2.5 GB Attempts to purchase a short position of a stock using a Market Order.\n *\n * The ability to short a stock is **not** immediately available to the player and must be unlocked later on in the game.\n *\n * If the player does not have enough money to purchase the specified number of shares, then no shares will be purchased. Remember that every transaction on the stock exchange costs a certain commission fee.\n *\n * If the purchase is successful, this function will return the stock price at which each share was purchased. Otherwise, it will return 0.\n *\n * @param sym - Stock symbol.\n *\n * @param shares - Number of shares to short. Must be positive. Will be rounded to nearest integer.\n *\n * @returns The stock price at which each share was purchased, otherwise 0 if the shares weren't purchased.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "short(sym: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", shares: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sym", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "shares", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "short" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!UserInterface:interface", - "docComment": "/**\n * User Interface API.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface UserInterface " - } - ], - "releaseTag": "Public", - "name": "UserInterface", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!UserInterface#getGameInfo:member(1)", - "docComment": "/**\n * Gets the current game information (version, commit, ...)\n *\n * @remarks\n *\n * RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getGameInfo(): " - }, - { - "kind": "Reference", - "text": "GameInfo", - "canonicalReference": "bitburner!GameInfo:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getGameInfo" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!UserInterface#getStyles:member(1)", - "docComment": "/**\n * Get the current styles\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @returns An object containing the player's styles\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getStyles(): " - }, - { - "kind": "Reference", - "text": "IStyleSettings", - "canonicalReference": "bitburner!IStyleSettings:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getStyles" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!UserInterface#getTheme:member(1)", - "docComment": "/**\n * Get the current theme\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @returns An object containing the theme's colors\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getTheme(): " - }, - { - "kind": "Reference", - "text": "UserInterfaceTheme", - "canonicalReference": "bitburner!UserInterfaceTheme:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getTheme" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!UserInterface#resetStyles:member(1)", - "docComment": "/**\n * Resets the player's styles to the default values\n *\n * @remarks\n *\n * RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "resetStyles(): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "resetStyles" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!UserInterface#resetTheme:member(1)", - "docComment": "/**\n * Resets the player's theme to the default values\n *\n * @remarks\n *\n * RAM cost: 0 GB\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "resetTheme(): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "resetTheme" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!UserInterface#setStyles:member(1)", - "docComment": "/**\n * Sets the current styles\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @example\n *\n * Usage example (NS2)\n * ```ts\n * const styles = ns.ui.getStyles();\n * styles.fontFamily = 'Comic Sans Ms';\n * ns.ui.setStyles(styles);\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setStyles(newStyles: " - }, - { - "kind": "Reference", - "text": "IStyleSettings", - "canonicalReference": "bitburner!IStyleSettings:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "newStyles", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "setStyles" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!UserInterface#setTheme:member(1)", - "docComment": "/**\n * Sets the current theme\n *\n * @remarks\n *\n * RAM cost: 0 GB\n *\n * @example\n *\n * Usage example (NS2)\n * ```ts\n * const theme = ns.ui.getTheme();\n * theme.primary = '#ff5500';\n * ns.ui.setTheme(theme);\n * ```\n *\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setTheme(newTheme: " - }, - { - "kind": "Reference", - "text": "UserInterfaceTheme", - "canonicalReference": "bitburner!UserInterfaceTheme:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "newTheme", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "setTheme" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!Warehouse:interface", - "docComment": "/**\n * Warehouse for a division in a city\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "interface Warehouse " - } - ], - "releaseTag": "Public", - "name": "Warehouse", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Warehouse#level:member", - "docComment": "/**\n * Amount of size upgrade bought\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "level: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "level", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Warehouse#loc:member", - "docComment": "/**\n * City in which the warehouse is located\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "loc: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "loc", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Warehouse#size:member", - "docComment": "/**\n * Total space in the warehouse\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "size: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "size", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Warehouse#sizeUsed:member", - "docComment": "/**\n * Used space in the warehouse\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sizeUsed: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "sizeUsed", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "bitburner!Warehouse#smartSupplyEnabled:member", - "docComment": "/**\n * Smart Supply status in the warehouse\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "smartSupplyEnabled: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "smartSupplyEnabled", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "bitburner!WarehouseAPI:interface", - "docComment": "/**\n * Corporation Warehouse API\n *\n * @remarks\n *\n * Requires the Warehouse API upgrade from your corporation.\n *\n * @public\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface WarehouseAPI " - } - ], - "releaseTag": "Public", - "name": "WarehouseAPI", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#buyMaterial:member(1)", - "docComment": "/**\n * Set material buy data\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @param materialName - Name of the material\n *\n * @param amt - Amount of material to buy\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "buyMaterial(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", materialName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", amt: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "materialName", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "amt", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - } - ], - "name": "buyMaterial" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#cancelExportMaterial:member(1)", - "docComment": "/**\n * Cancel material export\n *\n * @param sourceDivision - Source division\n *\n * @param sourceCity - Source city\n *\n * @param targetDivision - Target division\n *\n * @param targetCity - Target city\n *\n * @param materialName - Name of the material\n *\n * @param amt - Amount of material to export.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "cancelExportMaterial(\n sourceDivision: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n sourceCity: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n targetDivision: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n targetCity: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n materialName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n amt: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ",\n ): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 13, - "endIndex": 14 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sourceDivision", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "sourceCity", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "targetDivision", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "targetCity", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - }, - { - "parameterName": "materialName", - "parameterTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - } - }, - { - "parameterName": "amt", - "parameterTypeTokenRange": { - "startIndex": 11, - "endIndex": 12 - } - } - ], - "name": "cancelExportMaterial" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#discontinueProduct:member(1)", - "docComment": "/**\n * Discontinue a product.\n *\n * @param divisionName - Name of the division\n *\n * @param productName - Name of the product\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "discontinueProduct(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", productName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "productName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "discontinueProduct" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#exportMaterial:member(1)", - "docComment": "/**\n * Set material export data\n *\n * @param sourceDivision - Source division\n *\n * @param sourceCity - Source city\n *\n * @param targetDivision - Target division\n *\n * @param targetCity - Target city\n *\n * @param materialName - Name of the material\n *\n * @param amt - Amount of material to export.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "exportMaterial(\n sourceDivision: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n sourceCity: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n targetDivision: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n targetCity: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n materialName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n amt: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ",\n ): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 13, - "endIndex": 14 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "sourceDivision", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "sourceCity", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "targetDivision", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "targetCity", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - }, - { - "parameterName": "materialName", - "parameterTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - } - }, - { - "parameterName": "amt", - "parameterTypeTokenRange": { - "startIndex": 11, - "endIndex": 12 - } - } - ], - "name": "exportMaterial" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#getMaterial:member(1)", - "docComment": "/**\n * Get material data\n *\n * @param divisionName - Name of the division\n *\n * @param materialName - Name of the material\n *\n * @returns material data\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getMaterial(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", materialName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Material", - "canonicalReference": "bitburner!Material:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "materialName", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "getMaterial" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#getProduct:member(1)", - "docComment": "/**\n * Get product data\n *\n * @param divisionName - Name of the division\n *\n * @param productName - Name of the product\n *\n * @returns product data\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getProduct(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", productName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Product", - "canonicalReference": "bitburner!Product:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "productName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getProduct" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#getPurchaseWarehouseCost:member(1)", - "docComment": "/**\n * Gets the cost to purchase a warehouse\n *\n * @returns cost\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getPurchaseWarehouseCost(): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getPurchaseWarehouseCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#getUpgradeWarehouseCost:member(1)", - "docComment": "/**\n * Gets the cost to upgrade a warehouse to the next level\n *\n * @returns cost to upgrade\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getUpgradeWarehouseCost(adivisionName: " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": ", acityName: " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "adivisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "acityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getUpgradeWarehouseCost" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#getWarehouse:member(1)", - "docComment": "/**\n * Get warehouse data\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @returns warehouse data\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "getWarehouse(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Warehouse", - "canonicalReference": "bitburner!Warehouse:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getWarehouse" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#hasWarehouse:member(1)", - "docComment": "/**\n * Check if you have a warehouse in city\n *\n * @returns true if warehouse is present, false if not\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "hasWarehouse(adivisionName: " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": ", acityName: " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "adivisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "acityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "hasWarehouse" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#makeProduct:member(1)", - "docComment": "/**\n * Create a new product\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @param productName - Name of the product\n *\n * @param designInvest - Amount to invest for the design of the product.\n *\n * @param marketingInvest - Amount to invest for the marketing of the product.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "makeProduct(\n divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n productName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n designInvest: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ",\n marketingInvest: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ",\n ): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 11, - "endIndex": 12 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "productName", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "designInvest", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - }, - { - "parameterName": "marketingInvest", - "parameterTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - } - } - ], - "name": "makeProduct" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#purchaseWarehouse:member(1)", - "docComment": "/**\n * Purchase warehouse for a new city\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "purchaseWarehouse(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "purchaseWarehouse" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#sellMaterial:member(1)", - "docComment": "/**\n * Set material sell data.\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @param materialName - Name of the material\n *\n * @param amt - Amount to sell, can be \"MAX\"\n *\n * @param price - Price to sell, can be \"MP\"\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sellMaterial(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", materialName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", amt: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", price: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 11, - "endIndex": 12 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "materialName", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "amt", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - }, - { - "parameterName": "price", - "parameterTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - } - } - ], - "name": "sellMaterial" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#sellProduct:member(1)", - "docComment": "/**\n * Set product sell data.\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @param productName - Name of the product\n *\n * @param amt - Amount to sell, can be \"MAX\"\n *\n * @param price - Price to sell, can be \"MP\"\n *\n * @param all - Sell in all city\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sellProduct(\n divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n productName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n amt: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n price: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ",\n all: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ",\n ): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 13, - "endIndex": 14 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "productName", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "amt", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - }, - { - "parameterName": "price", - "parameterTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - } - }, - { - "parameterName": "all", - "parameterTypeTokenRange": { - "startIndex": 11, - "endIndex": 12 - } - } - ], - "name": "sellProduct" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#setMaterialMarketTA1:member(1)", - "docComment": "/**\n * Set market TA 1 for a material.\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @param materialName - Name of the material\n *\n * @param on - market ta enabled\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setMaterialMarketTA1(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", materialName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", on: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "materialName", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "on", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - } - ], - "name": "setMaterialMarketTA1" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#setMaterialMarketTA2:member(1)", - "docComment": "/**\n * Set market TA 2 for a material.\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @param materialName - Name of the material\n *\n * @param on - market ta enabled\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setMaterialMarketTA2(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", materialName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", on: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 9, - "endIndex": 10 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "materialName", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - }, - { - "parameterName": "on", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - } - ], - "name": "setMaterialMarketTA2" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#setProductMarketTA1:member(1)", - "docComment": "/**\n * Set market TA 1 for a product.\n *\n * @param divisionName - Name of the division\n *\n * @param productName - Name of the product\n *\n * @param on - market ta enabled\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setProductMarketTA1(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", productName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", on: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "productName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "on", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "setProductMarketTA1" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#setProductMarketTA2:member(1)", - "docComment": "/**\n * Set market TA 2 for a product.\n *\n * @param divisionName - Name of the division\n *\n * @param productName - Name of the product\n *\n * @param on - market ta enabled\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setProductMarketTA2(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", productName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", on: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "productName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "on", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "setProductMarketTA2" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#setSmartSupply:member(1)", - "docComment": "/**\n * Set smart supply\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n *\n * @param enabled - smart supply enabled\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "setSmartSupply(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", enabled: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "enabled", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "setSmartSupply" - }, - { - "kind": "MethodSignature", - "canonicalReference": "bitburner!WarehouseAPI#upgradeWarehouse:member(1)", - "docComment": "/**\n * Upgrade warehouse\n *\n * @param divisionName - Name of the division\n *\n * @param cityName - Name of the city\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "upgradeWarehouse(divisionName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", cityName: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "divisionName", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "cityName", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "upgradeWarehouse" - } - ], - "extendsTokenRanges": [] - } - ] - } - ] -} diff --git a/package.json b/package.json index 6164663fa..b2b0f22b8 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "cy:dev": "start-server-and-test start:dev http://localhost:8000 cy:open", "cy:open": "cypress open", "cy:run": "cypress run", - "doc": "npx api-extractor run && npx api-documenter markdown", + "doc": "npx api-extractor run && npx api-documenter markdown && rm input/bitburner.api.json && rm -r input", "format": "prettier --write .", "start": "http-server -p 8000", "start:dev": "webpack-dev-server --progress --env.devServer --mode development",