Compare commits

...

89 Commits

Author SHA1 Message Date
omuretsu 5c738919fc Update changelog.md for 2.5.0 2023-10-02 19:30:37 -04:00
Snarling 223d9b9cdb 2.5.0 as release version (#842) 2023-10-02 19:18:10 -04:00
omuretsu 6a63f8a02c Final dev changelog for 2.5.0 cycle? 2023-09-29 21:32:36 -04:00
Jesse Clark ad6f919d64 CORPORATION: Dramatically lower API RAM costs (#818) 2023-09-27 17:38:30 -04:00
muesli4brekkies c5e2f65cb0 API: Added spawnDelay parameter to ns.spawn options, allowing user defined delay (#807) 2023-09-27 01:31:47 -04:00
Michael Ficocelli 7fad6e0778 UI: Rename Territory Warfare gang status to avoid confusion with gang member task of the same name (#790) 2023-09-26 21:04:43 -04:00
Snarling 6d3495d05f Changelog update for 2.5.0 (#828) 2023-09-24 09:11:49 -04:00
David Walker 875bddbbdb BUGFIX: Patch a minor hole in RAM calculation (#820) 2023-09-21 21:44:32 -04:00
Snarling 648c180952 UI: Modals no longer update content and become inert while closing (#817) 2023-09-21 21:33:18 -04:00
Jesse Clark 3ae3f947ac CORPORATION: Rework share price calculation + UI improvements (#782) 2023-09-20 00:36:48 -04:00
Michael Ficocelli f6e1c171ae MISC: Add configuration to eslintrc to fix the warning thrown when linting (#814) 2023-09-19 12:24:12 -04:00
Yichi Zhang 1b81fe8766 CORPORATION: Rework valuation calculation (#789) 2023-09-19 08:47:16 -04:00
missymae#2783 e1d2e12747 UI: Improve soft reset dialog, and always confirm soft resets (#809) 2023-09-17 16:30:10 -04:00
Jesse Clark b9d13063ac Format time in ns.sleep and ns.asleep (#806) 2023-09-17 15:40:25 -04:00
missymae#2783 47176b7809 Workout achievement requires work in gym (#805) 2023-09-17 15:38:52 -04:00
Caldwell d914040ae7 CORPORATION: Remove Market TA string in sell dialog text fields (#784) 2023-09-12 19:49:51 -04:00
omuretsu cb93f4d108 Changelog update 12sep 2023-09-12 06:09:18 -04:00
omuretsu fe0f8cad4d Import changes
Just some import changes in a couple files.
2023-09-12 05:38:25 -04:00
Caldwell b6eafce563 CORPORATION: remove TA modals and integrate into sell modal (#796) 2023-09-12 05:30:45 -04:00
Zelow79 99e5c5e6b0 Added BB Training to sleeve actions (#713) 2023-09-12 05:07:36 -04:00
Caldwell bf5e638891 CORPORATION: Fix "Use same 'Sell Amount' for all cities" toggle for products (#775) 2023-09-12 04:31:51 -04:00
Caldwell d2b3659512 DOC: Add CorporationDivisions multiplier to BitNodeMultipliers API interface (#798) 2023-09-12 04:30:19 -04:00
aschmider a6ff0d3e14 CORPORATION: Fix additive value in party result message (#793) (#794) 2023-09-12 03:56:59 -04:00
aschmider c4482a70f9 HACKNET: Fix spendHashes ignoring count for Company Favor upgrade (#791) (#792) 2023-09-12 03:55:43 -04:00
missymae#2783 3c42880185 DOCS: Updates to basic documentations (#788) 2023-09-12 02:07:04 -04:00
Noah Harris 7b2e8e5312 UI: clear search suggestions on clearall modification (#787) 2023-09-12 02:00:20 -04:00
Michael Ficocelli b844593e22 UI: Add filter to faction augmentation purchase page (#783) 2023-09-12 01:36:47 -04:00
Caldwell 624a0a5b02 CORPORATION: improve State description (#778) 2023-09-12 01:25:51 -04:00
Caldwell bba2ccd83a CORPORATION: add issueNewSharesCooldown and makesMaterial (#774) 2023-09-12 01:23:36 -04:00
Michael Ficocelli 25dae7ec8b UI: Basic Map and Set support in ns.print/tprint (#756) 2023-09-12 01:07:41 -04:00
omuretsu f95ca64e01 Changelog update 5 sep 2023-09-05 18:34:26 -04:00
Caldwell 0ed88a4317 UI: Stats page uses same number format as overview for skills. (#776) 2023-09-05 18:13:41 -04:00
missymae#2783 8d3f2bd750 GANG: Updates to Docs, UI, API (#773)
API Changes:
Adds ns.gang.getRecruitsAvailable: Gets the number of additional gang members that can currently be recruited
Adds ns.gang.respectForNextRecruit: Gets the respect threshold for recruiting the next gang member
Adds ns.gang.renameMember: Renames a gang member

Plus many doc and ui improvements
2023-09-05 18:07:19 -04:00
missymae#2783 bec737a253 DOCS: Add documentation descriptions for GangMemberInfo properties (#779) 2023-09-03 16:50:24 -04:00
muesli4brekkies 66ac31ee99 DOCS: Improve/correct some API docs related to ports (#772) 2023-09-02 10:57:31 -04:00
Michael Ficocelli 52769706d2 UI: Keep tail windows and dialogs mounted but hidden on pages where they are not shown (#769) 2023-08-31 21:31:59 -04:00
Michael Ficocelli ae87851889 Improve pagination for Active Scripts page (#763) 2023-08-31 20:31:48 -04:00
Caldwell 7c82221a13 CORP: Change some number formatting to look better (#764)
changed formatCorpStat to formatBigNumber to make big numbers readable
2023-08-31 20:29:04 -04:00
VictorS b7fdcdf35d DOCS: Improved documentation for functions that take a FilenameOrPID (#759) 2023-08-30 16:36:34 -04:00
missymae#2783 ad9bde40e0 DOCS: Improve documentation for ns.bladeburner.getActionRepGain (#760) 2023-08-30 16:28:21 -04:00
Caldwell 8c86e1e07a fix NaN in Bladeburner success Chance (#761) 2023-08-30 14:51:16 -04:00
Valentin Dewilde 1ea555f572 UI: Move pagination to top of active scripts, improve filtering (#494) 2023-08-30 14:45:27 -04:00
omuretsu bc7482b0a2 Changelog update 2023-08-28 15:47:59 -04:00
missymae#2783 12de5505b5 DOCS: Bladeburner in-game documentation update (#755) 2023-08-28 15:36:49 -04:00
Michael Ficocelli 62058a7f78 UI: Suppress confusing reputation-earned dialog on augment install (#739) 2023-08-28 15:12:13 -04:00
Michael Ficocelli 9a0d688909 NETSCRIPT: Add more helpful error messages to getPurchasedServerCost (#757) 2023-08-28 15:03:16 -04:00
Eli Doran b4f33fe655 Remove an unnecessary for loop in HacknetServer upgradeRam (#754) 2023-08-28 14:51:20 -04:00
missymae#2783 4b627cde1e DOCS: ns.getScriptLog update to use "FilenameOrPID" and related ns.tail change (#753) 2023-08-28 14:49:37 -04:00
Caldwell 101fb21c58 UI: Faction augmentation page rerenders automatically (#744) 2023-08-28 14:40:34 -04:00
Michael Ficocelli 79b677973b MESSAGES: Re-implement limit on Icarus messages after a bitnode is completed (#742) 2023-08-28 14:38:15 -04:00
Michael Ficocelli 93235570d0 TERMINAL: Prevent recursive aliases from being resolved. (#741) 2023-08-28 14:26:25 -04:00
omuretsu 51b03003f6 Fix changelog 2023-08-26 18:35:44 -04:00
omuretsu 281e22c90c 2.4.2dev Start 2023-08-26 18:32:14 -04:00
Snarling de5ebc993b RELEASE: 2.4.1 (#752) 2023-08-26 18:07:09 -04:00
zornlemma aaaa980d10 fix: ActiveScripts Page map scripts with same arguments correctly (#748) 2023-08-25 15:03:08 -04:00
Michael Ficocelli 7b05bed0d4 FIX: update white-space style to function on electron app (#745) 2023-08-23 17:11:27 -04:00
omuretsu 42d70506cc Fix urls for ctrl-clicking documentation links 2023-08-21 22:48:57 -04:00
omuretsu d5525f39bc Update changelog (probably last iteration of 2.4.1dev) 2023-08-21 06:56:11 -04:00
Michael Ficocelli 86b0bd5ac7 TERMINAL: Add option for partial history search (#736) 2023-08-21 06:50:17 -04:00
Zelow79 7ea0725a39 UI: Fixed Preview for 2 themes (#737)
Noticed 2 themes had preview screenshots that weren't from a fresh save.
2023-08-19 15:42:01 -04:00
omuretsu fbdd8aee58 changelog update 2023-08-16 17:47:32 -04:00
missymae#2783 633f3ef07e UI: BladeBurner successes to next level tooltip fix (#728) 2023-08-16 17:32:04 -04:00
Zelow79 b7ad3395ae API: Added CompanyName to NetscriptDefinitions (#731) 2023-08-16 17:31:41 -04:00
missymae#2783 7500ef0da2 DOCUMENTATION: ns.share and getSharePower definition updates (#734) 2023-08-16 17:08:55 -04:00
Zelow79 cef452d35e add new theme zerenity (#722)
Added a calm purple and grey theme with some vivid colors here and there.
2023-08-07 02:41:01 -04:00
Snarling 4ca598defb API: Fix removed functions (#720) 2023-08-07 02:38:38 -04:00
omuretsu d637828759 Changelog update 2023-08-06 09:42:36 -04:00
Caldwell 5c7b30ef15 BUGFIX: fix NFG buying current Level instead of next Level (#718) 2023-08-06 09:24:04 -04:00
myCatsName 647b78c9f7 CCT: accept IP solutions with matched single or double quotes, or none (#712) 2023-08-06 09:13:01 -04:00
omuretsu c4fe88e0c7 Update changelog 2023-08-06 00:13:07 -04:00
hydroflame 931d7e588a Remove more rtd references (#702) 2023-08-06 00:05:03 -04:00
myCatsName aed01b0979 NETSCRIPT: added ns.singularity.getAugmentationFactions (#706) 2023-08-06 00:04:36 -04:00
myCatsName 9e55d00b4f UI: "Contract in Progress" window can no longer get lost (#716) 2023-08-05 23:48:00 -04:00
myCatsName 6b7cab6ac4 IssueNewShares Modal spacing typo fix (#715) 2023-08-05 20:58:26 -04:00
myCatsName 2e84512881 update helper message for killall (#709) 2023-08-05 20:26:37 -04:00
hydroflame 2c0f7f1eda Merge pull request #694 from bitburner-official/moreResetInfo
NETSCRIPT: Add owned aug and SF info to getResetInfo
2023-08-01 09:45:50 -04:00
omuretsu e5b1fd6b58 Fix wiregame, update changlog
WireGame had been reworked to refer to wires using their index, not the wire number, but the aug highlight display was still referring to the wire number, leading to an off-by-one.
2023-08-01 02:42:43 -04:00
omuretsu 3ced0575a4 Generate doc 2023-08-01 01:53:10 -04:00
omuretsu 75579a2ff1 Add owned aug and SF info to getResetInfo 2023-08-01 01:40:30 -04:00
Snarling 83b7c380ff DOCUMENTATION: Better npm run doc, plus minor folder reorganization (#693) 2023-08-01 00:59:33 -04:00
omuretsu e624db5238 Update changelog 2023-07-31 23:13:38 -04:00
Snarling 1c6369ffa4 NETSCRIPT: Add ns.stock.getConstants (#692) 2023-07-31 23:08:42 -04:00
Caldwell a85efbc4da STOCKMARKET: Move and Reorganize Constants (#688) 2023-07-31 22:12:49 -04:00
omuretsu e9bbe57902 Changelog update 2023-07-31 10:38:13 -04:00
omuretsu 888e5f9c8a Fix bug with sleeve.setToFactionWork
Function was not checking that the player was actually in the faction, which allowed sleeves to work for factions the player was not part of.
2023-07-31 10:36:24 -04:00
omuretsu e7312d97e6 Start 2.4.1 dev
* Set isDevBranch back to true
* Updated version number
* Updated changelog in constants
2023-07-31 04:40:46 -04:00
omuretsu fc86895c30 Some quick 2.4.0 fixes
* No longer tells player it is a dev version and shows changelog every load
* Updated snapshot for player save format continuity test (changed due to number of donations changing)
* Fixed some display issues surrounding augmentations page (newlines were not displaying in tooltip, and NFG is sorted at the top again)
2023-07-31 04:26:15 -04:00
Your Name 1e0d3a7747 Merge branch 'dev' of github.com:bitburner-official/bitburner-src into dev 2023-07-30 22:08:44 -04:00
Your Name b4836e5329 v2.4.0 2023-07-30 22:08:36 -04:00
274 changed files with 3524 additions and 1984 deletions
+5
View File
@@ -35,4 +35,9 @@ module.exports = {
"@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-explicit-any": "off",
"react/no-unescaped-entities": "off", "react/no-unescaped-entities": "off",
}, },
settings: {
react: {
version: "detect",
},
},
}; };
+2 -3
View File
@@ -6,15 +6,14 @@
Bitburner is a programming-based [incremental game](https://en.wikipedia.org/wiki/Incremental_game) Bitburner is a programming-based [incremental game](https://en.wikipedia.org/wiki/Incremental_game)
that revolves around hacking and cyberpunk themes. that revolves around hacking and cyberpunk themes.
The game can be played at https://danielyxie.github.io/bitburner/ (release build), https://bitburner-official.github.io/bitburner-src/ (development build), or installed through [Steam](https://store.steampowered.com/app/1812820/Bitburner/). The game can be played at https://bitburner-official.github.io/ (release build), https://bitburner-official.github.io/bitburner-src/ (development build), or installed through [Steam](https://store.steampowered.com/app/1812820/Bitburner/).
The location of the release build may change in the near future. The location of the release build may change in the near future.
See the [frequently asked questions](./doc/FAQ.md) for more information . To discuss the game or get help, join the [official Discord server](https://discord.gg/TFc3hKD). See the [frequently asked questions](./doc/FAQ.md) for more information . To discuss the game or get help, join the [official Discord server](https://discord.gg/TFc3hKD).
# Documentation # Documentation
The game's official documentation can be found on [Read The The game's official documentation can be found in-game.
Docs](http://bitburner-official.readthedocs.io/). Please note that this is still a work-in-progress.
The [in-game documentation](./markdown/bitburner.md) is generated from the [TypeScript definitions](./src/ScriptEditor/NetscriptDefinitions.d.ts). The [in-game documentation](./markdown/bitburner.md) is generated from the [TypeScript definitions](./src/ScriptEditor/NetscriptDefinitions.d.ts).
+4 -11
View File
@@ -60,12 +60,8 @@ called `npm` is installed as well.
Not all code contributions will be accepted. The safest way to ensure Not all code contributions will be accepted. The safest way to ensure
that you don't waste time working on something that gets rejected is to that you don't waste time working on something that gets rejected is to
run your idea(s)/plan(s) past [danielyxie](https://github.com/danielyxie) first. run your idea(s)/plan(s) past the developpers first.
You can contact him through: You can contact him through Discord.
- Github
- Discord
- [Reddit](https://www.reddit.com/user/chapt3r/)
Otherwise, here are some general guidelines for determining what types of Otherwise, here are some general guidelines for determining what types of
changes are okay to contribute: changes are okay to contribute:
@@ -217,9 +213,8 @@ the following rules:
## As a Documenter ## As a Documenter
To contribute to and view your changes to the BitBurner documentation on [Read The To contribute to and view your changes to the BitBurner documentation in-game, you will
Docs](http://bitburner.readthedocs.io/), you will need to edit the files in [this folder](https://github.com/bitburner-official/bitburner-src/tree/dev/src/Documentation/doc)
need to have Python installed, along with [Sphinx](http://www.sphinx-doc.org).
To make change to the [in-game documentation](../markdown/bitburner.md), you will need to modify the [TypeScript definitions](../src/ScriptEditor/NetscriptDefinitions.d.ts), not the Markdown files. To make change to the [in-game documentation](../markdown/bitburner.md), you will need to modify the [TypeScript definitions](../src/ScriptEditor/NetscriptDefinitions.d.ts), not the Markdown files.
@@ -234,8 +229,6 @@ rules:
- Rebase your branch if necessary. - Rebase your branch if necessary.
- When submitting the pull request, make sure that the base fork is - When submitting the pull request, make sure that the base fork is
_bitburner-official/bitburner-src_ and the base is _dev_. _bitburner-official/bitburner-src_ and the base is _dev_.
- Do not check in any generated files under `doc\`. The documentation is built
automatically by ReadTheDocs.
## Deploying a new version ## Deploying a new version
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "bitburner", "name": "bitburner",
"version": "2.3.2dev", "version": "2.5.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bitburner", "name": "bitburner",
"version": "2.3.2dev", "version": "2.5.0",
"dependencies": { "dependencies": {
"electron-config": "^2.0.0", "electron-config": "^2.0.0",
"electron-log": "^4.4.8", "electron-log": "^4.4.8",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "bitburner", "name": "bitburner",
"version": "2.3.2dev", "version": "2.5.0",
"description": "A cyberpunk-themed programming incremental game", "description": "A cyberpunk-themed programming incremental game",
"main": "main.js", "main": "main.js",
"author": "Daniel Xie, Olivier Gagnon, et al.", "author": "Daniel Xie, Olivier Gagnon, et al.",
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [BitNodeMultipliers](./bitburner.bitnodemultipliers.md) &gt; [CorporationDivisions](./bitburner.bitnodemultipliers.corporationdivisions.md)
## BitNodeMultipliers.CorporationDivisions property
Influences the amount of divisions a corporation can have have at the same time
**Signature:**
```typescript
CorporationDivisions: number;
```
+1
View File
@@ -26,6 +26,7 @@ interface BitNodeMultipliers
| [CodingContractMoney](./bitburner.bitnodemultipliers.codingcontractmoney.md) | | number | Influences the amount of money gained from completing Coding Contracts | | [CodingContractMoney](./bitburner.bitnodemultipliers.codingcontractmoney.md) | | number | Influences the amount of money gained from completing Coding Contracts |
| [CompanyWorkExpGain](./bitburner.bitnodemultipliers.companyworkexpgain.md) | | number | Influences the experience gained for each ability when the player completes working their job. | | [CompanyWorkExpGain](./bitburner.bitnodemultipliers.companyworkexpgain.md) | | number | Influences the experience gained for each ability when the player completes working their job. |
| [CompanyWorkMoney](./bitburner.bitnodemultipliers.companyworkmoney.md) | | number | Influences how much money the player earns when completing working their job. | | [CompanyWorkMoney](./bitburner.bitnodemultipliers.companyworkmoney.md) | | number | Influences how much money the player earns when completing working their job. |
| [CorporationDivisions](./bitburner.bitnodemultipliers.corporationdivisions.md) | | number | Influences the amount of divisions a corporation can have have at the same time |
| [CorporationSoftcap](./bitburner.bitnodemultipliers.corporationsoftcap.md) | | number | Influences the money gain from dividends of corporations created by the player. | | [CorporationSoftcap](./bitburner.bitnodemultipliers.corporationsoftcap.md) | | number | Influences the money gain from dividends of corporations created by the player. |
| [CorporationValuation](./bitburner.bitnodemultipliers.corporationvaluation.md) | | number | Influences the valuation of corporations created by the player. | | [CorporationValuation](./bitburner.bitnodemultipliers.corporationvaluation.md) | | number | Influences the valuation of corporations created by the player. |
| [CrimeExpGain](./bitburner.bitnodemultipliers.crimeexpgain.md) | | number | Influences the base experience gained for each ability when the player commits a crime. | | [CrimeExpGain](./bitburner.bitnodemultipliers.crimeexpgain.md) | | number | Influences the base experience gained for each ability when the player commits a crime. |
@@ -18,7 +18,7 @@ getActionRepGain(type: string, name: string, level: number): number;
| --- | --- | --- | | --- | --- | --- |
| type | string | Type of action. | | type | string | Type of action. |
| name | string | Name of action. Must be an exact match. | | name | string | Name of action. Must be an exact match. |
| level | number | Optional action level at which to calculate the gain | | level | number | Optional number. Action level at which to calculate the gain. Will be the action's current level if not given. |
**Returns:** **Returns:**
+57
View File
@@ -0,0 +1,57 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CompanyName](./bitburner.companyname.md)
## CompanyName enum
Names of all companies
**Signature:**
```typescript
declare enum CompanyName
```
## Enumeration Members
| Member | Value | Description |
| --- | --- | --- |
| AeroCorp | <code>&quot;AeroCorp&quot;</code> | |
| AlphaEnterprises | <code>&quot;Alpha Enterprises&quot;</code> | |
| BachmanAndAssociates | <code>&quot;Bachman &amp; Associates&quot;</code> | |
| BladeIndustries | <code>&quot;Blade Industries&quot;</code> | |
| CarmichaelSecurity | <code>&quot;Carmichael Security&quot;</code> | |
| CIA | <code>&quot;Central Intelligence Agency&quot;</code> | |
| ClarkeIncorporated | <code>&quot;Clarke Incorporated&quot;</code> | |
| CompuTek | <code>&quot;CompuTek&quot;</code> | |
| DefComm | <code>&quot;DefComm&quot;</code> | |
| DeltaOne | <code>&quot;DeltaOne&quot;</code> | |
| ECorp | <code>&quot;ECorp&quot;</code> | |
| FoodNStuff | <code>&quot;FoodNStuff&quot;</code> | |
| FourSigma | <code>&quot;Four Sigma&quot;</code> | |
| FulcrumTechnologies | <code>&quot;Fulcrum Technologies&quot;</code> | |
| GalacticCybersystems | <code>&quot;Galactic Cybersystems&quot;</code> | |
| GlobalPharmaceuticals | <code>&quot;Global Pharmaceuticals&quot;</code> | |
| HeliosLabs | <code>&quot;Helios Labs&quot;</code> | |
| IcarusMicrosystems | <code>&quot;Icarus Microsystems&quot;</code> | |
| JoesGuns | <code>&quot;Joe's Guns&quot;</code> | |
| KuaiGongInternational | <code>&quot;KuaiGong International&quot;</code> | |
| LexoCorp | <code>&quot;LexoCorp&quot;</code> | |
| MegaCorp | <code>&quot;MegaCorp&quot;</code> | |
| NetLinkTechnologies | <code>&quot;NetLink Technologies&quot;</code> | |
| NoodleBar | <code>&quot;Noodle Bar&quot;</code> | |
| NovaMedical | <code>&quot;Nova Medical&quot;</code> | |
| NSA | <code>&quot;National Security Agency&quot;</code> | |
| NWO | <code>&quot;NWO&quot;</code> | |
| OmegaSoftware | <code>&quot;Omega Software&quot;</code> | |
| OmniaCybersystems | <code>&quot;Omnia Cybersystems&quot;</code> | |
| OmniTekIncorporated | <code>&quot;OmniTek Incorporated&quot;</code> | |
| Police | <code>&quot;Aevum Police Headquarters&quot;</code> | |
| RhoConstruction | <code>&quot;Rho Construction&quot;</code> | |
| SolarisSpaceSystems | <code>&quot;Solaris Space Systems&quot;</code> | |
| StormTechnologies | <code>&quot;Storm Technologies&quot;</code> | |
| SysCoreSecurities | <code>&quot;SysCore Securities&quot;</code> | |
| UniversalEnergy | <code>&quot;Universal Energy&quot;</code> | |
| VitaLife | <code>&quot;VitaLife&quot;</code> | |
| WatchdogSecurity | <code>&quot;Watchdog Security&quot;</code> | |
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CorpIndustryData](./bitburner.corpindustrydata.md) &gt; [makesMaterials](./bitburner.corpindustrydata.makesmaterials.md)
## CorpIndustryData.makesMaterials property
Whether the industry of this division is capable of producing materials
**Signature:**
```typescript
makesMaterials: boolean;
```
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CorpIndustryData](./bitburner.corpindustrydata.md) &gt; [makesProducts](./bitburner.corpindustrydata.makesproducts.md)
## CorpIndustryData.makesProducts property
Whether the industry of this division is capable of developing and producing products
**Signature:**
```typescript
makesProducts: boolean;
```
+3 -1
View File
@@ -20,7 +20,9 @@ interface CorpIndustryData
| [aiCoreFactor?](./bitburner.corpindustrydata.aicorefactor.md) | | number | _(Optional)_ AI Cores factor | | [aiCoreFactor?](./bitburner.corpindustrydata.aicorefactor.md) | | number | _(Optional)_ AI Cores factor |
| [description](./bitburner.corpindustrydata.description.md) | | string | | | [description](./bitburner.corpindustrydata.description.md) | | string | |
| [hardwareFactor?](./bitburner.corpindustrydata.hardwarefactor.md) | | number | _(Optional)_ Hardware factor | | [hardwareFactor?](./bitburner.corpindustrydata.hardwarefactor.md) | | number | _(Optional)_ Hardware factor |
| [producedMaterials?](./bitburner.corpindustrydata.producedmaterials.md) | | [CorpMaterialName](./bitburner.corpmaterialname.md)<!-- -->\[\] | _(Optional)_ | | [makesMaterials](./bitburner.corpindustrydata.makesmaterials.md) | | boolean | Whether the industry of this division is capable of producing materials |
| [makesProducts](./bitburner.corpindustrydata.makesproducts.md) | | boolean | Whether the industry of this division is capable of developing and producing products |
| [producedMaterials?](./bitburner.corpindustrydata.producedmaterials.md) | | [CorpMaterialName](./bitburner.corpmaterialname.md)<!-- -->\[\] | _(Optional)_ Array of Materials produced |
| [product?](./bitburner.corpindustrydata.product.md) | | [CorpProductData](./bitburner.corpproductdata.md) | _(Optional)_ | | [product?](./bitburner.corpindustrydata.product.md) | | [CorpProductData](./bitburner.corpproductdata.md) | _(Optional)_ |
| [realEstateFactor?](./bitburner.corpindustrydata.realestatefactor.md) | | number | _(Optional)_ Real estate factor | | [realEstateFactor?](./bitburner.corpindustrydata.realestatefactor.md) | | number | _(Optional)_ Real estate factor |
| [recommendStarting](./bitburner.corpindustrydata.recommendstarting.md) | | boolean | | | [recommendStarting](./bitburner.corpindustrydata.recommendstarting.md) | | boolean | |
@@ -4,6 +4,8 @@
## CorpIndustryData.producedMaterials property ## CorpIndustryData.producedMaterials property
Array of Materials produced
**Signature:** **Signature:**
```typescript ```typescript
@@ -4,7 +4,7 @@
## Corporation.buyBackShares() method ## Corporation.buyBackShares() method
Buyback Shares Buyback Shares. Spend money from the player's wallet to transfer shares from public traders to the CEO.
**Signature:** **Signature:**
+2 -2
View File
@@ -19,7 +19,7 @@ export interface Corporation extends WarehouseAPI, OfficeAPI
| --- | --- | | --- | --- |
| [acceptInvestmentOffer()](./bitburner.corporation.acceptinvestmentoffer.md) | Accept investment based on you companies current valuation | | [acceptInvestmentOffer()](./bitburner.corporation.acceptinvestmentoffer.md) | Accept investment based on you companies current valuation |
| [bribe(factionName, amountCash)](./bitburner.corporation.bribe.md) | Bribe a faction | | [bribe(factionName, amountCash)](./bitburner.corporation.bribe.md) | Bribe a faction |
| [buyBackShares(amount)](./bitburner.corporation.buybackshares.md) | Buyback Shares | | [buyBackShares(amount)](./bitburner.corporation.buybackshares.md) | Buyback Shares. Spend money from the player's wallet to transfer shares from public traders to the CEO. |
| [createCorporation(corporationName, selfFund)](./bitburner.corporation.createcorporation.md) | Create a Corporation | | [createCorporation(corporationName, selfFund)](./bitburner.corporation.createcorporation.md) | Create a Corporation |
| [expandCity(divisionName, city)](./bitburner.corporation.expandcity.md) | Expand to a new city | | [expandCity(divisionName, city)](./bitburner.corporation.expandcity.md) | Expand to a new city |
| [expandIndustry(industryType, divisionName)](./bitburner.corporation.expandindustry.md) | Expand to a new industry | | [expandIndustry(industryType, divisionName)](./bitburner.corporation.expandindustry.md) | Expand to a new industry |
@@ -40,5 +40,5 @@ export interface Corporation extends WarehouseAPI, OfficeAPI
| [issueNewShares(amount)](./bitburner.corporation.issuenewshares.md) | Issue new shares | | [issueNewShares(amount)](./bitburner.corporation.issuenewshares.md) | Issue new shares |
| [levelUpgrade(upgradeName)](./bitburner.corporation.levelupgrade.md) | Level an upgrade. | | [levelUpgrade(upgradeName)](./bitburner.corporation.levelupgrade.md) | Level an upgrade. |
| [purchaseUnlock(upgradeName)](./bitburner.corporation.purchaseunlock.md) | Unlock an upgrade | | [purchaseUnlock(upgradeName)](./bitburner.corporation.purchaseunlock.md) | Unlock an upgrade |
| [sellShares(amount)](./bitburner.corporation.sellshares.md) | Sell Shares | | [sellShares(amount)](./bitburner.corporation.sellshares.md) | Sell Shares. Transfer shares from the CEO to public traders to receive money in the player's wallet. |
+1 -1
View File
@@ -4,7 +4,7 @@
## Corporation.sellShares() method ## Corporation.sellShares() method
Sell Shares Sell Shares. Transfer shares from the CEO to public traders to receive money in the player's wallet.
**Signature:** **Signature:**
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CorporationInfo](./bitburner.corporationinfo.md) &gt; [investorShares](./bitburner.corporationinfo.investorshares.md)
## CorporationInfo.investorShares property
Amount of shares owned by private investors. Not available for public sale or CEO buyback.
**Signature:**
```typescript
investorShares: number;
```
@@ -4,7 +4,7 @@
## CorporationInfo.issuedShares property ## CorporationInfo.issuedShares property
Amount of acquirable shares. Amount of shares owned by public traders. Available for CEO buyback.
**Signature:** **Signature:**
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CorporationInfo](./bitburner.corporationinfo.md) &gt; [issueNewSharesCooldown](./bitburner.corporationinfo.issuenewsharescooldown.md)
## CorporationInfo.issueNewSharesCooldown property
Cooldown until new shares can be issued
**Signature:**
```typescript
issueNewSharesCooldown: number;
```
+6 -4
View File
@@ -22,13 +22,15 @@ interface CorporationInfo
| [divisions](./bitburner.corporationinfo.divisions.md) | | string\[\] | Array of all division names | | [divisions](./bitburner.corporationinfo.divisions.md) | | string\[\] | Array of all division names |
| [expenses](./bitburner.corporationinfo.expenses.md) | | number | Expenses per second this cycle | | [expenses](./bitburner.corporationinfo.expenses.md) | | number | Expenses per second this cycle |
| [funds](./bitburner.corporationinfo.funds.md) | | number | Funds available | | [funds](./bitburner.corporationinfo.funds.md) | | number | Funds available |
| [issuedShares](./bitburner.corporationinfo.issuedshares.md) | | number | Amount of acquirable shares. | | [investorShares](./bitburner.corporationinfo.investorshares.md) | | number | Amount of shares owned by private investors. Not available for public sale or CEO buyback. |
| [issuedShares](./bitburner.corporationinfo.issuedshares.md) | | number | Amount of shares owned by public traders. Available for CEO buyback. |
| [issueNewSharesCooldown](./bitburner.corporationinfo.issuenewsharescooldown.md) | | number | Cooldown until new shares can be issued |
| [name](./bitburner.corporationinfo.name.md) | | string | Name of the corporation | | [name](./bitburner.corporationinfo.name.md) | | string | Name of the corporation |
| [numShares](./bitburner.corporationinfo.numshares.md) | | number | Amount of share owned | | [numShares](./bitburner.corporationinfo.numshares.md) | | number | Amount of shares owned by the CEO. |
| [public](./bitburner.corporationinfo.public.md) | | boolean | Indicating if the company is public | | [public](./bitburner.corporationinfo.public.md) | | boolean | Indicating if the company is public |
| [revenue](./bitburner.corporationinfo.revenue.md) | | number | Revenue per second this cycle | | [revenue](./bitburner.corporationinfo.revenue.md) | | number | Revenue per second this cycle |
| [sharePrice](./bitburner.corporationinfo.shareprice.md) | | number | Price of the shares | | [sharePrice](./bitburner.corporationinfo.shareprice.md) | | number | Price of the shares |
| [shareSaleCooldown](./bitburner.corporationinfo.sharesalecooldown.md) | | number | Cooldown until shares can be sold again | | [shareSaleCooldown](./bitburner.corporationinfo.sharesalecooldown.md) | | number | Cooldown until shares can be sold again |
| [state](./bitburner.corporationinfo.state.md) | | string | State of the corporation. Possible states are START, PURCHASE, PRODUCTION, EXPORT, SALE. | | [state](./bitburner.corporationinfo.state.md) | | string | <p>The next state to be processed.</p><p>I.e. when the state is PURCHASE, it means purchasing will occur during the next state transition.</p><p>Possible states are START, PURCHASE, PRODUCTION, EXPORT, SALE.</p> |
| [totalShares](./bitburner.corporationinfo.totalshares.md) | | number | Total number of shares issues by this corporation | | [totalShares](./bitburner.corporationinfo.totalshares.md) | | number | Total number of shares issued by this corporation. |
@@ -4,7 +4,7 @@
## CorporationInfo.numShares property ## CorporationInfo.numShares property
Amount of share owned Amount of shares owned by the CEO.
**Signature:** **Signature:**
+5 -1
View File
@@ -4,7 +4,11 @@
## CorporationInfo.state property ## CorporationInfo.state property
State of the corporation. Possible states are START, PURCHASE, PRODUCTION, EXPORT, SALE. The next state to be processed.
I.e. when the state is PURCHASE, it means purchasing will occur during the next state transition.
Possible states are START, PURCHASE, PRODUCTION, EXPORT, SALE.
**Signature:** **Signature:**
@@ -4,7 +4,7 @@
## CorporationInfo.totalShares property ## CorporationInfo.totalShares property
Total number of shares issues by this corporation Total number of shares issued by this corporation.
**Signature:** **Signature:**
+1 -1
View File
@@ -4,7 +4,7 @@
## Division.makesProducts property ## Division.makesProducts property
Whether the industry this division is in is capable of making products Whether the industry of this division is capable of developing and producing products
**Signature:** **Signature:**
+1 -1
View File
@@ -20,7 +20,7 @@ interface Division
| [cities](./bitburner.division.cities.md) | | [CityName](./bitburner.cityname.md)<!-- -->\[\] | Cities in which this division has expanded | | [cities](./bitburner.division.cities.md) | | [CityName](./bitburner.cityname.md)<!-- -->\[\] | Cities in which this division has expanded |
| [lastCycleExpenses](./bitburner.division.lastcycleexpenses.md) | | number | Expenses last cycle | | [lastCycleExpenses](./bitburner.division.lastcycleexpenses.md) | | number | Expenses last cycle |
| [lastCycleRevenue](./bitburner.division.lastcyclerevenue.md) | | number | Revenue last cycle | | [lastCycleRevenue](./bitburner.division.lastcyclerevenue.md) | | number | Revenue last cycle |
| [makesProducts](./bitburner.division.makesproducts.md) | | boolean | Whether the industry this division is in is capable of making products | | [makesProducts](./bitburner.division.makesproducts.md) | | boolean | Whether the industry of this division is capable of developing and producing products |
| [maxProducts](./bitburner.division.maxproducts.md) | | number | How many products this division can support | | [maxProducts](./bitburner.division.maxproducts.md) | | number | How many products this division can support |
| [name](./bitburner.division.name.md) | | string | Name of the division | | [name](./bitburner.division.name.md) | | string | Name of the division |
| [numAdVerts](./bitburner.division.numadverts.md) | | number | Number of times AdVert has been bought | | [numAdVerts](./bitburner.division.numadverts.md) | | number | Number of times AdVert has been bought |
@@ -0,0 +1,23 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Gang](./bitburner.gang.md) &gt; [getRecruitsAvailable](./bitburner.gang.getrecruitsavailable.md)
## Gang.getRecruitsAvailable() method
Check how many gang members you can currently recruit.
**Signature:**
```typescript
getRecruitsAvailable(): number;
```
**Returns:**
number
Number indicating how many members can be recruited, considering current reputation and gang size.
## Remarks
RAM cost: 1 GB
+3
View File
@@ -34,11 +34,14 @@ If you are not in BitNode-2, then you must have Source-File 2 in order to use th
| [getMemberInformation(name)](./bitburner.gang.getmemberinformation.md) | Get information about a specific gang member. | | [getMemberInformation(name)](./bitburner.gang.getmemberinformation.md) | Get information about a specific gang member. |
| [getMemberNames()](./bitburner.gang.getmembernames.md) | List all gang members. | | [getMemberNames()](./bitburner.gang.getmembernames.md) | List all gang members. |
| [getOtherGangInformation()](./bitburner.gang.getotherganginformation.md) | Get information about the other gangs. | | [getOtherGangInformation()](./bitburner.gang.getotherganginformation.md) | Get information about the other gangs. |
| [getRecruitsAvailable()](./bitburner.gang.getrecruitsavailable.md) | Check how many gang members you can currently recruit. |
| [getTaskNames()](./bitburner.gang.gettasknames.md) | List member task names. | | [getTaskNames()](./bitburner.gang.gettasknames.md) | List member task names. |
| [getTaskStats(name)](./bitburner.gang.gettaskstats.md) | Get stats of a task. | | [getTaskStats(name)](./bitburner.gang.gettaskstats.md) | Get stats of a task. |
| [inGang()](./bitburner.gang.ingang.md) | Check if you're in a gang. | | [inGang()](./bitburner.gang.ingang.md) | Check if you're in a gang. |
| [purchaseEquipment(memberName, equipName)](./bitburner.gang.purchaseequipment.md) | Purchase an equipment for a gang member. | | [purchaseEquipment(memberName, equipName)](./bitburner.gang.purchaseequipment.md) | Purchase an equipment for a gang member. |
| [recruitMember(name)](./bitburner.gang.recruitmember.md) | Recruit a new gang member. | | [recruitMember(name)](./bitburner.gang.recruitmember.md) | Recruit a new gang member. |
| [renameMember(memberName, newName)](./bitburner.gang.renamemember.md) | Rename a Gang member to a new unique name. |
| [respectForNextRecruit()](./bitburner.gang.respectfornextrecruit.md) | Check the amount of Respect needed for your next gang recruit. |
| [setMemberTask(memberName, taskName)](./bitburner.gang.setmembertask.md) | Set gang member to task. | | [setMemberTask(memberName, taskName)](./bitburner.gang.setmembertask.md) | Set gang member to task. |
| [setTerritoryWarfare(engage)](./bitburner.gang.setterritorywarfare.md) | Enable/Disable territory warfare. | | [setTerritoryWarfare(engage)](./bitburner.gang.setterritorywarfare.md) | Enable/Disable territory warfare. |
+33
View File
@@ -0,0 +1,33 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Gang](./bitburner.gang.md) &gt; [renameMember](./bitburner.gang.renamemember.md)
## Gang.renameMember() method
Rename a Gang member to a new unique name.
**Signature:**
```typescript
renameMember(memberName: string, newName: string): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| memberName | string | Name of the member to change. |
| newName | string | New name for that gang member. |
**Returns:**
boolean
True if successful, and false if not.
## Remarks
RAM cost: 0 GB
Rename a Gang Member if none already has the new name.
@@ -0,0 +1,23 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Gang](./bitburner.gang.md) &gt; [respectForNextRecruit](./bitburner.gang.respectfornextrecruit.md)
## Gang.respectForNextRecruit() method
Check the amount of Respect needed for your next gang recruit.
**Signature:**
```typescript
respectForNextRecruit(): number;
```
**Returns:**
number
The static number value of Respect needed for the next recruit, with consideration to your current gang size. Returns `Infinity` if you have reached the gang size limit.
## Remarks
RAM cost: 1 GB
+1
View File
@@ -21,6 +21,7 @@ interface GangGenInfo
| [moneyGainRate](./bitburner.ganggeninfo.moneygainrate.md) | | number | Money earned per game cycle | | [moneyGainRate](./bitburner.ganggeninfo.moneygainrate.md) | | number | Money earned per game cycle |
| [power](./bitburner.ganggeninfo.power.md) | | number | Gang's power for territory warfare | | [power](./bitburner.ganggeninfo.power.md) | | number | Gang's power for territory warfare |
| [respect](./bitburner.ganggeninfo.respect.md) | | number | Gang's respect | | [respect](./bitburner.ganggeninfo.respect.md) | | number | Gang's respect |
| [respectForNextRecruit](./bitburner.ganggeninfo.respectfornextrecruit.md) | | number | Amount of Respect needed for next gang recruit, if possible |
| [respectGainRate](./bitburner.ganggeninfo.respectgainrate.md) | | number | Respect earned per game cycle | | [respectGainRate](./bitburner.ganggeninfo.respectgainrate.md) | | number | Respect earned per game cycle |
| [territory](./bitburner.ganggeninfo.territory.md) | | number | Amount of territory held | | [territory](./bitburner.ganggeninfo.territory.md) | | number | Amount of territory held |
| [territoryClashChance](./bitburner.ganggeninfo.territoryclashchance.md) | | number | Clash chance | | [territoryClashChance](./bitburner.ganggeninfo.territoryclashchance.md) | | number | Clash chance |
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [GangGenInfo](./bitburner.ganggeninfo.md) &gt; [respectForNextRecruit](./bitburner.ganggeninfo.respectfornextrecruit.md)
## GangGenInfo.respectForNextRecruit property
Amount of Respect needed for next gang recruit, if possible
**Signature:**
```typescript
respectForNextRecruit: number;
```
@@ -4,7 +4,7 @@
## GangMemberInfo.agi\_asc\_points property ## GangMemberInfo.agi\_asc\_points property
Total earned agility experience Total Agility Ascension points accumulated
**Signature:** **Signature:**
@@ -4,6 +4,8 @@
## GangMemberInfo.augmentations property ## GangMemberInfo.augmentations property
List of all Augmentations currently installed on gang member
**Signature:** **Signature:**
```typescript ```typescript
@@ -4,7 +4,7 @@
## GangMemberInfo.cha\_asc\_points property ## GangMemberInfo.cha\_asc\_points property
Total earned charisma experience Total Charisma Ascension points accumulated
**Signature:** **Signature:**
@@ -4,7 +4,7 @@
## GangMemberInfo.def\_asc\_points property ## GangMemberInfo.def\_asc\_points property
Total earned defense experience Total Defense Ascension points accumulated
**Signature:** **Signature:**
@@ -4,7 +4,7 @@
## GangMemberInfo.dex\_asc\_points property ## GangMemberInfo.dex\_asc\_points property
Total earned dexterity experience Total Dexterity Ascension points accumulated
**Signature:** **Signature:**
@@ -4,6 +4,8 @@
## GangMemberInfo.earnedRespect property ## GangMemberInfo.earnedRespect property
Amount of Respect earned by member since they last Ascended
**Signature:** **Signature:**
```typescript ```typescript
@@ -4,7 +4,7 @@
## GangMemberInfo.hack\_asc\_points property ## GangMemberInfo.hack\_asc\_points property
Total earned hack experience Total Hack Ascension points accumulated
**Signature:** **Signature:**
+12 -12
View File
@@ -16,41 +16,41 @@ interface GangMemberInfo
| Property | Modifiers | Type | Description | | Property | Modifiers | Type | Description |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| [agi\_asc\_mult](./bitburner.gangmemberinfo.agi_asc_mult.md) | | number | Agility multiplier from ascensions | | [agi\_asc\_mult](./bitburner.gangmemberinfo.agi_asc_mult.md) | | number | Agility multiplier from ascensions |
| [agi\_asc\_points](./bitburner.gangmemberinfo.agi_asc_points.md) | | number | Total earned agility experience | | [agi\_asc\_points](./bitburner.gangmemberinfo.agi_asc_points.md) | | number | Total Agility Ascension points accumulated |
| [agi\_exp](./bitburner.gangmemberinfo.agi_exp.md) | | number | Current agility experience | | [agi\_exp](./bitburner.gangmemberinfo.agi_exp.md) | | number | Current agility experience |
| [agi\_mult](./bitburner.gangmemberinfo.agi_mult.md) | | number | Agility multiplier from equipment | | [agi\_mult](./bitburner.gangmemberinfo.agi_mult.md) | | number | Agility multiplier from equipment |
| [agi](./bitburner.gangmemberinfo.agi.md) | | number | Agility skill level | | [agi](./bitburner.gangmemberinfo.agi.md) | | number | Agility skill level |
| [augmentations](./bitburner.gangmemberinfo.augmentations.md) | | string\[\] | | | [augmentations](./bitburner.gangmemberinfo.augmentations.md) | | string\[\] | List of all Augmentations currently installed on gang member |
| [cha\_asc\_mult](./bitburner.gangmemberinfo.cha_asc_mult.md) | | number | Charisma multiplier from ascensions | | [cha\_asc\_mult](./bitburner.gangmemberinfo.cha_asc_mult.md) | | number | Charisma multiplier from ascensions |
| [cha\_asc\_points](./bitburner.gangmemberinfo.cha_asc_points.md) | | number | Total earned charisma experience | | [cha\_asc\_points](./bitburner.gangmemberinfo.cha_asc_points.md) | | number | Total Charisma Ascension points accumulated |
| [cha\_exp](./bitburner.gangmemberinfo.cha_exp.md) | | number | Current charisma experience | | [cha\_exp](./bitburner.gangmemberinfo.cha_exp.md) | | number | Current charisma experience |
| [cha\_mult](./bitburner.gangmemberinfo.cha_mult.md) | | number | Charisma multiplier from equipment | | [cha\_mult](./bitburner.gangmemberinfo.cha_mult.md) | | number | Charisma multiplier from equipment |
| [cha](./bitburner.gangmemberinfo.cha.md) | | number | Charisma skill level | | [cha](./bitburner.gangmemberinfo.cha.md) | | number | Charisma skill level |
| [def\_asc\_mult](./bitburner.gangmemberinfo.def_asc_mult.md) | | number | Defense multiplier from ascensions | | [def\_asc\_mult](./bitburner.gangmemberinfo.def_asc_mult.md) | | number | Defense multiplier from ascensions |
| [def\_asc\_points](./bitburner.gangmemberinfo.def_asc_points.md) | | number | Total earned defense experience | | [def\_asc\_points](./bitburner.gangmemberinfo.def_asc_points.md) | | number | Total Defense Ascension points accumulated |
| [def\_exp](./bitburner.gangmemberinfo.def_exp.md) | | number | Current defense experience | | [def\_exp](./bitburner.gangmemberinfo.def_exp.md) | | number | Current defense experience |
| [def\_mult](./bitburner.gangmemberinfo.def_mult.md) | | number | Defense multiplier from equipment | | [def\_mult](./bitburner.gangmemberinfo.def_mult.md) | | number | Defense multiplier from equipment |
| [def](./bitburner.gangmemberinfo.def.md) | | number | Defense skill level | | [def](./bitburner.gangmemberinfo.def.md) | | number | Defense skill level |
| [dex\_asc\_mult](./bitburner.gangmemberinfo.dex_asc_mult.md) | | number | Dexterity multiplier from ascensions | | [dex\_asc\_mult](./bitburner.gangmemberinfo.dex_asc_mult.md) | | number | Dexterity multiplier from ascensions |
| [dex\_asc\_points](./bitburner.gangmemberinfo.dex_asc_points.md) | | number | Total earned dexterity experience | | [dex\_asc\_points](./bitburner.gangmemberinfo.dex_asc_points.md) | | number | Total Dexterity Ascension points accumulated |
| [dex\_exp](./bitburner.gangmemberinfo.dex_exp.md) | | number | Current dexterity experience | | [dex\_exp](./bitburner.gangmemberinfo.dex_exp.md) | | number | Current dexterity experience |
| [dex\_mult](./bitburner.gangmemberinfo.dex_mult.md) | | number | Dexterity multiplier from equipment | | [dex\_mult](./bitburner.gangmemberinfo.dex_mult.md) | | number | Dexterity multiplier from equipment |
| [dex](./bitburner.gangmemberinfo.dex.md) | | number | Dexterity skill level | | [dex](./bitburner.gangmemberinfo.dex.md) | | number | Dexterity skill level |
| [earnedRespect](./bitburner.gangmemberinfo.earnedrespect.md) | | number | | | [earnedRespect](./bitburner.gangmemberinfo.earnedrespect.md) | | number | Amount of Respect earned by member since they last Ascended |
| [hack\_asc\_mult](./bitburner.gangmemberinfo.hack_asc_mult.md) | | number | Hack multiplier from ascensions | | [hack\_asc\_mult](./bitburner.gangmemberinfo.hack_asc_mult.md) | | number | Hack multiplier from ascensions |
| [hack\_asc\_points](./bitburner.gangmemberinfo.hack_asc_points.md) | | number | Total earned hack experience | | [hack\_asc\_points](./bitburner.gangmemberinfo.hack_asc_points.md) | | number | Total Hack Ascension points accumulated |
| [hack\_exp](./bitburner.gangmemberinfo.hack_exp.md) | | number | Current hack experience | | [hack\_exp](./bitburner.gangmemberinfo.hack_exp.md) | | number | Current hack experience |
| [hack\_mult](./bitburner.gangmemberinfo.hack_mult.md) | | number | Hack multiplier from equipment | | [hack\_mult](./bitburner.gangmemberinfo.hack_mult.md) | | number | Hack multiplier from equipment |
| [hack](./bitburner.gangmemberinfo.hack.md) | | number | Hack skill level | | [hack](./bitburner.gangmemberinfo.hack.md) | | number | Hack skill level |
| [moneyGain](./bitburner.gangmemberinfo.moneygain.md) | | number | | | [moneyGain](./bitburner.gangmemberinfo.moneygain.md) | | number | Per Cycle Income for this gang member |
| [name](./bitburner.gangmemberinfo.name.md) | | string | Name of the gang member | | [name](./bitburner.gangmemberinfo.name.md) | | string | Name of the gang member |
| [respectGain](./bitburner.gangmemberinfo.respectgain.md) | | number | | | [respectGain](./bitburner.gangmemberinfo.respectgain.md) | | number | Per Cycle Rate this member is currently gaining Respect |
| [str\_asc\_mult](./bitburner.gangmemberinfo.str_asc_mult.md) | | number | Strength multiplier from ascensions | | [str\_asc\_mult](./bitburner.gangmemberinfo.str_asc_mult.md) | | number | Strength multiplier from ascensions |
| [str\_asc\_points](./bitburner.gangmemberinfo.str_asc_points.md) | | number | Total earned strength experience | | [str\_asc\_points](./bitburner.gangmemberinfo.str_asc_points.md) | | number | Total Strength Ascension points accumulated |
| [str\_exp](./bitburner.gangmemberinfo.str_exp.md) | | number | Current strength experience | | [str\_exp](./bitburner.gangmemberinfo.str_exp.md) | | number | Current strength experience |
| [str\_mult](./bitburner.gangmemberinfo.str_mult.md) | | number | Strength multiplier from equipment | | [str\_mult](./bitburner.gangmemberinfo.str_mult.md) | | number | Strength multiplier from equipment |
| [str](./bitburner.gangmemberinfo.str.md) | | number | Strength skill level | | [str](./bitburner.gangmemberinfo.str.md) | | number | Strength skill level |
| [task](./bitburner.gangmemberinfo.task.md) | | string | Currently assigned task | | [task](./bitburner.gangmemberinfo.task.md) | | string | Currently assigned task |
| [upgrades](./bitburner.gangmemberinfo.upgrades.md) | | string\[\] | | | [upgrades](./bitburner.gangmemberinfo.upgrades.md) | | string\[\] | List of all non-Augmentation Equipment owned by gang member |
| [wantedLevelGain](./bitburner.gangmemberinfo.wantedlevelgain.md) | | number | | | [wantedLevelGain](./bitburner.gangmemberinfo.wantedlevelgain.md) | | number | Per Cycle Rate by which this member is affecting your gang's Wanted Level |
@@ -4,6 +4,8 @@
## GangMemberInfo.moneyGain property ## GangMemberInfo.moneyGain property
Per Cycle Income for this gang member
**Signature:** **Signature:**
```typescript ```typescript
@@ -4,6 +4,8 @@
## GangMemberInfo.respectGain property ## GangMemberInfo.respectGain property
Per Cycle Rate this member is currently gaining Respect
**Signature:** **Signature:**
```typescript ```typescript
@@ -4,7 +4,7 @@
## GangMemberInfo.str\_asc\_points property ## GangMemberInfo.str\_asc\_points property
Total earned strength experience Total Strength Ascension points accumulated
**Signature:** **Signature:**
@@ -4,6 +4,8 @@
## GangMemberInfo.upgrades property ## GangMemberInfo.upgrades property
List of all non-Augmentation Equipment owned by gang member
**Signature:** **Signature:**
```typescript ```typescript
@@ -4,6 +4,8 @@
## GangMemberInfo.wantedLevelGain property ## GangMemberInfo.wantedLevelGain property
Per Cycle Rate by which this member is affecting your gang's Wanted Level
**Signature:** **Signature:**
```typescript ```typescript
+4 -6
View File
@@ -34,12 +34,10 @@ declare enum JobName
| IT3 | <code>&quot;Systems Administrator&quot;</code> | | | IT3 | <code>&quot;Systems Administrator&quot;</code> | |
| networkEng0 | <code>&quot;Network Engineer&quot;</code> | | | networkEng0 | <code>&quot;Network Engineer&quot;</code> | |
| networkEng1 | <code>&quot;Network Administrator&quot;</code> | | | networkEng1 | <code>&quot;Network Administrator&quot;</code> | |
| security0 | <code>&quot;Police Officer&quot;</code> | | | security0 | <code>&quot;Security Guard&quot;</code> | |
| security1 | <code>&quot;Police Chief&quot;</code> | | | security1 | <code>&quot;Security Officer&quot;</code> | |
| security2 | <code>&quot;Security Guard&quot;</code> | | | security2 | <code>&quot;Security Supervisor&quot;</code> | |
| security3 | <code>&quot;Security Officer&quot;</code> | | | security3 | <code>&quot;Head of Security&quot;</code> | |
| security4 | <code>&quot;Security Supervisor&quot;</code> | |
| security5 | <code>&quot;Head of Security&quot;</code> | |
| securityEng | <code>&quot;Security Engineer&quot;</code> | | | securityEng | <code>&quot;Security Engineer&quot;</code> | |
| software0 | <code>&quot;Software Engineering Intern&quot;</code> | | | software0 | <code>&quot;Software Engineering Intern&quot;</code> | |
| software1 | <code>&quot;Junior Software Engineer&quot;</code> | | | software1 | <code>&quot;Junior Software Engineer&quot;</code> | |
+3
View File
@@ -9,6 +9,7 @@
| Enumeration | Description | | Enumeration | Description |
| --- | --- | | --- | --- |
| [CityName](./bitburner.cityname.md) | Names of all cities | | [CityName](./bitburner.cityname.md) | Names of all cities |
| [CompanyName](./bitburner.companyname.md) | Names of all companies |
| [CrimeType](./bitburner.crimetype.md) | | | [CrimeType](./bitburner.crimetype.md) | |
| [FactionWorkType](./bitburner.factionworktype.md) | | | [FactionWorkType](./bitburner.factionworktype.md) | |
| [GymType](./bitburner.gymtype.md) | | | [GymType](./bitburner.gymtype.md) | |
@@ -97,7 +98,9 @@
| [Sleeve](./bitburner.sleeve.md) | Sleeve API | | [Sleeve](./bitburner.sleeve.md) | Sleeve API |
| [SleevePerson](./bitburner.sleeveperson.md) | | | [SleevePerson](./bitburner.sleeveperson.md) | |
| [SourceFileLvl](./bitburner.sourcefilelvl.md) | | | [SourceFileLvl](./bitburner.sourcefilelvl.md) | |
| [SpawnOptions](./bitburner.spawnoptions.md) | |
| [Stanek](./bitburner.stanek.md) | Stanek's Gift API. | | [Stanek](./bitburner.stanek.md) | Stanek's Gift API. |
| [StockMarketConstants](./bitburner.stockmarketconstants.md) | Constants used for the stockmarket game mechanic. |
| [StockOrder](./bitburner.stockorder.md) | <p>Return value of [getOrders](./bitburner.tix.getorders.md)</p><p>Keys are stock symbols, properties are arrays of [StockOrderObject](./bitburner.stockorderobject.md)</p> | | [StockOrder](./bitburner.stockorder.md) | <p>Return value of [getOrders](./bitburner.tix.getorders.md)</p><p>Keys are stock symbols, properties are arrays of [StockOrderObject](./bitburner.stockorderobject.md)</p> |
| [StockOrderObject](./bitburner.stockorderobject.md) | Value in map of [StockOrder](./bitburner.stockorder.md) | | [StockOrderObject](./bitburner.stockorderobject.md) | Value in map of [StockOrder](./bitburner.stockorder.md) |
| [TailProperties](./bitburner.tailproperties.md) | | | [TailProperties](./bitburner.tailproperties.md) | |
+2 -2
View File
@@ -9,14 +9,14 @@ Clear data from a port.
**Signature:** **Signature:**
```typescript ```typescript
clearPort(handle: number): void; clearPort(portNumber: number): void;
``` ```
## Parameters ## Parameters
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| handle | number | Port to clear. | | portNumber | number | Port to clear data from. Must be a positive integer. |
**Returns:** **Returns:**
-2
View File
@@ -31,8 +31,6 @@ RAM cost: 0.1 GB
Returns a boolean indicating whether the specified file exists on the target server. The filename for programs is case insensitive, other file types are case sensitive. For example, fileExists(“brutessh.exe”) will work fine, even though the actual program is named 'BruteSSH.exe'. Returns a boolean indicating whether the specified file exists on the target server. The filename for programs is case insensitive, other file types are case sensitive. For example, fileExists(“brutessh.exe”) will work fine, even though the actual program is named 'BruteSSH.exe'.
\*
## Example ## Example
+1 -1
View File
@@ -16,7 +16,7 @@ getPortHandle(portNumber: number): NetscriptPort;
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| portNumber | number | Port number. Must be an integer between 1 and 20. | | portNumber | number | Port number. Must be a positive integer. |
**Returns:** **Returns:**
+3 -3
View File
@@ -21,8 +21,8 @@ getRunningScript(
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| filename | [FilenameOrPID](./bitburner.filenameorpid.md) | _(Optional)_ Optional. Filename or PID of the script. | | filename | [FilenameOrPID](./bitburner.filenameorpid.md) | _(Optional)_ Optional. Filename or PID of the script. |
| hostname | string | _(Optional)_ Optional. Name of host server the script is running on. | | hostname | string | _(Optional)_ Hostname of target server. Optional, defaults to the server the calling script is running on. |
| args | (string \| number \| boolean)\[\] | Arguments to identify the script | | args | (string \| number \| boolean)\[\] | Arguments to specify/identify the script. Optional, when looking for scripts run without arguments. |
**Returns:** **Returns:**
@@ -34,5 +34,5 @@ The info about the running script if found, and null otherwise.
RAM cost: 0.3 GB RAM cost: 0.3 GB
Running with no args returns current script. If you use a PID as the first parameter, the hostname and args parameters are unnecessary. Running with no args returns current script. If you use a PID as the first parameter, the hostname and args parameters are unnecessary. If hostname is omitted while filename is used as the first parameter, hostname defaults to the server the calling script is running on. Remember that a script is semi-uniquely identified by both its name and its arguments. (You can run multiple copies of scripts with the same arguments, but for the purposes of functions like this that check based on filename, the filename plus arguments forms the key.)
+3 -3
View File
@@ -9,14 +9,14 @@ Get all the logs of a script.
**Signature:** **Signature:**
```typescript ```typescript
getScriptLogs(fn?: string, host?: string, ...args: (string | number | boolean)[]): string[]; getScriptLogs(fn?: FilenameOrPID, host?: string, ...args: (string | number | boolean)[]): string[];
``` ```
## Parameters ## Parameters
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| fn | string | _(Optional)_ Optional. Filename of script to get logs from. | | fn | [FilenameOrPID](./bitburner.filenameorpid.md) | _(Optional)_ Optional. Filename or PID of script to get logs from. |
| host | string | _(Optional)_ Optional. Hostname of the server that the script is on. | | host | string | _(Optional)_ Optional. Hostname of the server that the script is on. |
| args | (string \| number \| boolean)\[\] | Arguments to identify which scripts to get logs for. | | args | (string \| number \| boolean)\[\] | Arguments to identify which scripts to get logs for. |
@@ -32,7 +32,7 @@ RAM cost: 0 GB
Returns a scripts 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 games options. If the function is called with no arguments, it will return the current scripts logs. Returns a scripts 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 games options. If the function is called with no arguments, it will return the current scripts logs.
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. Otherwise, the PID or filename, hostname/ip, and args… arguments can be used to get logs from another script. Remember that scripts are uniquely identified by both their names and arguments.
## Example ## Example
+1 -1
View File
@@ -4,7 +4,7 @@
## NS.getSharePower() method ## NS.getSharePower() method
Calculate your share power. Based on all the active share calls. Share Power has a multiplicative effect on rep/second while doing work for a faction. Share Power increases incrementally for every thread of share running on your server network, but at a sharply decreasing rate.
**Signature:** **Signature:**
+3 -3
View File
@@ -17,8 +17,8 @@ isRunning(script: FilenameOrPID, host?: string, ...args: (string | number | bool
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| script | [FilenameOrPID](./bitburner.filenameorpid.md) | Filename or PID of script to check. This is case-sensitive. | | script | [FilenameOrPID](./bitburner.filenameorpid.md) | Filename or PID of script to check. This is case-sensitive. |
| host | string | _(Optional)_ Hostname of target server. | | host | string | _(Optional)_ Hostname of target server. Optional, defaults to the server the calling script is running on. |
| args | (string \| number \| boolean)\[\] | Arguments to specify/identify which scripts to search for. | | args | (string \| number \| boolean)\[\] | Arguments to specify/identify the script. Optional, when looking for scripts run without arguments. |
**Returns:** **Returns:**
@@ -30,7 +30,7 @@ True if the specified script is running on the target server, and false otherwis
RAM cost: 0.1 GB RAM cost: 0.1 GB
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 semi-uniquely identified by both its name and its arguments. (You can run multiple copies of scripts with the same arguments, but for the purposes of functions like this that check based on filename, the filename plus arguments forms the key.) 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. If hostname is omitted while filename is used as the first parameter, hostname defaults to the server the calling script is running on. Remember that a script is semi-uniquely identified by both its name and its arguments. (You can run multiple copies of scripts with the same arguments, but for the purposes of functions like this that check based on filename, the filename plus arguments forms the key.)
## Example ## Example
+3 -4
View File
@@ -26,7 +26,6 @@ export async function main(ns) {
await ns.hack('n00dles'); await ns.hack('n00dles');
} }
``` ```
[ns2 in-game docs](https://bitburner-official.readthedocs.io/en/latest/netscript/netscriptjs.html) <hr> For (deprecated) .script usage, see: [ns1 in-game docs](https://bitburner-official.readthedocs.io/en/latest/netscript/netscript1.html) <hr>
## Properties ## Properties
@@ -59,7 +58,7 @@ export async function main(ns) {
| [brutessh(host)](./bitburner.ns.brutessh.md) | Runs BruteSSH.exe on a server. | | [brutessh(host)](./bitburner.ns.brutessh.md) | Runs BruteSSH.exe on a server. |
| [clear(handle)](./bitburner.ns.clear.md) | Clear data from a file. | | [clear(handle)](./bitburner.ns.clear.md) | Clear data from a file. |
| [clearLog()](./bitburner.ns.clearlog.md) | Clears the scripts logs. | | [clearLog()](./bitburner.ns.clearlog.md) | Clears the scripts logs. |
| [clearPort(handle)](./bitburner.ns.clearport.md) | Clear data from a port. | | [clearPort(portNumber)](./bitburner.ns.clearport.md) | Clear data from a port. |
| [closeTail(pid)](./bitburner.ns.closetail.md) | Close the tail window of a script. | | [closeTail(pid)](./bitburner.ns.closetail.md) | Close the tail window of a script. |
| [deleteServer(host)](./bitburner.ns.deleteserver.md) | Delete a purchased server. | | [deleteServer(host)](./bitburner.ns.deleteserver.md) | Delete a purchased server. |
| [disableLog(fn)](./bitburner.ns.disablelog.md) | Disables logging for the given function. | | [disableLog(fn)](./bitburner.ns.disablelog.md) | Disables logging for the given function. |
@@ -108,7 +107,7 @@ export async function main(ns) {
| [getServerRequiredHackingLevel(host)](./bitburner.ns.getserverrequiredhackinglevel.md) | Returns the required hacking level of the target server. | | [getServerRequiredHackingLevel(host)](./bitburner.ns.getserverrequiredhackinglevel.md) | Returns the required hacking level of the target server. |
| [getServerSecurityLevel(host)](./bitburner.ns.getserversecuritylevel.md) | Get server security level. | | [getServerSecurityLevel(host)](./bitburner.ns.getserversecuritylevel.md) | Get server security level. |
| [getServerUsedRam(host)](./bitburner.ns.getserverusedram.md) | Get the used RAM on a server. | | [getServerUsedRam(host)](./bitburner.ns.getserverusedram.md) | Get the used RAM on a server. |
| [getSharePower()](./bitburner.ns.getsharepower.md) | Calculate your share power. Based on all the active share calls. | | [getSharePower()](./bitburner.ns.getsharepower.md) | Share Power has a multiplicative effect on rep/second while doing work for a faction. Share Power increases incrementally for every thread of share running on your server network, but at a sharply decreasing rate. |
| [getTimeSinceLastAug()](./bitburner.ns.gettimesincelastaug.md) | Returns the amount of time in milliseconds that have passed since you last installed Augmentations. | | [getTimeSinceLastAug()](./bitburner.ns.gettimesincelastaug.md) | Returns the amount of time in milliseconds that have passed since you last installed Augmentations. |
| [getTotalScriptExpGain()](./bitburner.ns.gettotalscriptexpgain.md) | Get the exp gain of all scripts. | | [getTotalScriptExpGain()](./bitburner.ns.gettotalscriptexpgain.md) | Get the exp gain of all scripts. |
| [getTotalScriptIncome()](./bitburner.ns.gettotalscriptincome.md) | Get the income of all scripts. | | [getTotalScriptIncome()](./bitburner.ns.gettotalscriptincome.md) | Get the income of all scripts. |
@@ -156,7 +155,7 @@ export async function main(ns) {
| [setTitle(title, pid)](./bitburner.ns.settitle.md) | Set the title of the tail window of a script. | | [setTitle(title, pid)](./bitburner.ns.settitle.md) | Set the title of the tail window of a script. |
| [share()](./bitburner.ns.share.md) | Share the server's ram with your factions. | | [share()](./bitburner.ns.share.md) | Share the server's ram with your factions. |
| [sleep(millis)](./bitburner.ns.sleep.md) | Suspends the script for n milliseconds. | | [sleep(millis)](./bitburner.ns.sleep.md) | Suspends the script for n milliseconds. |
| [spawn(script, threadOrOptions, args)](./bitburner.ns.spawn.md) | Terminate current script and start another in 10 seconds. | | [spawn(script, threadOrOptions, args)](./bitburner.ns.spawn.md) | Terminate current script and start another in a defined number of milliseconds. |
| [sprintf(format, args)](./bitburner.ns.sprintf.md) | Format a string. | | [sprintf(format, args)](./bitburner.ns.sprintf.md) | Format a string. |
| [sqlinject(host)](./bitburner.ns.sqlinject.md) | Runs SQLInject.exe on a server. | | [sqlinject(host)](./bitburner.ns.sqlinject.md) | Runs SQLInject.exe on a server. |
| [tail(fn, host, args)](./bitburner.ns.tail.md) | Open the tail window of a script. | | [tail(fn, host, args)](./bitburner.ns.tail.md) | Open the tail window of a script. |
+1 -1
View File
@@ -16,7 +16,7 @@ peek(portNumber: number): PortData;
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| portNumber | number | Port to peek. Must be an integer between 1 and 20. | | portNumber | number | Port to peek. Must be a positive integer. |
**Returns:** **Returns:**
+1 -1
View File
@@ -16,7 +16,7 @@ readPort(portNumber: number): PortData;
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| portNumber | number | | | portNumber | number | Port to read from. Must be a positive integer. |
**Returns:** **Returns:**
+1 -1
View File
@@ -19,5 +19,5 @@ Promise&lt;void&gt;
RAM cost: 2.4 GB RAM cost: 2.4 GB
Increases your rep gain of all faction work types while share is called. Scales with thread count. Increases rep/second for all faction work while share is running. Each cycle of ns.share() is 10 seconds. Scales with thread count, but at a sharply decreasing rate.
+6 -6
View File
@@ -4,12 +4,12 @@
## NS.spawn() method ## NS.spawn() method
Terminate current script and start another in 10 seconds. Terminate current script and start another in a defined number of milliseconds.
**Signature:** **Signature:**
```typescript ```typescript
spawn(script: string, threadOrOptions?: number | RunOptions, ...args: (string | number | boolean)[]): void; spawn(script: string, threadOrOptions?: number | SpawnOptions, ...args: (string | number | boolean)[]): void;
``` ```
## Parameters ## Parameters
@@ -17,7 +17,7 @@ spawn(script: string, threadOrOptions?: number | RunOptions, ...args: (string |
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| script | string | Filename of script to execute. | | script | string | Filename of script to execute. |
| threadOrOptions | number \| [RunOptions](./bitburner.runoptions.md) | _(Optional)_ Either an integer number of threads for new script, or a [RunOptions](./bitburner.runoptions.md) object. Threads defaults to 1. | | threadOrOptions | number \| [SpawnOptions](./bitburner.spawnoptions.md) | _(Optional)_ Either an integer number of threads for new script, or a [SpawnOptions](./bitburner.spawnoptions.md) object. Threads defaults to 1. |
| args | (string \| number \| boolean)\[\] | Additional arguments to pass into the new script that is being run. | | args | (string \| number \| boolean)\[\] | Additional arguments to pass into the new script that is being run. |
**Returns:** **Returns:**
@@ -28,7 +28,7 @@ void
RAM cost: 2 GB RAM cost: 2 GB
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. Terminates the current script, and then after a defined delay 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.
Because this function immediately terminates the script, it does not have a return value. Because this function immediately terminates the script, it does not have a return value.
@@ -38,7 +38,7 @@ Running this function with 0 or fewer threads will cause a runtime error.
```js ```js
//The following example will execute the script foo.js with 10 threads and the arguments foodnstuff and 90: //The following example will execute the script foo.js with 10 threads, in 500 milliseconds and the arguments foodnstuff and 90:
ns.spawn('foo.js', 10, 'foodnstuff', 90); ns.spawn('foo.js', 10, 500, 'foodnstuff', 90);
``` ```
+1 -1
View File
@@ -32,7 +32,7 @@ Opens a scripts logs. This is functionally the same as the tail Terminal comm
If the function is called with no arguments, it will open the current scripts logs. If the function is called with no arguments, it will open the current scripts logs.
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. Otherwise, the PID or filename, 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.
## Example ## Example
+1 -1
View File
@@ -16,7 +16,7 @@ tryWritePort(portNumber: number, data: string | number): boolean;
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| portNumber | number | Port or text file that will be written to. | | portNumber | number | Port to attempt to write to to. Must be a positive integer. |
| data | string \| number | Data to write. | | data | string \| number | Data to write. |
**Returns:** **Returns:**
+1 -1
View File
@@ -16,7 +16,7 @@ writePort(portNumber: number, data: string | number): PortData | null;
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| portNumber | number | | | portNumber | number | Port to write to. Must be a positive integer. |
| data | string \| number | | | data | string \| number | |
**Returns:** **Returns:**
+2 -1
View File
@@ -17,7 +17,8 @@ export type NSEnums = {
LocationName: typeof LocationName; LocationName: typeof LocationName;
ToastVariant: typeof ToastVariant; ToastVariant: typeof ToastVariant;
UniversityClassType: typeof UniversityClassType; UniversityClassType: typeof UniversityClassType;
CompanyName: typeof CompanyName;
}; };
``` ```
**References:** [CityName](./bitburner.cityname.md)<!-- -->, [CrimeType](./bitburner.crimetype.md)<!-- -->, [FactionWorkType](./bitburner.factionworktype.md)<!-- -->, [GymType](./bitburner.gymtype.md)<!-- -->, [JobName](./bitburner.jobname.md)<!-- -->, [LocationName](./bitburner.locationname.md)<!-- -->, [ToastVariant](./bitburner.toastvariant.md)<!-- -->, [UniversityClassType](./bitburner.universityclasstype.md) **References:** [CityName](./bitburner.cityname.md)<!-- -->, [CrimeType](./bitburner.crimetype.md)<!-- -->, [FactionWorkType](./bitburner.factionworktype.md)<!-- -->, [GymType](./bitburner.gymtype.md)<!-- -->, [JobName](./bitburner.jobname.md)<!-- -->, [LocationName](./bitburner.locationname.md)<!-- -->, [ToastVariant](./bitburner.toastvariant.md)<!-- -->, [UniversityClassType](./bitburner.universityclasstype.md)<!-- -->, [CompanyName](./bitburner.companyname.md)
+1 -1
View File
@@ -7,5 +7,5 @@
**Signature:** **Signature:**
```typescript ```typescript
jobs: Record<string, string>; jobs: Partial<Record<CompanyName, JobName>>;
``` ```
+1 -1
View File
@@ -18,7 +18,7 @@ interface Player extends Person
| --- | --- | --- | --- | | --- | --- | --- | --- |
| [entropy](./bitburner.player.entropy.md) | | number | | | [entropy](./bitburner.player.entropy.md) | | number | |
| [factions](./bitburner.player.factions.md) | | string\[\] | | | [factions](./bitburner.player.factions.md) | | string\[\] | |
| [jobs](./bitburner.player.jobs.md) | | Record&lt;string, string&gt; | | | [jobs](./bitburner.player.jobs.md) | | Partial&lt;Record&lt;[CompanyName](./bitburner.companyname.md)<!-- -->, [JobName](./bitburner.jobname.md)<!-- -->&gt;&gt; | |
| [location](./bitburner.player.location.md) | | string | | | [location](./bitburner.player.location.md) | | string | |
| [money](./bitburner.player.money.md) | | number | | | [money](./bitburner.player.money.md) | | number | |
| [numPeopleKilled](./bitburner.player.numpeoplekilled.md) | | number | | | [numPeopleKilled](./bitburner.player.numpeoplekilled.md) | | number | |
+2
View File
@@ -19,4 +19,6 @@ interface ResetInfo
| [currentNode](./bitburner.resetinfo.currentnode.md) | | number | The current bitnode | | [currentNode](./bitburner.resetinfo.currentnode.md) | | number | The current bitnode |
| [lastAugReset](./bitburner.resetinfo.lastaugreset.md) | | number | Numeric timestamp (from Date.now()) of last augmentation reset | | [lastAugReset](./bitburner.resetinfo.lastaugreset.md) | | number | Numeric timestamp (from Date.now()) of last augmentation reset |
| [lastNodeReset](./bitburner.resetinfo.lastnodereset.md) | | number | Numeric timestamp (from Date.now()) of last bitnode reset | | [lastNodeReset](./bitburner.resetinfo.lastnodereset.md) | | number | Numeric timestamp (from Date.now()) of last bitnode reset |
| [ownedAugs](./bitburner.resetinfo.ownedaugs.md) | | Map&lt;string, number&gt; | A map of owned augmentations to their levels. Keyed by the augmentation name. Map values are the augmentation level (e.g. for NeuroFlux governor). |
| [ownedSF](./bitburner.resetinfo.ownedsf.md) | | Map&lt;number, number&gt; | A map of owned SF to their levels. Keyed by the SF number. Map values are the SF level. |
+13
View File
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [ResetInfo](./bitburner.resetinfo.md) &gt; [ownedAugs](./bitburner.resetinfo.ownedaugs.md)
## ResetInfo.ownedAugs property
A map of owned augmentations to their levels. Keyed by the augmentation name. Map values are the augmentation level (e.g. for NeuroFlux governor).
**Signature:**
```typescript
ownedAugs: Map<string, number>;
```
+13
View File
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [ResetInfo](./bitburner.resetinfo.md) &gt; [ownedSF](./bitburner.resetinfo.ownedsf.md)
## ResetInfo.ownedSF property
A map of owned SF to their levels. Keyed by the SF number. Map values are the SF level.
**Signature:**
```typescript
ownedSF: Map<number, number>;
```
@@ -9,14 +9,14 @@ Apply for a job at a company.
**Signature:** **Signature:**
```typescript ```typescript
applyToCompany(companyName: string, field: string): boolean; applyToCompany(companyName: CompanyName | `${CompanyName}`, field: string): boolean;
``` ```
## Parameters ## Parameters
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| companyName | string | Name of company to apply to. | | companyName | [CompanyName](./bitburner.companyname.md) \| \`${[CompanyName](./bitburner.companyname.md)<!-- -->}\` | Name of company to apply to. |
| field | string | Field to which you want to apply. | | field | string | Field to which you want to apply. |
**Returns:** **Returns:**
@@ -0,0 +1,32 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Singularity](./bitburner.singularity.md) &gt; [getAugmentationFactions](./bitburner.singularity.getaugmentationfactions.md)
## Singularity.getAugmentationFactions() method
Get a list of faction(s) that have a specific Augmentation.
**Signature:**
```typescript
getAugmentationFactions(augName: string): string[];
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| augName | string | Name of Augmentation. |
**Returns:**
string\[\]
Array containing the names of all factions.
## Remarks
RAM cost: 5 GB \* 16/4/1
Returns an array containing the names (as strings) of all factions that offer the specified Augmentation. If no factions offer the Augmentation, a blank array is returned.
@@ -9,14 +9,14 @@ Get company favor.
**Signature:** **Signature:**
```typescript ```typescript
getCompanyFavor(companyName: string): number; getCompanyFavor(companyName: CompanyName | `${CompanyName}`): number;
``` ```
## Parameters ## Parameters
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| companyName | string | Name of the company. | | companyName | [CompanyName](./bitburner.companyname.md) \| \`${[CompanyName](./bitburner.companyname.md)<!-- -->}\` | Name of the company. |
**Returns:** **Returns:**
@@ -9,14 +9,14 @@ Get company favor gain.
**Signature:** **Signature:**
```typescript ```typescript
getCompanyFavorGain(companyName: string): number; getCompanyFavorGain(companyName: CompanyName | `${CompanyName}`): number;
``` ```
## Parameters ## Parameters
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| companyName | string | Name of the company. | | companyName | [CompanyName](./bitburner.companyname.md) \| \`${[CompanyName](./bitburner.companyname.md)<!-- -->}\` | Name of the company. |
**Returns:** **Returns:**
@@ -9,15 +9,18 @@ Get Requirements for Company Position.
**Signature:** **Signature:**
```typescript ```typescript
getCompanyPositionInfo(companyName: string, positionName: JobName): CompanyPositionInfo; getCompanyPositionInfo(
companyName: CompanyName | `${CompanyName}`,
positionName: JobName | `${JobName}`,
): CompanyPositionInfo;
``` ```
## Parameters ## Parameters
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| companyName | string | Name of company to get the requirements for. Must be an exact match. | | companyName | [CompanyName](./bitburner.companyname.md) \| \`${[CompanyName](./bitburner.companyname.md)<!-- -->}\` | Name of company to get the requirements for. Must be an exact match. |
| positionName | [JobName](./bitburner.jobname.md) | Name of position to get the requirements for. Must be an exact match. | | positionName | [JobName](./bitburner.jobname.md) \| \`${[JobName](./bitburner.jobname.md)<!-- -->}\` | Name of position to get the requirements for. Must be an exact match. |
**Returns:** **Returns:**
@@ -9,14 +9,14 @@ Get List of Company Positions.
**Signature:** **Signature:**
```typescript ```typescript
getCompanyPositions(companyName: string): JobName[]; getCompanyPositions(companyName: CompanyName | `${CompanyName}`): JobName[];
``` ```
## Parameters ## Parameters
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| companyName | string | Name of company to get the position list for. Must be an exact match. | | companyName | [CompanyName](./bitburner.companyname.md) \| \`${[CompanyName](./bitburner.companyname.md)<!-- -->}\` | Name of company to get the position list for. Must be an exact match. |
**Returns:** **Returns:**
@@ -9,14 +9,14 @@ Get company reputation.
**Signature:** **Signature:**
```typescript ```typescript
getCompanyRep(companyName: string): number; getCompanyRep(companyName: CompanyName | `${CompanyName}`): number;
``` ```
## Parameters ## Parameters
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| companyName | string | Name of the company. | | companyName | [CompanyName](./bitburner.companyname.md) \| \`${[CompanyName](./bitburner.companyname.md)<!-- -->}\` | Name of the company. |
**Returns:** **Returns:**
+1
View File
@@ -31,6 +31,7 @@ This API requires Source-File 4 to use. The RAM cost of all these functions is m
| [exportGame()](./bitburner.singularity.exportgame.md) | Backup game save. | | [exportGame()](./bitburner.singularity.exportgame.md) | Backup game save. |
| [exportGameBonus()](./bitburner.singularity.exportgamebonus.md) | Returns Backup save bonus availability. | | [exportGameBonus()](./bitburner.singularity.exportgamebonus.md) | Returns Backup save bonus availability. |
| [getAugmentationBasePrice(augName)](./bitburner.singularity.getaugmentationbaseprice.md) | Get base price of an augmentation. | | [getAugmentationBasePrice(augName)](./bitburner.singularity.getaugmentationbaseprice.md) | Get base price of an augmentation. |
| [getAugmentationFactions(augName)](./bitburner.singularity.getaugmentationfactions.md) | Get a list of faction(s) that have a specific Augmentation. |
| [getAugmentationPrereq(augName)](./bitburner.singularity.getaugmentationprereq.md) | Get the pre-requisite of an augmentation. | | [getAugmentationPrereq(augName)](./bitburner.singularity.getaugmentationprereq.md) | Get the pre-requisite of an augmentation. |
| [getAugmentationPrice(augName)](./bitburner.singularity.getaugmentationprice.md) | Get price of an augmentation. | | [getAugmentationPrice(augName)](./bitburner.singularity.getaugmentationprice.md) | Get price of an augmentation. |
| [getAugmentationRepReq(augName)](./bitburner.singularity.getaugmentationrepreq.md) | Get reputation requirement of an augmentation. | | [getAugmentationRepReq(augName)](./bitburner.singularity.getaugmentationrepreq.md) | Get reputation requirement of an augmentation. |
+2 -2
View File
@@ -9,14 +9,14 @@ Quit jobs by company.
**Signature:** **Signature:**
```typescript ```typescript
quitJob(companyName?: string): void; quitJob(companyName?: CompanyName | `${CompanyName}`): void;
``` ```
## Parameters ## Parameters
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| companyName | string | _(Optional)_ Name of the company. | | companyName | [CompanyName](./bitburner.companyname.md) \| \`${[CompanyName](./bitburner.companyname.md)<!-- -->}\` | _(Optional)_ Name of the company. |
**Returns:** **Returns:**
@@ -9,14 +9,14 @@ Work for a company.
**Signature:** **Signature:**
```typescript ```typescript
workForCompany(companyName: string, focus?: boolean): boolean; workForCompany(companyName: CompanyName, focus?: boolean): boolean;
``` ```
## Parameters ## Parameters
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| companyName | string | 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. | | companyName | [CompanyName](./bitburner.companyname.md) | 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. |
| focus | boolean | _(Optional)_ Acquire player focus on this work operation. Optional. Defaults to true. | | focus | boolean | _(Optional)_ Acquire player focus on this work operation. Optional. Defaults to true. |
**Returns:** **Returns:**
@@ -9,7 +9,7 @@ Set a sleeve to work for a company.
**Signature:** **Signature:**
```typescript ```typescript
setToCompanyWork(sleeveNumber: number, companyName: string): boolean; setToCompanyWork(sleeveNumber: number, companyName: CompanyName | `${CompanyName}`): boolean;
``` ```
## Parameters ## Parameters
@@ -17,7 +17,7 @@ setToCompanyWork(sleeveNumber: number, companyName: string): boolean;
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| sleeveNumber | number | Index of the sleeve to work for the company. | | sleeveNumber | number | Index of the sleeve to work for the company. |
| companyName | string | Name of the company to work for. | | companyName | [CompanyName](./bitburner.companyname.md) \| \`${[CompanyName](./bitburner.companyname.md)<!-- -->}\` | Name of the company to work for. |
**Returns:** **Returns:**
+3 -1
View File
@@ -8,5 +8,7 @@
**Signature:** **Signature:**
```typescript ```typescript
type SleeveCompanyTask = { type: "COMPANY"; companyName: string }; type SleeveCompanyTask = { type: "COMPANY"; companyName: CompanyName };
``` ```
**References:** [CompanyName](./bitburner.companyname.md)
+20
View File
@@ -0,0 +1,20 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [SpawnOptions](./bitburner.spawnoptions.md)
## SpawnOptions interface
**Signature:**
```typescript
interface SpawnOptions extends RunOptions
```
**Extends:** [RunOptions](./bitburner.runoptions.md)
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [spawnDelay?](./bitburner.spawnoptions.spawndelay.md) | | number | _(Optional)_ Number of milliseconds to delay before spawning script, defaults to 10000 (10s). Must be a positive integer. |
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [SpawnOptions](./bitburner.spawnoptions.md) &gt; [spawnDelay](./bitburner.spawnoptions.spawndelay.md)
## SpawnOptions.spawnDelay property
Number of milliseconds to delay before spawning script, defaults to 10000 (10s). Must be a positive integer.
**Signature:**
```typescript
spawnDelay?: number;
```
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [StockMarketConstants](./bitburner.stockmarketconstants.md) &gt; [MarketData4SCost](./bitburner.stockmarketconstants.marketdata4scost.md)
## StockMarketConstants.MarketData4SCost property
Cost of the 4S Market Data
**Signature:**
```typescript
MarketData4SCost: number;
```
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [StockMarketConstants](./bitburner.stockmarketconstants.md) &gt; [MarketDataTixApi4SCost](./bitburner.stockmarketconstants.marketdatatixapi4scost.md)
## StockMarketConstants.MarketDataTixApi4SCost property
Cost of the 4S Market Data TIX API integration
**Signature:**
```typescript
MarketDataTixApi4SCost: number;
```
@@ -0,0 +1,27 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [StockMarketConstants](./bitburner.stockmarketconstants.md)
## StockMarketConstants interface
Constants used for the stockmarket game mechanic.
**Signature:**
```typescript
interface StockMarketConstants
```
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [MarketData4SCost](./bitburner.stockmarketconstants.marketdata4scost.md) | | number | Cost of the 4S Market Data |
| [MarketDataTixApi4SCost](./bitburner.stockmarketconstants.marketdatatixapi4scost.md) | | number | Cost of the 4S Market Data TIX API integration |
| [msPerStockUpdate](./bitburner.stockmarketconstants.msperstockupdate.md) | | number | Normal time in ms between stock market updates |
| [msPerStockUpdateMin](./bitburner.stockmarketconstants.msperstockupdatemin.md) | | number | Minimum time in ms between stock market updates if there is stored offline/bonus time |
| [StockMarketCommission](./bitburner.stockmarketconstants.stockmarketcommission.md) | | number | Commission fee for transactions |
| [TicksPerCycle](./bitburner.stockmarketconstants.tickspercycle.md) | | number | An internal constant used while determining when to flip a stock's forecast |
| [TIXAPICost](./bitburner.stockmarketconstants.tixapicost.md) | | number | Cost of the TIX API |
| [WSEAccountCost](./bitburner.stockmarketconstants.wseaccountcost.md) | | number | Cost of the WSE account |
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [StockMarketConstants](./bitburner.stockmarketconstants.md) &gt; [msPerStockUpdate](./bitburner.stockmarketconstants.msperstockupdate.md)
## StockMarketConstants.msPerStockUpdate property
Normal time in ms between stock market updates
**Signature:**
```typescript
msPerStockUpdate: number;
```
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [StockMarketConstants](./bitburner.stockmarketconstants.md) &gt; [msPerStockUpdateMin](./bitburner.stockmarketconstants.msperstockupdatemin.md)
## StockMarketConstants.msPerStockUpdateMin property
Minimum time in ms between stock market updates if there is stored offline/bonus time
**Signature:**
```typescript
msPerStockUpdateMin: number;
```
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [StockMarketConstants](./bitburner.stockmarketconstants.md) &gt; [StockMarketCommission](./bitburner.stockmarketconstants.stockmarketcommission.md)
## StockMarketConstants.StockMarketCommission property
Commission fee for transactions
**Signature:**
```typescript
StockMarketCommission: number;
```
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [StockMarketConstants](./bitburner.stockmarketconstants.md) &gt; [TicksPerCycle](./bitburner.stockmarketconstants.tickspercycle.md)
## StockMarketConstants.TicksPerCycle property
An internal constant used while determining when to flip a stock's forecast
**Signature:**
```typescript
TicksPerCycle: number;
```
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [StockMarketConstants](./bitburner.stockmarketconstants.md) &gt; [TIXAPICost](./bitburner.stockmarketconstants.tixapicost.md)
## StockMarketConstants.TIXAPICost property
Cost of the TIX API
**Signature:**
```typescript
TIXAPICost: number;
```
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [StockMarketConstants](./bitburner.stockmarketconstants.md) &gt; [WSEAccountCost](./bitburner.stockmarketconstants.wseaccountcost.md)
## StockMarketConstants.WSEAccountCost property
Cost of the WSE account
**Signature:**
```typescript
WSEAccountCost: number;
```
+21
View File
@@ -0,0 +1,21 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [TIX](./bitburner.tix.md) &gt; [getConstants](./bitburner.tix.getconstants.md)
## TIX.getConstants() method
Get game constants for the stock market mechanic.
**Signature:**
```typescript
getConstants(): StockMarketConstants;
```
**Returns:**
[StockMarketConstants](./bitburner.stockmarketconstants.md)
## Remarks
RAM cost: 0 GB
+1
View File
@@ -21,6 +21,7 @@ export interface TIX
| [cancelOrder(sym, shares, price, type, pos)](./bitburner.tix.cancelorder.md) | Cancel order for stocks. | | [cancelOrder(sym, shares, price, type, pos)](./bitburner.tix.cancelorder.md) | Cancel order for stocks. |
| [getAskPrice(sym)](./bitburner.tix.getaskprice.md) | Returns the ask price of that stock. | | [getAskPrice(sym)](./bitburner.tix.getaskprice.md) | Returns the ask price of that stock. |
| [getBidPrice(sym)](./bitburner.tix.getbidprice.md) | Returns the bid price of that stock. | | [getBidPrice(sym)](./bitburner.tix.getbidprice.md) | Returns the bid price of that stock. |
| [getConstants()](./bitburner.tix.getconstants.md) | Get game constants for the stock market mechanic. |
| [getForecast(sym)](./bitburner.tix.getforecast.md) | Returns the probability that the specified stocks price will increase (as opposed to decrease) during the next tick. | | [getForecast(sym)](./bitburner.tix.getforecast.md) | Returns the probability that the specified stocks price will increase (as opposed to decrease) during the next tick. |
| [getMaxShares(sym)](./bitburner.tix.getmaxshares.md) | Returns the maximum number of shares of a stock. | | [getMaxShares(sym)](./bitburner.tix.getmaxshares.md) | Returns the maximum number of shares of a stock. |
| [getOrders()](./bitburner.tix.getorders.md) | Returns your order book for the stock market. | | [getOrders()](./bitburner.tix.getorders.md) | Returns your order book for the stock market. |
@@ -28,7 +28,7 @@ sellProduct(
| productName | string | Name of the product | | productName | string | Name of the product |
| amt | string | Amount to sell, can be "MAX" | | amt | string | Amount to sell, can be "MAX" |
| price | string | Price to sell, can be "MP" | | price | string | Price to sell, can be "MP" |
| all | boolean | Sell in all city | | all | boolean | Set sell amount and price in all cities |
**Returns:** **Returns:**
@@ -7,7 +7,12 @@
**Signature:** **Signature:**
```typescript ```typescript
companyGains(person: Person, companyName: string, workType: JobName | `${JobName}`, favor: number): WorkStats; companyGains(
person: Person,
companyName: CompanyName | `${CompanyName}`,
workType: JobName | `${JobName}`,
favor: number,
): WorkStats;
``` ```
## Parameters ## Parameters
@@ -15,7 +20,7 @@ companyGains(person: Person, companyName: string, workType: JobName | `${JobName
| Parameter | Type | Description | | Parameter | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| person | [Person](./bitburner.person.md) | | | person | [Person](./bitburner.person.md) | |
| companyName | string | | | companyName | [CompanyName](./bitburner.companyname.md) \| \`${[CompanyName](./bitburner.companyname.md)<!-- -->}\` | |
| workType | [JobName](./bitburner.jobname.md) \| \`${[JobName](./bitburner.jobname.md)<!-- -->}\` | | | workType | [JobName](./bitburner.jobname.md) \| \`${[JobName](./bitburner.jobname.md)<!-- -->}\` | |
| favor | number | | | favor | number | |
+8 -8
View File
@@ -1,12 +1,12 @@
{ {
"name": "bitburner", "name": "bitburner",
"version": "2.3.2dev", "version": "2.5.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bitburner", "name": "bitburner",
"version": "2.3.2dev", "version": "2.5.0",
"hasInstallScript": true, "hasInstallScript": true,
"license": "SEE LICENSE IN license.txt", "license": "SEE LICENSE IN license.txt",
"dependencies": { "dependencies": {
@@ -6233,9 +6233,9 @@
} }
}, },
"node_modules/caniuse-lite": { "node_modules/caniuse-lite": {
"version": "1.0.30001473", "version": "1.0.30001539",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001473.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001539.tgz",
"integrity": "sha512-ewDad7+D2vlyy+E4UJuVfiBsU69IL+8oVmTuZnH5Q6CIUbxNfI50uVpRHbUPDD6SUaN2o0Lh4DhTrvLG/Tn1yg==", "integrity": "sha512-hfS5tE8bnNiNvEOEkm8HElUHroYwlqMMENEzELymy77+tJ6m+gA2krtHl5hxJaj71OlpC2cHZbdSMX1/YEqEkA==",
"funding": [ "funding": [
{ {
"type": "opencollective", "type": "opencollective",
@@ -22616,9 +22616,9 @@
"dev": true "dev": true
}, },
"caniuse-lite": { "caniuse-lite": {
"version": "1.0.30001473", "version": "1.0.30001539",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001473.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001539.tgz",
"integrity": "sha512-ewDad7+D2vlyy+E4UJuVfiBsU69IL+8oVmTuZnH5Q6CIUbxNfI50uVpRHbUPDD6SUaN2o0Lh4DhTrvLG/Tn1yg==" "integrity": "sha512-hfS5tE8bnNiNvEOEkm8HElUHroYwlqMMENEzELymy77+tJ6m+gA2krtHl5hxJaj71OlpC2cHZbdSMX1/YEqEkA=="
}, },
"ccount": { "ccount": {
"version": "2.0.1", "version": "2.0.1",
+6 -7
View File
@@ -1,7 +1,7 @@
{ {
"name": "bitburner", "name": "bitburner",
"license": "SEE LICENSE IN license.txt", "license": "SEE LICENSE IN license.txt",
"version": "2.3.2dev", "version": "2.5.0",
"main": "electron-main.js", "main": "electron-main.js",
"author": { "author": {
"name": "Daniel Xie, Olivier Gagnon, et al." "name": "Daniel Xie, Olivier Gagnon, et al."
@@ -102,16 +102,16 @@
"engines": { "engines": {
"node": ">=14" "node": ">=14"
}, },
"homepage": "https://github.com/danielyxie/bitburner", "homepage": "https://bitburner-official.github.io/",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/danielyxie/bitburner.git" "url": "git+https://github.com/bitburner-official/bitburner-src.git"
}, },
"scripts": { "scripts": {
"doc": "npx api-extractor run && npx api-documenter markdown && rm input/bitburner.api.json && rm -r input && git add markdown/ && git add tsdoc-metadata.json", "doc": "bash ./tools/doc.sh",
"format": "prettier -c --write .", "format": "prettier -c --write .",
"format:report": "prettier -c .", "format:report": "prettier -c .",
"start": "cd .app && http-server -p 8000", "start": "electron .app/index.html",
"start:dev": "webpack serve --progress --env devServer --mode development", "start:dev": "webpack serve --progress --env devServer --mode development",
"build": "bash ./tools/build.sh production", "build": "bash ./tools/build.sh production",
"build:dev": "bash ./tools/build.sh development", "build:dev": "bash ./tools/build.sh development",
@@ -127,7 +127,6 @@
"preversion": "npm install && npm run test", "preversion": "npm install && npm run test",
"version": "sh ./tools/build-release.sh && git add --all", "version": "sh ./tools/build-release.sh && git add --all",
"postversion": "git push -u origin dev && git push --tags", "postversion": "git push -u origin dev && git push --tags",
"changelog": "node tools/fetch-changelog/index.js --from=$(cat last_changelog_hash) > changelog.md", "changelog": "node tools/fetch-changelog/index.js --from=$(cat last_changelog_hash) > changelog.md"
"bundle-doc": "node tools/bundle-doc/index.js"
} }
} }
+1 -1
View File
@@ -322,7 +322,7 @@ export const achievements: Record<string, Achievement> = {
WORKOUT: { WORKOUT: {
...achievementData.WORKOUT, ...achievementData.WORKOUT,
Icon: "WORKOUT", Icon: "WORKOUT",
Condition: () => isClassWork(Player.currentWork), Condition: () => isClassWork(Player.currentWork) && Player.currentWork.isGym(),
}, },
TOR: { TOR: {
...achievementData.TOR, ...achievementData.TOR,
+45 -33
View File
@@ -65,39 +65,51 @@ export function removeAlias(name: string): boolean {
/** /**
* Returns the original string with any aliases substituted in. * Returns the original string with any aliases substituted in.
* Aliases are only applied to "whole words", one level deep * Aliases are only applied to "whole words", one level deep
* @param origCommand the original command string
*/ */
export function substituteAliases(origCommand: string): string { export function substituteAliases(origCommand: string): string {
const commandArray = origCommand.split(" "); return applyAliases(origCommand);
if (commandArray.length > 0) { }
// For the alias and unalias commands, don't substitute
if (commandArray[0] === "unalias" || commandArray[0] === "alias") { /**
return commandArray.join(" "); * Recursively evaluates aliases and applies them to the command string,
} * unless there are any reference loops or the reference chain is too deep
* @param origCommand the original command string
let somethingSubstituted = true; * @param depth the current recursion depth
let depth = 0; * @param currentlyProcessingAliases any aliases that have been applied in the recursive evaluation leading to this point
let lastAlias; * @return { string } the provided command with all of its referenced aliases evaluated
*/
while (somethingSubstituted && depth < 10) { function applyAliases(origCommand: string, depth = 0, currentlyProcessingAliases: string[] = []) {
depth++; if (!origCommand) {
somethingSubstituted = false; return origCommand;
const alias = Aliases.get(commandArray[0])?.split(" "); }
if (alias !== undefined) { const commandArray = origCommand.split(" ");
somethingSubstituted = true;
commandArray.splice(0, 1, ...alias); // Do not apply aliases when defining a new alias
//commandArray[0] = alias; if (commandArray[0] === "unalias" || commandArray[0] === "alias") {
} return commandArray.join(" ");
for (let i = 0; i < commandArray.length; ++i) { }
const alias = GlobalAliases.get(commandArray[i])?.split(" ");
if (alias !== undefined && (commandArray[i] != lastAlias || somethingSubstituted)) { // First get non-global aliases, and recursively apply them
somethingSubstituted = true; // (unless there are any reference loops or the reference chain is too deep)
lastAlias = commandArray[i]; const localAlias = Aliases.get(commandArray[0]);
commandArray.splice(i, 1, ...alias); if (localAlias && !currentlyProcessingAliases.includes(localAlias)) {
i += alias.length - 1; const appliedAlias = applyAliases(localAlias, depth + 1, [commandArray[0], ...currentlyProcessingAliases]);
//commandArray[i] = alias; commandArray.splice(0, 1, ...appliedAlias.split(" "));
} }
}
} // Once local aliasing is complete (or if none are present) handle any global aliases
} const processedCommands = commandArray.reduce((resolvedCommandArray: string[], command) => {
return commandArray.join(" "); const globalAlias = GlobalAliases.get(command);
if (globalAlias && !currentlyProcessingAliases.includes(globalAlias)) {
const appliedAlias = applyAliases(globalAlias, depth + 1, [command, ...currentlyProcessingAliases]);
resolvedCommandArray.push(appliedAlias);
} else {
// If there is no alias, or if the alias has a circular reference, leave the command as-is
resolvedCommandArray.push(command);
}
return resolvedCommandArray;
}, []);
return processedCommands.join(" ");
} }
@@ -227,4 +227,8 @@ export class Augmentation {
const queuedNFGLevel = Player.queuedAugmentations.filter((aug) => aug.name === this.name).length; const queuedNFGLevel = Player.queuedAugmentations.filter((aug) => aug.name === this.name).length;
return ownedNFGLevel + queuedNFGLevel; return ownedNFGLevel + queuedNFGLevel;
} }
/** Get the next level of an augmentation to buy. Currently only relevant for NFG. */
getNextLevel(): number {
return this.getLevel() + 1;
}
} }

Some files were not shown because too many files have changed in this diff Show More