bitburner-src/temp/bitburner.api.md

1350 lines
33 KiB
Markdown
Raw Normal View History

2021-10-30 18:34:14 +02:00
## API Report File for "bitburner"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface AugmentationStats {
agility_exp_mult?: number;
agility_mult?: number;
bladeburner_analysis_mult?: number;
bladeburner_max_stamina_mult?: number;
bladeburner_stamina_gain_mult?: number;
bladeburner_success_chance_mult?: number;
charisma_exp_mult?: number;
charisma_mult?: number;
company_rep_mult?: number;
crime_money_mult?: number;
crime_success_mult?: number;
defense_exp_mult?: number;
defense_mult?: number;
dexterity_exp_mult?: number;
dexterity_mult?: number;
faction_rep_mult?: number;
hacking_chance_mult?: number;
hacking_exp_mult?: number;
hacking_grow_mult?: number;
hacking_money_mult?: number;
hacking_mult?: number;
hacking_speed_mult?: number;
hacknet_node_core_cost_mult?: number;
hacknet_node_level_cost_mult?: number;
hacknet_node_money_mult?: number;
hacknet_node_purchase_cost_mult?: number;
hacknet_node_ram_cost_mult?: number;
strength_exp_mult?: number;
strength_mult?: number;
work_money_mult?: number;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type AugmentName =
| "Augmented Targeting I"
| "Augmented Targeting II"
| "Augmented Targeting III"
| "Synthetic Heart"
| "Synfibril Muscle"
| "Combat Rib I"
| "Combat Rib II"
| "Combat Rib III"
| "Nanofiber Weave"
| "NEMEAN Subdermal Weave"
| "Wired Reflexes"
| "Graphene Bone Lacings"
| "Bionic Spine"
| "Graphene Bionic Spine Upgrade"
| "Bionic Legs"
| "Graphene Bionic Legs Upgrade"
| "Speech Processor Implant"
| "TITN-41 Gene-Modification Injection"
| "Enhanced Social Interaction Implant"
| "BitWire"
| "Artificial Bio-neural Network Implant"
| "Artificial Synaptic Potentiation"
| "Enhanced Myelin Sheathing"
| "Synaptic Enhancement Implant"
| "Neural-Retention Enhancement"
| "DataJack"
| "Embedded Netburner Module"
| "Embedded Netburner Module Core Implant"
| "Embedded Netburner Module Core V2 Upgrade"
| "Embedded Netburner Module Core V3 Upgrade"
| "Embedded Netburner Module Analyze Engine"
| "Embedded Netburner Module Direct Memory Access Upgrade"
| "Neuralstimulator"
| "Neural Accelerator"
| "Cranial Signal Processors - Gen I"
| "Cranial Signal Processors - Gen II"
| "Cranial Signal Processors - Gen III"
| "Cranial Signal Processors - Gen IV"
| "Cranial Signal Processors - Gen V"
| "Neuronal Densification"
| "Nuoptimal Nootropic Injector Implant"
| "Speech Enhancement"
| "FocusWire"
| "PC Direct-Neural Interface"
| "PC Direct-Neural Interface Optimization Submodule"
| "PC Direct-Neural Interface NeuroNet Injector"
| "ADR-V1 Pheromone Gene"
| "ADR-V2 Pheromone Gene"
| "The Shadow's Simulacrum"
| "Hacknet Node CPU Architecture Neural-Upload"
| "Hacknet Node Cache Architecture Neural-Upload"
| "Hacknet Node NIC Architecture Neural-Upload"
| "Hacknet Node Kernel Direct-Neural Interface"
| "Hacknet Node Core Direct-Neural Interface"
| "NeuroFlux Governor"
| "Neurotrainer I"
| "Neurotrainer II"
| "Neurotrainer III"
| "HyperSight Corneal Implant"
| "LuminCloaking-V1 Skin Implant"
| "LuminCloaking-V2 Skin Implant"
| "HemoRecirculator"
| "SmartSonar Implant"
| "Power Recirculation Core"
| "QLink"
| "The Red Pill"
| "SPTN-97 Gene Modification"
| "ECorp HVMind Implant"
| "CordiARC Fusion Reactor"
| "SmartJaw"
| "Neotra"
| "Xanipher"
| "nextSENS Gene Modification"
| "OmniTek InfoLoad"
| "Photosynthetic Cells"
| "BitRunners Neurolink"
| "The Black Hand"
| "CRTX42-AA Gene Modification"
| "Neuregen Gene Modification"
| "CashRoot Starter Kit"
| "NutriGen Implant"
| "INFRARET Enhancement"
| "DermaForce Particle Barrier"
| "Graphene BranchiBlades Upgrade"
| "Graphene Bionic Arms Upgrade"
| "BrachiBlades"
| "Bionic Arms"
| "Social Negotiation Assistant (S.N.A)"
| "EsperTech Bladeburner Eyewear"
| "EMS-4 Recombination"
| "ORION-MKIV Shoulder"
| "Hyperion Plasma Cannon V1"
| "Hyperion Plasma Cannon V2"
| "GOLEM Serum"
| "Vangelis Virus"
| "Vangelis Virus 3.0"
| "I.N.T.E.R.L.I.N.K.E.D"
| "Blade's Runners"
| "BLADE-51b Tesla Armor"
| "BLADE-51b Tesla Armor: Power Cells Upgrade"
| "BLADE-51b Tesla Armor: Energy Shielding Upgrade"
| "BLADE-51b Tesla Armor: Unibeam Upgrade"
| "BLADE-51b Tesla Armor: Omnibeam Upgrade"
| "BLADE-51b Tesla Armor: IPU Upgrade"
| "The Blade's Simulacrum";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface AugmentPair {
cost: number;
name: AugmentName;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface BasicHGWOptions {
2021-10-30 21:46:34 +02:00
stock?: boolean;
2021-10-30 18:34:14 +02:00
threads: number;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface BitNodeMultipliers {
AgilityLevelMultiplier: number;
AugmentationMoneyCost: number;
AugmentationRepCost: number;
BladeburnerRank: number;
BladeburnerSkillCost: number;
CharismaLevelMultiplier: number;
ClassGymExpGain: number;
CodingContractMoney: number;
CompanyWorkExpGain: number;
CompanyWorkMoney: number;
CorporationValuation: number;
CrimeExpGain: number;
CrimeMoney: number;
DaedalusAugsRequirement: number;
DefenseLevelMultiplier: number;
DexterityLevelMultiplier: number;
FactionPassiveRepGain: number;
FactionWorkExpGain: number;
FactionWorkRepGain: number;
FourSigmaMarketDataApiCost: number;
FourSigmaMarketDataCost: number;
HackExpGain: number;
HackingLevelMultiplier: number;
HacknetNodeMoney: number;
HomeComputerRamCost: number;
InfiltrationMoney: number;
InfiltrationRep: number;
ManualHackMoney: number;
PurchasedServerCost: number;
PurchasedServerLimit: number;
PurchasedServerMaxRam: number;
RepToDonateToFaction: number;
ScriptHackMoney: number;
ServerGrowthRate: number;
ServerMaxMoney: number;
ServerStartingMoney: number;
ServerStartingSecurity: number;
ServerWeakenRate: number;
StrengthLevelMultiplier: number;
}
// @public (undocumented)
export interface Bladeburner {
getActionAutolevel(
type: BladeburnerActTypes,
name: BladeburnerGenActions | BladeburnerContracts | BladeburnerOperations | BladeburnerBlackOps,
): boolean;
getActionCountRemaining(
type: BladeburnerActTypes,
name: BladeburnerGenActions | BladeburnerContracts | BladeburnerOperations | BladeburnerBlackOps,
): number;
getActionCurrentLevel(
type: BladeburnerActTypes,
name: BladeburnerGenActions | BladeburnerContracts | BladeburnerOperations | BladeburnerBlackOps,
): number;
getActionEstimatedSuccessChance(
type: BladeburnerActTypes,
name: BladeburnerGenActions | BladeburnerContracts | BladeburnerOperations | BladeburnerBlackOps,
): number;
getActionMaxLevel(
type: BladeburnerActTypes,
name: BladeburnerGenActions | BladeburnerContracts | BladeburnerOperations | BladeburnerBlackOps,
): number;
getActionRepGain(
type: BladeburnerActTypes,
name: BladeburnerGenActions | BladeburnerContracts | BladeburnerOperations | BladeburnerBlackOps,
level: number,
): number;
getActionTime(
type: BladeburnerActTypes,
name: BladeburnerGenActions | BladeburnerContracts | BladeburnerOperations | BladeburnerBlackOps,
): number;
getBlackOpNames(): BladeburnerBlackOps[];
getBlackOpRank(name: BladeburnerBlackOps): number;
getBonusTime(): number;
getCity(): City;
getCityChaos(name: City): number;
getCityCommunities(name: City): number;
getCityEstimatedPopulation(name: City): number;
getContractNames(): BladeburnerContracts[];
getCurrentAction(): BladeburnerCurAction;
getGeneralActionNames(): BladeburnerGenActions[];
getOperationNames(): BladeburnerOperations[];
getRank(): number;
getSkillLevel(name: BladeburnerSkills): number;
getSkillNames(): BladeburnerSkills[];
getSkillPoints(): number;
getSkillUpgradeCost(name: BladeburnerSkills): number;
getStamina(): [number, number];
getTeamSize(
type: BladeburnerActTypes,
name: BladeburnerGenActions | BladeburnerContracts | BladeburnerOperations | BladeburnerBlackOps,
): number;
joinBladeburnerDivision(): boolean;
joinBladeburnerFaction(): boolean;
setActionAutolevel(
type: BladeburnerActTypes,
name: BladeburnerGenActions | BladeburnerContracts | BladeburnerOperations | BladeburnerBlackOps,
autoLevel: boolean,
): void;
setActionLevel(
type: BladeburnerActTypes,
name: BladeburnerGenActions | BladeburnerContracts | BladeburnerOperations | BladeburnerBlackOps,
level: number,
): void;
setTeamSize(
type: BladeburnerActTypes,
name: BladeburnerGenActions | BladeburnerContracts | BladeburnerOperations | BladeburnerBlackOps,
size: number,
): number;
startAction(
type: BladeburnerActTypes,
name: BladeburnerGenActions | BladeburnerContracts | BladeburnerOperations | BladeburnerBlackOps,
): boolean;
stopBladeburnerAction(): void;
switchCity(name: City): boolean;
upgradeSkill(name: BladeburnerSkills): boolean;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type BladeburnerActTypes = "contracts" | "operations" | "black ops" | "general";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type BladeburnerBlackOps =
| "Operation Typhoon"
| "Operation Zero"
| "Operation X"
| "Operation Titan"
| "Operation Ares"
| "Operation Archangel"
| "Operation Juggernaut"
| "Operation Red Dragon"
| "Operation K"
| "Operation Deckard"
| "Operation Tyrell"
| "Operation Wallace"
| "Operation Shoulder of Orion"
| "Operation Hyron"
| "Operation Morpheus"
| "Operation Ion Storm"
| "Operation Annihilus"
| "Operation Ultron"
| "Operation Centurion"
| "Operation Vindictus"
| "Operation Daedalus";
// @public (undocumented)
export type BladeburnerContracts = "Tracking" | "Bounty Hunter" | "Retirement";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface BladeburnerCurAction {
name: BladeburnerGenActions | BladeburnerContracts | BladeburnerOperations | BladeburnerBlackOps;
type: BladeburnerActTypes | "Idle";
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type BladeburnerGenActions =
| "Training"
| "Field Analysis"
| "Recruitment"
| "Diplomacy"
| "Hyperbolic Regeneration Chamber";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type BladeburnerOperations =
| "Investigation"
| "Undercover Operation"
| "Sting Operation"
| "Raid"
| "Stealth Retirement Operation"
| "Assassination";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type BladeburnerSkills =
| "Blade's Intuition"
| "Cloak"
| "Marksman"
| "Weapon Proficiency"
| "Short-Circuit"
| "Digital Observer"
| "Tracer"
| "Overclock"
| "Reaper"
| "Evasive System"
| "Datamancer"
| "Cyber's Edge"
| "Hands of Midas"
| "Hyperdrive";
// @public (undocumented)
export interface CharacterInfo {
bitnode: number;
city: City;
company: CompanyName[];
factions: FactionName[];
hp: number;
jobTitle: CompanyField[];
maxHp: number;
mult: CharacterMult;
timeWorked: number;
tor: boolean;
workAgiExpGain: number;
workChaExpGain: number;
workDefExpGain: number;
workDexExpGain: number;
workHackExpGain: number;
workMoneyGain: number;
workRepGain: number;
workStrExpGain: number;
}
// @public (undocumented)
export interface CharacterMult {
agility: number;
agilityExp: number;
companyRep: number;
crimeMoney: number;
crimeSuccess: number;
defense: number;
defenseExp: number;
dexterity: number;
dexterityExp: number;
factionRep: number;
hacking: number;
hackingExp: number;
strength: number;
strengthExp: number;
workMoney: number;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type City = "Aevum" | "Chongqing" | "Sector-12" | "New Tokyo" | "Ishima" | "Volhaven";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface CodingAttemptOptions {
returnReward: boolean;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface CodingContract {
2021-10-30 21:46:34 +02:00
attempt(answer: string | string[] | number, fn: string, host?: string): boolean;
2021-10-30 18:34:14 +02:00
2021-10-30 21:46:34 +02:00
attempt(answer: string | string[] | number, fn: string, host?: string, opts?: CodingAttemptOptions): boolean | string;
2021-10-30 18:34:14 +02:00
2021-10-30 21:46:34 +02:00
getContractType(fn: string, host?: string): CodingContractTypes;
2021-10-30 18:34:14 +02:00
2021-10-30 21:46:34 +02:00
getData(fn: string, host?: string): string;
2021-10-30 18:34:14 +02:00
2021-10-30 21:46:34 +02:00
getDescription(fn: string, host?: string): string;
2021-10-30 18:34:14 +02:00
2021-10-30 21:46:34 +02:00
getNumTriesRemaining(fn: string, host?: string): number;
2021-10-30 18:34:14 +02:00
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type CodingContractTypes =
| "Find Largest Prime Factor"
| "Subarray with Maximum Sum"
| "Total Ways to Sum"
| "Spiralize Matrix"
| "Array Jumping Game"
| "Merge Overlapping Intervals"
| "Generate IP Addresses"
| "Algorithmic Stock Trader I"
| "Algorithmic Stock Trader II"
| "Algorithmic Stock Trader III"
| "Algorithmic Stock Trader IV"
| "Minimum Path Sum in a Triangle"
| "Unique Paths in a Grid I"
| "Unique Paths in a Grid II"
| "Sanitize Parentheses in Expression"
| "Find All Valid Math Expressions";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type CompanyField =
| "software"
| "software consultant"
| "it"
| "security engineer"
| "network engineer"
| "business"
| "business consultant"
| "security"
| "agent"
| "employee"
| "part-time employee"
| "waiter"
| "part-time waiter";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type CompanyName =
// Sector-12
| "MegaCorp"
| "BladeIndustries"
| "FourSigma"
| "IcarusMicrosystems"
| "UniversalEnergy"
| "DeltaOne"
| "CIA"
| "NSA"
| "AlphaEnterprises"
| "CarmichaelSecurity"
| "FoodNStuff"
| "JoesGuns"
// Aevum
| "ECorp"
| "BachmanAndAssociates"
| "ClarkeIncorporated"
| "OmniTekIncorporated"
| "FulcrumTechnologies"
| "GalacticCybersystems"
| "AeroCorp"
| "WatchdogSecurity"
| "RhoConstruction"
| "AevumPolice"
| "NetLinkTechnologies"
// Volhaven
| "NWO"
| "HeliosLabs"
| "OmniaCybersystems"
| "LexoCorp"
| "SysCoreSecurities"
| "CompuTek"
// Chongqing
| "KuaiGongInternational"
| "SolarisSpaceSystems"
// Ishima
| "StormTechnologies"
| "NovaMedical"
| "OmegaSoftware"
// New Tokyo
| "DefComm"
| "VitaLife"
| "GlobalPharmaceuticals"
| "NoodleBar";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type Crime =
| "shoplift"
| "rob store"
| "mug"
| "larceny"
| "deal drugs"
| "bond forgery"
| "traffick arms"
| "homicide"
| "grand theft auto"
| "kidnap"
| "assassinate"
| "heist";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface CrimeStats {
agility_exp: number;
agility_success_weight: number;
charisma_exp: number;
charisma_success_weight: number;
defense_exp: number;
defense_success_weight: number;
dexterity_exp: number;
dexterity_success_weight: number;
difficulty: number;
hacking_exp: number;
hacking_success_weight: number;
intelligence_exp: number;
karma: number;
kills: number;
money: number;
name: number;
strength_exp: number;
strength_success_weight: number;
time: number;
type: string;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type FactionName =
| "Illuminati"
| "Daedalus"
| "The Covenant"
| "ECorp"
| "MegaCorp"
| "Bachman & Associates"
| "Blade Industries"
| "NWO"
| "Clarke Incorporated"
| "OmniTek Incorporated"
| "Four Sigma"
| "KuaiGong International"
| "Fulcrum Secret Technologies"
| "BitRunners"
| "The Black Hand"
| "NiteSec"
| "Aevum"
| "Chongqing"
| "Ishima"
| "New Tokyo"
| "Sector-12"
| "Volhaven"
| "Speakers for the Dead"
| "The Dark Army"
| "The Syndicate"
| "Silhouette"
| "Tetrads"
| "Slum Snakes"
| "Netburners"
| "Tian Di Hui"
| "CyberSec"
| "Bladeburners";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type FactionWork = "hacking" | "field" | "security";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface Gang {
ascendMember(memberName: string): GangMemberAscension;
canRecruitMember(): boolean;
getBonusTime(): number;
getChanceToWinClash(gangName: GangName): number;
getEquipmentCost(equipName: GangEquipment | GangAugmentations): number;
getEquipmentNames(): (GangEquipment | GangAugmentations)[];
getEquipmentStats(equipName: GangEquipment | GangAugmentations): GangEquipmentStats;
getEquipmentType(equipName: GangEquipment | GangAugmentations): GangEquipmentType;
getGangInformation(): GangGenInfo;
getMemberInformation(name: string): GangMemberInfo;
getMemberNames(): string[];
getOtherGangInformation(): GangOtherInfo;
getTaskNames(): GangTasks[];
getTaskStats(name: GangTasks): GangTasksStats;
purchaseEquipment(memberName: string, equipName: GangEquipment | GangAugmentations): boolean;
recruitMember(name: string): boolean;
setMemberTask(memberName: string, taskName: GangTasks): boolean;
setTerritoryWarfare(engage: boolean): void;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type GangAugmentations =
| "Bionic Arms"
| "Bionic Legs"
| "Bionic Spine"
| "BrachiBlades"
| "Nanofiber Weave"
| "Synthetic Heart"
| "Synfibril Muscle"
| "BitWire"
| "Neuralstimulator"
| "DataJack"
| "Graphene Bone Lacings";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type GangEquipment =
| "Baseball Bat"
| "Katana"
| "Glock 18C"
| "P90C"
| "Steyr AUG"
| "AK-47"
| "M15A10 Assault Rifle"
| "AWM Sniper Rifle"
| "Bulletproof Vest"
| "Full Body Armor"
| "Liquid Body Armor"
| "Graphene Plating Armor"
| "Ford Flex V20"
| "ATX1070 Superbike"
| "Mercedes-Benz S9001"
| "White Ferrari"
| "NUKE Rootkit"
| "Soulstealer Rootkit"
| "Demon Rootkit"
| "Hmap Node"
| "Jack the Ripper";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface GangEquipmentStats {
agi: number;
cha: number;
def: number;
dex: number;
hack: number;
str: number;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type GangEquipmentType = "Weapon" | "Armor" | "Vehicle" | "Rootkit" | "Augmentation";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface GangGenInfo {
faction: GangName;
isHacking: boolean;
moneyGainRate: number;
power: number;
respect: number;
respectGainRate: number;
territory: number;
territoryClashChance: number;
wantedLevel: number;
wantedLevelGainRate: number;
}
// @public (undocumented)
export interface GangMemberAscension {
agi: number;
cha: number;
def: number;
dex: number;
hack: number;
respect: number;
str: number;
}
// @public (undocumented)
export interface GangMemberInfo {
agility: number;
agilityAscensionMult: number;
agilityEquipMult: number;
augmentations: GangAugmentations[];
charisma: number;
charismaAscensionMult: number;
charismaEquipMult: number;
defense: number;
defenseAscensionMult: number;
defenseEquipMult: number;
dexterity: number;
dexterityAscensionMult: number;
dexterityEquipMult: number;
equipment: GangEquipment[];
hacking: number;
hackingAscensionMult: number;
hackingEquipMult: number;
strength: number;
strengthAscensionMult: number;
strengthEquipMult: number;
task: GangTasks;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type GangName =
| "Slum Snakes"
| "Tetrads"
| "The Syndicate"
| "The Dark Army"
| "Speakers for the Dead"
| "NiteSec"
| "The Black Hand";
// @public (undocumented)
export type GangOtherInfo = {
/** Stock Symbol */
[key in GangName]: GangOtherInfoObject[];
};
// @public (undocumented)
export interface GangOtherInfoObject {
power: number;
territory: number;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type GangTasks =
| "Unassigned"
| "Ransomware"
| "Phishing"
| "Identity Theft"
| "DDoS Attacks"
| "Plant Virus"
| "Fraud & Counterfeiting"
| "Money Laundering"
| "Cyberterrorism"
| "Ethical Hacking"
| "Mug People"
| "Deal Drugs"
| "Strongarm Civilians"
| "Run a Con"
| "Armed Robbery"
| "Traffick Illegal Arms"
| "Threaten & Blackmail"
| "Human Trafficking"
| "Terrorism"
| "Vigilante Justice"
| "Train Combat"
| "Train Hacking"
| "Train Charisma"
| "Territory Warfare";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface GangTasksStats {
agiWeight: number;
baseMoney: number;
baseRespect: number;
baseWanted: number;
chaWeight: number;
defWeight: number;
desc: string;
dexWeight: number;
difficulty: number;
hackWeight: number;
isCombat: boolean;
isHacking: boolean;
name: GangTasks;
strWeight: number;
territory: GangTasksTerritory;
}
// @public (undocumented)
export interface GangTasksTerritory {
money: number;
respect: number;
wanted: number;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type Gym = "Crush Fitness Gym" | "Snap Fitness Gym" | "Iron Gym" | "Powerhouse Gym" | "Millenium Fitness Gym";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type GymStat = "str" | "def" | "dex" | "agi";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface HackingMultipliers {
chance: number;
growth: number;
money: number;
speed: number;
}
2021-10-30 21:46:34 +02:00
// @public
export interface Hacknet {
2021-10-30 18:34:14 +02:00
getCacheUpgradeCost(index: number, n: number): number;
getCoreUpgradeCost(index: number, n: number): number;
getLevelUpgradeCost(index: number, n: number): number;
getNodeStats(index: number): NodeStats;
getPurchaseNodeCost(): number;
getRamUpgradeCost(index: number, n: number): number;
hashCost(upgName: HashUpgrades): number;
numHashes(): number;
numNodes(): number;
purchaseNode(): number;
2021-10-30 21:46:34 +02:00
spendHashes(upgName: HashUpgrades, upgTarget?: string): boolean;
2021-10-30 18:34:14 +02:00
upgradeCache(index: number, n: number): boolean;
upgradeCore(index: number, n: number): boolean;
upgradeLevel(index: number, n: number): boolean;
upgradeRam(index: number, n: number): boolean;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface HacknetMultipliers {
coreCost: number;
levelCost: number;
production: number;
purchaseCost: number;
ramCost: number;
}
// @public (undocumented)
export type Handle = string | Port;
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type HashUpgrades =
| "Sell for Money"
| "Sell for Corporation Funds"
| "Reduce Minimum Security"
| "Increase Maximum Money"
| "Improve Studying"
| "Improve Gym Training"
| "Exchange for Corporation Research"
| "Exchange for Bladeburner Rank"
| "Exchange for Bladeburner SP"
| "Generate Coding Contract";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface NodeStats {
cache: number;
cores: number;
hashCapacity: number;
level: number;
name: string;
production: number;
ram: number;
timeOnline: number;
totalProduction: number;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface NS extends Singularity {
2021-10-30 21:46:34 +02:00
readonly args: (string | number)[];
2021-10-30 18:34:14 +02:00
readonly bladeburner: Bladeburner;
2021-10-30 21:46:34 +02:00
brutessh(host: string): void;
2021-10-30 18:34:14 +02:00
clear(handle: Handle): void;
clearLog(): void;
readonly codingcontract: CodingContract;
2021-10-30 21:46:34 +02:00
deleteServer(host: string): boolean;
2021-10-30 18:34:14 +02:00
disableLog(fn: string): void;
enableLog(fn: string): void;
2021-10-30 21:46:34 +02:00
exec(script: string, host: string, numThreads?: number, ...args: string[]): number;
2021-10-30 18:34:14 +02:00
exit(): void;
2021-10-30 21:46:34 +02:00
fileExists(filename: string, host?: string): boolean;
ftpcrack(host: string): void;
2021-10-30 18:34:14 +02:00
readonly gang: Gang;
2021-10-30 21:46:34 +02:00
getBitNodeMultipliers(): BitNodeMultipliers;
2021-10-30 18:34:14 +02:00
getFavorToDonate(): number;
2021-10-30 21:46:34 +02:00
getGrowTime(host: string, hackLvl?: number, intLvl?: number): number;
2021-10-30 18:34:14 +02:00
getHackingLevel(): number;
getHackingMultipliers(): HackingMultipliers;
getHacknetMultipliers(): HacknetMultipliers;
2021-10-30 21:46:34 +02:00
getHackTime(host: string, hackLvl?: number, intLvl?: number): number;
getHostname(): string;
2021-10-30 18:34:14 +02:00
getPortHandle(port: Port): any[];
getPurchasedServerCost(ram: number): number;
getPurchasedServerLimit(): number;
getPurchasedServerMaxRam(): number;
2021-10-30 21:46:34 +02:00
getPurchasedServers(hostnameMode?: boolean): string[];
getScriptExpGain(script: string, host: string, ...args: string[]): number;
getScriptIncome(script: string, host: string, ...args: string[]): number | [number, number];
getScriptLogs(fn?: string, host?: string, ...args: any[]): string[];
2021-10-30 18:34:14 +02:00
getScriptName(): string;
2021-10-30 21:46:34 +02:00
getScriptRam(script: string, host?: string): number;
getServer(host?: string): Server;
getServerBaseSecurityLevel(host: string): number;
getServerGrowth(host: string): number;
getServerMaxMoney(host: string): number;
getServerMinSecurityLevel(host: string): number;
getServerMoneyAvailable(host: string): number;
getServerNumPortsRequired(host: string): number;
getServerRam(host: string): [number, number];
getServerRequiredHackingLevel(host: string): number;
getServerSecurityLevel(host: string): number;
2021-10-30 18:34:14 +02:00
getTimeSinceLastAug(): number;
2021-10-30 21:46:34 +02:00
getWeakenTime(host: string, hackLvl?: number, intLvl?: number): number;
grow(host: string, opts?: BasicHGWOptions): Promise<number>;
growthAnalyze(host: string, growthAmount: number): number;
2021-10-30 18:34:14 +02:00
growthAnalyzeSecurity(threads: number): number;
2021-10-30 21:46:34 +02:00
hack(host: string, opts?: BasicHGWOptions): Promise<number>;
hackAnalyzePercent(host: string): number;
2021-10-30 18:34:14 +02:00
hackAnalyzeSecurity(threads: number): number;
2021-10-30 21:46:34 +02:00
hackAnalyzeThreads(host: string, hackAmount: number): number;
hackChance(host: string): number;
readonly hacknet: Hacknet;
hasRootAccess(host: string): boolean;
httpworm(host: string): void;
2021-10-30 18:34:14 +02:00
isLogEnabled(fn: string): boolean;
2021-10-30 21:46:34 +02:00
isRunning(script: string, host: string, ...args: string[]): boolean;
kill(script: string, host: string, ...args: string[]): boolean;
2021-10-30 18:34:14 +02:00
kill(scriptPid: number): boolean;
2021-10-30 21:46:34 +02:00
killall(host: string): boolean;
ls(host: string, grep?: string): string[];
2021-10-30 18:34:14 +02:00
nFormat(n: number, format: string): number;
2021-10-30 21:46:34 +02:00
nuke(host: string): void;
2021-10-30 18:34:14 +02:00
peek(port: Port): string | number | object;
2021-10-30 21:46:34 +02:00
print(msg: any): void;
2021-10-30 18:34:14 +02:00
prompt(txt: string): Promise<boolean>;
2021-10-30 21:46:34 +02:00
ps(host?: string): ProcessInfo[];
purchaseServer(hostname: string, ram: number): string | "";
2021-10-30 18:34:14 +02:00
read(handle: Handle): string | number | object;
2021-10-30 21:46:34 +02:00
relaysmtp(host: string): void;
rm(name: string, host?: string): boolean;
run(script: string, numThreads?: number, ...args: string[]): number;
scan(host: string, hostnames?: boolean): string[];
scp(files: string | ReadonlyArray<string>, destination: string): boolean;
2021-10-30 18:34:14 +02:00
scp(
files: string | ReadonlyArray<string>,
2021-10-30 21:46:34 +02:00
source: string,
2021-10-30 18:34:14 +02:00
// tslint:disable-next-line:unified-signatures
2021-10-30 21:46:34 +02:00
destination: string,
2021-10-30 18:34:14 +02:00
): boolean;
2021-10-30 21:46:34 +02:00
scriptKill(script: string, host: string): boolean;
scriptRunning(script: string, host: string): boolean;
serverExists(host: string): boolean;
2021-10-30 18:34:14 +02:00
sleep(millis: number): Promise<void>;
readonly sleeve: Sleeve;
2021-10-30 21:46:34 +02:00
spawn(script: string, numThreads?: number, ...args: string[]): void;
2021-10-30 18:34:14 +02:00
sprintf(format: string, ...args: string[]): string;
2021-10-30 21:46:34 +02:00
sqlinject(host: string): void;
2021-10-30 18:34:14 +02:00
readonly stock: TIX;
2021-10-30 21:46:34 +02:00
tail(fn?: string, host?: string, ...args: any[]): void;
tprint(msg: any): void;
2021-10-30 18:34:14 +02:00
tryWrite(port: Handle, data: string | string[] | number): boolean;
vsprintf(format: string, args: string[]): string;
2021-10-30 21:46:34 +02:00
weaken(host: string, opts?: BasicHGWOptions): Promise<number>;
2021-10-30 18:34:14 +02:00
weakenAnalyze(threads: number, cores?: number): number;
wget(url: string, target: string, host?: string): Promise<boolean>;
write(handle: Handle, data?: string | string[] | number, mode?: "w" | "a"): void;
}
2021-10-30 21:46:34 +02:00
// @public
export type OrderPosition = "long" | "short";
2021-10-30 18:34:14 +02:00
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type OrderType = "limitbuy" | "limitsell" | "stopbuy" | "stopsell";
2021-10-30 21:46:34 +02:00
// @public
export interface PlayerSkills {
2021-10-30 18:34:14 +02:00
agility: number;
charisma: number;
defense: number;
dexterity: number;
hacking: number;
intelligence: number;
strength: number;
}
// @public
export type Port = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface ProcessInfo {
args: string[];
2021-10-30 21:46:34 +02:00
filename: string;
2021-10-30 18:34:14 +02:00
threads: number;
}
2021-10-30 21:46:34 +02:00
// @public
export type Programs =
| "autolink.exe"
2021-10-30 18:34:14 +02:00
| "brutessh.exe"
| "deepscanv1.exe"
| "deepscanv2.exe"
2021-10-30 21:46:34 +02:00
| "ftpcrack.exe"
| "httpworm.exe"
| "relaysmtp.exe"
| "serverprofiler.exe"
| "sqlinject.exe";
2021-10-30 18:34:14 +02:00
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface Server {
cpuCores: number;
ftpPortOpen: boolean;
hasAdminRights: boolean;
hostname: string;
httpPortOpen: boolean;
ip: string;
isConnectedTo: boolean;
maxRam: number;
organizationName: string;
ramUsed: number;
smtpPortOpen: boolean;
sqlPortOpen: boolean;
sshPortOpen: boolean;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface Singularity {
applyToCompany(companyName: CompanyName, field: CompanyField): boolean;
checkFactionInvitations(): FactionName[];
commitCrime(crime: Crime): number;
2021-10-30 21:46:34 +02:00
createProgram(program: Programs): boolean;
2021-10-30 18:34:14 +02:00
donateToFaction(faction: FactionName, amount: number): boolean;
getAugmentationCost(augName: AugmentName): [number, number];
getAugmentationPrereq(augName: AugmentName): AugmentName[];
getAugmentationsFromFaction(faction: FactionName): AugmentName[];
getAugmentationStats(name: AugmentName): AugmentationStats;
getCharacterInformation(): CharacterInfo;
getCompanyFavor(companyName: CompanyName): number;
getCompanyFavorGain(companyName: CompanyName): number;
getCompanyRep(companyName: CompanyName): number;
getCrimeChance(crime: Crime): number;
getCrimeStats(crime: Crime): CrimeStats;
getFactionFavor(faction: FactionName): number;
getFactionFavorGain(faction: FactionName): number;
getFactionRep(faction: FactionName): number;
getOwnedAugmentations(purchased?: boolean): AugmentName[];
getOwnedSourceFiles(): SourceFileLvl[];
2021-10-30 21:46:34 +02:00
getStats(): PlayerSkills;
2021-10-30 18:34:14 +02:00
getUpgradeHomeRamCost(): number;
gymWorkout(gymName: Gym, stat: GymStat): boolean;
2021-10-30 21:46:34 +02:00
installAugmentations(cbScript?: string): void;
2021-10-30 18:34:14 +02:00
isBusy(): boolean;
joinFaction(faction: FactionName): boolean;
purchaseAugmentation(faction: FactionName, augmnet: AugmentName): boolean;
2021-10-30 21:46:34 +02:00
purchaseProgram(programName: Programs): boolean;
2021-10-30 18:34:14 +02:00
purchaseTor(): boolean;
softReset(): void;
stopAction(): boolean;
travelToCity(city: City): boolean;
universityCourse(universityName: University, courseName: UniversityCourse): boolean;
upgradeHomeRam(): boolean;
workForCompany(companyName?: CompanyName): boolean;
workForFaction(faction: FactionName, workType: FactionWork): boolean;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface Sleeve {
getInformation(sleeveNumber: number): SleeveInformation;
getNumSleeves(): number;
getSleeveAugmentations(sleeveNumber: number): AugmentName[];
getSleevePurchasableAugs(sleeveNumber: number): AugmentPair[];
2021-10-30 21:46:34 +02:00
getSleeveStats(sleeveNumber: number): SleeveSkills;
2021-10-30 18:34:14 +02:00
getTask(sleeveNumber: number): SleeveTask;
purchaseSleeveAug(sleeveNumber: number, augName: AugmentName): boolean;
setToCommitCrime(sleeveNumber: number, name: Crime): boolean;
setToCompanyWork(sleeveNumber: number, companyName: CompanyName): boolean;
setToFactionWork(sleeveNumber: number, factionName: FactionName, factionWorkType: FactionWork): boolean;
setToGymWorkout(sleeveNumber: number, gymName: Gym, stat: GymStat): boolean;
setToShockRecovery(sleeveNumber: number): boolean;
setToSynchronize(sleeveNumber: number): boolean;
setToUniversityCourse(sleeveNumber: number, university: University, className: UniversityCourse): boolean;
travel(sleeveNumber: number, cityName: City): boolean;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface SleeveInformation {
city: City;
earningsForPlayer: SleeveWorkGains;
earningsForSleeves: SleeveWorkGains;
earningsForTask: SleeveWorkGains;
hp: number;
jobs: string[];
jobTitle: CompanyField[];
maxHp: number;
mult: CharacterMult;
timeWorked: number;
tor: boolean;
workRepGain: number;
}
2021-10-30 21:46:34 +02:00
// @public
export interface SleeveSkills {
2021-10-30 18:34:14 +02:00
agility: number;
charisma: number;
defense: number;
dexterity: number;
hacking_skill: number;
2021-10-30 21:46:34 +02:00
shock: number;
2021-10-30 18:34:14 +02:00
strength: number;
2021-10-30 21:46:34 +02:00
sync: number;
2021-10-30 18:34:14 +02:00
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface SleeveTask {
crime: Crime | "";
factionWorkType: FactionWork | "";
gymStatType: GymStat | "";
location: City | "";
task: string;
}
// @public (undocumented)
export interface SleeveWorkGains {
workAgiExpGain: number;
workChaExpGain: number;
workDefExpGain: number;
workDexExpGain: number;
workHackExpGain: number;
workMoneyGain: number;
workStrExpGain: number;
}
// @public (undocumented)
export interface SourceFileLvl {
lvl: number;
n: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type StockOrder = {
/** Stock Symbol */
[key in StockSymbol]?: StockOrderObject[];
};
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface StockOrderObject {
position: "S" | "L";
price: number;
shares: number;
type: "Limit Buy Order" | "Limit Sell Order" | "Stop Buy Order" | "Stop Buy Order";
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type StockSymbol =
| "ECP"
| "MGCP"
| "BLD"
| "CLRK"
| "OMTK"
| "FSIG"
| "KGI"
| "FLCM"
| "STM"
| "DCOMM"
| "HLS"
| "VITA"
| "ICRS"
| "UNV"
| "AERO"
| "OMN"
| "SLRS"
| "GPH"
| "NVMD"
| "WDS"
| "LXO"
| "RHOC"
| "APHE"
| "SYSC"
| "CTK"
| "NTLK"
| "OMGA"
| "FNS"
| "SGC"
| "JGN"
| "CTYS"
| "MDYN"
| "TITN";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export interface TIX {
buy(sym: StockSymbol, shares: number): number;
2021-10-30 21:46:34 +02:00
cancelOrder(sym: StockSymbol, shares: number, price: number, type: OrderType, pos: OrderPosition): void;
2021-10-30 18:34:14 +02:00
getAskPrice(sym: StockSymbol): number;
getBidPrice(sym: StockSymbol): number;
getForecast(sym: StockSymbol): number;
getMaxShares(sym: StockSymbol): number;
getOrders(): StockOrder;
getPosition(sym: StockSymbol): [number, number, number, number];
getPrice(sym: StockSymbol): number;
2021-10-30 21:46:34 +02:00
getPurchaseCost(sym: StockSymbol, shares: number, posType: OrderPosition): number;
2021-10-30 18:34:14 +02:00
2021-10-30 21:46:34 +02:00
getSaleGain(sym: StockSymbol, shares: number, posType: OrderPosition): number;
2021-10-30 18:34:14 +02:00
getSymbols(): StockSymbol[];
getVolatility(sym: StockSymbol): number;
2021-10-30 21:46:34 +02:00
placeOrder(sym: StockSymbol, shares: number, price: number, type: OrderType, pos: OrderPosition): boolean;
2021-10-30 18:34:14 +02:00
purchase4SMarketData(): boolean;
purchase4SMarketDataTixApi(): boolean;
sell(sym: StockSymbol, shares: number): number;
sellShort(sym: StockSymbol, shares: number): number;
short(sym: StockSymbol, shares: number): number;
}
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type University = "Summit University" | "Rothman University" | "ZB Institute Of Technology";
2021-10-30 21:46:34 +02:00
// @public
2021-10-30 18:34:14 +02:00
export type UniversityCourse =
| "Study Computer Science"
| "Data Strucures"
| "Networks"
| "Algorithms"
| "Management"
| "Leadership";
// (No @packageDocumentation comment for this package)
```