Compare commits

..

317 Commits

Author SHA1 Message Date
Snarling
d0d7767003 RELEASE: 2.8.1 (#2069) 2025-04-04 03:35:54 -04:00
catloversg
5d23764316 MISC: Remove useless iframe in April Fool's Day popup (#2065) 2025-04-03 13:41:39 -07:00
catloversg
37e1f01efa MISC: Update changelog (#2064) 2025-04-01 16:40:31 -07:00
catloversg
61a7e30b29 DOCUMENTATION: Clarify Market-TA1, Market-TA2, MaxSalesVolume (#2014) 2025-03-31 13:56:19 -07:00
catloversg
b2093a2419 MISC: Clarify conditions of activating Gang, Bladeburner, Stanek's Gift (#2053) 2025-03-31 13:37:35 -07:00
Michael Ficocelli
f6e7ef082c IPVGO: Add support for highlighting nodes and adding small text (#1996) 2025-03-31 13:36:30 -07:00
Michael Ficocelli
5d486e3914 BUGFIX: fix exploit where favor limit from IPvGO was removed on augmentation (#2050)
* IPVGO: fix exploit where favor cap was reset on augmentation

* IPVGO: fix exploit where favor cap was reset on augmentation

* IPVGO: linting

* IPvGO: only reset No AI with ResetStats unless specified otherwise
2025-03-31 13:30:55 -07:00
catloversg
5dc80587a7 DOCUMENTATION: Clarify AutocompleteData.server and ns.formatNumber (#2062) 2025-03-31 13:24:48 -07:00
catloversg
187fbea073 UI: Show faction enemies even after joining (#2046) 2025-03-30 11:56:21 -07:00
catloversg
282bf87022 MISC: Clarify effect of Bladeburner augmentation and Stanek's Gift fragment (#2058) 2025-03-30 11:47:04 -07:00
catloversg
ef803280da UI: Add button for exporting save file in recovery screen (#2060) 2025-03-30 11:45:57 -07:00
catloversg
f69bac308c UI: Warn player if they enable territory clash when gang power is too low (#2061) 2025-03-30 11:42:34 -07:00
catloversg
0900f46edb UI: Do not close scripts in editor when their servers are deleted (#2049) 2025-03-29 20:26:45 -07:00
Michael Ficocelli
12d18c21f1 IPVGO: Clarify how favor is gained from wins (#2051) 2025-03-29 20:21:05 -07:00
Paul Dejean
6d3e111ea1 MISC: Make it so that restarting the tutorial doesn't soft reset your game (#1992) 2025-03-23 00:04:52 -07:00
Naga
1539c428bc NETSCRIPT: Add the 'cat' method to 'ns.singularity' (#1999) 2025-03-23 00:04:26 -07:00
Michael Ficocelli
70a083b34b IPVGO: Improve type checking and documentation (#2028) 2025-03-22 23:59:46 -07:00
catloversg
41c497161f UI: Make BN-hint popups harder to be dismissed accidentally (#2021) 2025-03-22 23:59:38 -07:00
Michael Ficocelli
17ffabdfa5 IPVGO: Add new analysis method to set a custom testing board state (#2029) 2025-03-22 23:52:26 -07:00
catloversg
de8c8691c2 BUGFIX: Player can win more than casino's limit (#2042) 2025-03-21 10:49:15 -07:00
Michael Ficocelli
d62a1f38ca BUGFIX: Add mathjax-full and csstype as direct dependencies, since we depend on them (#2037)
* [CHORE] Add mathjax-full as a direct dependency, since we depend on it

* [CHORE] Add csstype as a direct dependency, since we depend on it

* [CHORE] Tell TS that it's OK?

* [CHORE] Use correct csstype version
2025-03-20 15:53:40 -07:00
catloversg
97e9e13f12 BUGFIX: Player can manipulate internal state of coding contract (#2040) 2025-03-20 15:51:52 -07:00
catloversg
c251a23a0e BUGFIX: Cannot buy augmentations via UI when money is equal to cost (#2039) 2025-03-20 15:50:35 -07:00
catloversg
e8f9882e2d MISC: Disable effect of SF7.3 and SF10 if player disables them with advanced options (#2019)
* MISC: Disable effect of SF7.3 and SF10 if player disables them with advanced options

* Update based on feedback
2025-03-17 16:04:36 -07:00
Michael Ficocelli
19f859ae87 IPVGO: Ensure there is always at least one offline node (#2030) 2025-03-17 15:59:19 -07:00
Michael Ficocelli
47b34c8563 BUGFIX: Ensure that IPvGO promises are initialized correctly on a new save and on fluming (#2032) 2025-03-17 15:55:32 -07:00
catloversg
88fef7d8a3 CI: Pin commit id of tj-actions/changed-files (#2031) 2025-03-16 14:44:56 -07:00
catloversg
e07339d016 BUGFIX: Game crashes when loading new save in edge cases (#2026) 2025-03-14 15:00:06 -07:00
wasniahC
76f614761d updated "getCornerMove" second "if" to correct coordinates for top left corner move (#2027) 2025-03-14 14:56:20 -07:00
catloversg
ae99055d5a REFACTOR: SF description in Augmentations tab and BitVerse may not be the same (#2013) 2025-03-12 18:44:37 -07:00
Naga
b0165d5c2c NETSCRIPT: Store the value of Player.money in the returned object's moneyAvailable property when ns.getServer is called with "home" (#2024) 2025-03-12 18:17:57 -07:00
catloversg
f5b12da0fe UI: Increase width of each job in "Job" tab (#2017) 2025-03-12 16:08:14 -07:00
catloversg
907b0a40ba CODEBASE: Fix React warnings in BitVerse (#2020) 2025-03-12 15:55:38 -07:00
catloversg
dcce966fb1 DOCUMENTATION: Update TSDoc of ns.purchaseServer and CodingContract types (#2023) 2025-03-12 15:46:38 -07:00
G4mingJon4s
6666a176ee MISC: Add support for getting the save file through the RFA (#2004) 2025-03-10 01:32:47 -07:00
David Walker
db74fae2b7 Fix first-time Go initialization (#2012)
Fixes #2010
It was intended that all the various codepaths call `resetAI()` to
initialize the promise handling. However, when there is no savegame at
all, `loadGo()` is not even called, so this is skipped, and the promises
remain not-fully-initialized. This puts the initialization as part of
the static construction, guaranteeing a fix.

Tested all 3 scenarios in #2010, as well as two more:
* Delete save, immediately "Find new subnet".
* Play a move, save game, ensure IPvGO works on reload.
* Play a move, save game *before the AI moves*, ensure that the AI plays
  different random moves on reload.
2025-03-09 16:16:24 -07:00
catloversg
7f443427ea CODEBASE: Suppress false-positive console errors caused by RamCalculation.test.ts (#2002) 2025-03-07 15:15:54 -08:00
catloversg
8fe0ea1615 MISC: Warn player that they cannot accept Stanek's Gift after joining Bladeburner with SF7.3 (#2005) 2025-03-07 15:14:15 -08:00
Michael Ficocelli
a611c842e2 IPVGO: correctly initialize board from save when there are no prior moves (#1995) 2025-03-06 11:30:12 -08:00
Snarling
6530b43886 Initial changes for 3.0 dev cycle (#1994)
Update constants.ts
Update version numbers in package jsons
2025-03-05 05:46:02 -05:00
Snarling
02c4f9c68d 2.8 Release Prep (#1993)
Update constants.ts
Update version in package.jsons
Move changelog to documented changelog
2025-03-05 03:18:53 -05:00
catloversg
23ad55554e UI: Add "Run" action to run current script in editor (#1987) 2025-03-04 02:43:31 -08:00
David Walker
8cdafdc7b9 CODEBASE: Refactor duplicate code in updateSkillLevels (#1988) 2025-03-04 01:45:06 -08:00
David Walker
f16b6b92b8 CODEBASE: Version 2.8 stuff (#1989)
Change dev version from 2.7.1 to 2.8.0

Also adjust the save data migration code for the latest check to use "<"
instead of "<=" to agree with the style of everything else.
(I noticed this due to investistigating bumping the version, but that
happens as part of the release commit so it shouldn't be done yet.)
2025-03-01 15:25:22 -08:00
muesli4brekkies
f881bd1d9a DOCS: Add docs for autocomplete (#1981) 2025-03-01 09:10:35 -08:00
catloversg
ff724f3f06 DOCUMENTATION: Clarify values returned in range 0-1 (#1986) 2025-03-01 09:08:42 -08:00
catloversg
4ef597bd37 BUGFIX: Some calculations return NaN due to Player.playtimeSinceLastAug being 0 in edge cases (#1985) 2025-03-01 09:06:58 -08:00
catloversg
c0e01f304d CODEBASE: Refactor KeyBindingPage (#1984) 2025-02-28 12:56:00 -08:00
catloversg
91b68db1fe BUGFIX: Multiple problems with Job tab (#1976) 2025-02-28 12:52:08 -08:00
catloversg
f54f7b932c DOCUMENTATION: Clarify value of gang territory (#1978)
* DOCUMENTATION: Clarify decimal form of gang territory

* Update based on feedback
2025-02-28 12:45:36 -08:00
catloversg
2a544bbc15 MISC: Update changelog (#1983) 2025-02-28 12:43:30 -08:00
catloversg
8ed83f3d37 MISC: Add key binding feature (#1830) 2025-02-27 22:59:12 -08:00
catloversg
3ba89eb388 CODEBASE: Update api-extractor (#1982) 2025-02-27 22:39:58 -08:00
catloversg
5f29c5b043 CODEBASE: Update webpack and katex (#1975) 2025-02-27 10:43:33 -08:00
Michael Ficocelli
1982e7195b UI: Add disambiguation to the confusing "1s / ls" tutorial step (#1972)
* UI: Add disambiguation to the confusing "1s / ls" tutorial step, and a general "did you mean" to the terminal

* UI: Add disambiguation to the confusing "1s / ls" tutorial step, and a general "did you mean" to the terminal

* Prevent duplicate suggestions

* Update src/Terminal/Terminal.ts

Co-authored-by: David Walker <d0sboots@gmail.com>

* Prevent duplicate suggestions

---------

Co-authored-by: David Walker <d0sboots@gmail.com>
2025-02-27 10:34:16 -08:00
catloversg
6461d5f247 UI: Improve performance of April Fools Easter egg (#1977) 2025-02-27 10:14:17 -08:00
catloversg
fed3cf1af2 DOCUMENTATION: Clarify ns.singularity.quitJob (#1979) 2025-02-27 10:03:46 -08:00
catloversg
05f0ba1ac6 DOCUMENTATION: Clarify ns.singularity.softReset (#1980) 2025-02-27 10:02:04 -08:00
Adam Andreatta
a25ab3dd39 API: Added external api which returns gainExperience (#1955) 2025-02-20 15:57:06 -08:00
catloversg
3eadb0d18c BUGFIX: JetBrains Mono font shows wrong glyphs (#1971) 2025-02-17 13:18:10 -08:00
catloversg
3bb56efb34 DOCUMENTATION: Clarify ns.scan (#1965) 2025-02-16 18:27:10 -08:00
catloversg
63d7061fd8 UI: Warn player if they are editing and saving files on non-home servers (#1968) 2025-02-16 18:26:45 -08:00
catloversg
13990fbe4c MISC: Do not round return value of getBonusTime APIs (#1961) 2025-02-16 01:42:11 -08:00
catloversg
23bc4e8804 MISC: Show user-friendly error message when there is syntax error in scripts (#1963) 2025-02-16 01:27:26 -08:00
catloversg
0a4598a9a0 UI: Show Save ID in Options tab (#1964) 2025-02-16 01:24:46 -08:00
LJ
42a7941db7 Fix invalid filenames upon loading save (#1147) 2025-02-16 01:07:40 -08:00
catloversg
adc39ad825 BUGFIX: ns.corporation.bribe can bribe faction that player is not member of (#1966) 2025-02-16 01:05:22 -08:00
catloversg
26c5bb40e3 MISC: Clarify advanced options (#1962) 2025-02-16 01:03:55 -08:00
catloversg
31591da024 UI: Show exact reasons why player cannot bribe factions (#1967) 2025-02-16 01:02:50 -08:00
catloversg
2dfaca3db4 DOCUMENTATION: Clarify ns.nuke (#1969) 2025-02-16 00:58:00 -08:00
LJ
905d37ef93 Add donationToFavor() to docs (#1960) 2025-02-13 21:35:55 -08:00
LJ
30075f3c07 API: Add donationForRep() to Formulas (#1141) 2025-02-11 22:05:32 -08:00
G4mingJon4s
b61e93b246 CODINGCONTRACT: Move internals to a separate folder (#1932) 2025-02-11 22:04:23 -08:00
Femboy Fireball
5bc9068745 ACHIEVEMENTS: Support achievements with no matching Steam achievement (#1953) 2025-02-08 19:19:36 -08:00
catloversg
c99fa448fa BUGFIX: Cursor position in editor is moved undesirably in edge cases (#1952) 2025-02-07 15:19:54 -08:00
catloversg
48bced3484 MISC: Update changelog (#1948) 2025-02-07 15:18:38 -08:00
Michael Ficocelli
c8d2c9f769 IPVGO: Support scripts playing against each other as each color on "No AI" boards (#1917)
This is a big change with a *lot* of moving parts.

The largest part of it is enabling scripts to `playAsWhite` as a parameter to many Go functions. In the implementation, this involved a significant rewrite of `opponentNextTurn` promise handling.

A number of other changes and bugfixes are included:
* Fixes the issue where handicap stones are added on game load.
* Better typing for error callbacks.
* Throw errors instead of deadlocking on bad cheat usage.
* Return always-resolved gameOver promise after game end
* Added a new `resetStats` api function.

---------

Co-authored-by: David Walker <d0sboots@gmail.com>
2025-02-02 20:47:16 -08:00
catloversg
de6b202341 CODEBASE: Refactor Player.applyForJob (#1947) 2025-02-02 09:29:18 -08:00
catloversg
72d2528e9a UI: Show all jobs instead of only one in Job tab (#1945) 2025-02-02 09:26:39 -08:00
catloversg
d6ee16cdb3 API: Move tail-related APIs to another namespace (#1935)
* API: Move tail-related APIs to another namespace

* Add missing RAM cost config

* Remove setTailFontSize from NS namespace
2025-02-01 21:43:56 -08:00
catloversg
67aff2a6a0 BUGFIX: Wrong plural form in modal of coding contract (#1939) 2025-02-01 21:42:56 -08:00
catloversg
1cc0288cd8 BUGFIX: Sleeve takes on contracts without checking availability (#1946) 2025-02-01 21:41:07 -08:00
Michael Ficocelli
381310946a IPVGO: ensure def is treated the same as the other stats boosted by playing against tetrads (#1927) 2025-01-31 16:10:30 -08:00
TheAimMan
16022d36f4 MISC: Decrease factionInviteCheckInterval and check for Invites on faction page load (#1943) 2025-01-31 11:49:15 -08:00
catloversg
4a452b8aca DOCUMENTATION: Fix typo in proof of boost material optimizer (#1938) 2025-01-31 11:21:28 -08:00
catloversg
a4217b448a MISC: Standardize behavior of connect CLI and Singularity API (#1933) 2025-01-31 11:20:17 -08:00
catloversg
686bfe5aef BLADEBURNER: Show operation description in tooltip of completed BlackOps (#1941) 2025-01-31 11:16:39 -08:00
catloversg
822c55574d MISC: Allow using wss for RFA (#1942) 2025-01-31 11:07:38 -08:00
catloversg
40c696feb1 UI: Clarify availability of "buy" CLI (#1940) 2025-01-31 10:52:27 -08:00
Hihahahalol
f337de47df UI: In Operation Wallace. Reword so "The Dark Army" works, for grammar (#1931) 2025-01-30 10:39:31 -08:00
catloversg
956e3875e9 API: Add getSaveData API (#1390) 2025-01-30 10:36:59 -08:00
catloversg
934687d4b5 UI: Clarify "Disable ASCII art" setting (#1937) 2025-01-30 10:28:17 -08:00
catloversg
7d95400108 MISC: Fix typo in API break notice of v2.6.1 (#1936) 2025-01-30 10:27:40 -08:00
catloversg
85cda00538 DOCUMENTATION: Replace outdated links for v2 migration guide and changelog (#1934) 2025-01-30 10:27:13 -08:00
catloversg
ada903f356 CODEBASE: Refactor ns.singularity.purchaseAugmentation (#1879) 2025-01-28 10:42:25 -08:00
catloversg
2965f51879 API: Add a way to get the list of all factions (#1457) 2025-01-28 10:40:11 -08:00
G4mingJon4s
ffae0045a4 CODINGCONTRACT: Add support for other answer formats (#1892) 2025-01-26 09:35:04 -08:00
catloversg
b161142796 API: Add ns.renderTail (#1815) 2025-01-25 09:14:45 -08:00
Sphyxis
97d248419d BB: Allow API Usage in BN 6 without 7 - Grants Augment for BN 7 completion (#1926) 2025-01-25 09:12:51 -08:00
catloversg
6c7972dc60 CORPORATION: Fix wrong warning of sellAmt being negative (#1819) 2025-01-25 09:11:57 -08:00
David Walker
213c57f2f8 DOCS: Document shorts in terms of actual finance terms (#1908) 2025-01-25 08:41:16 -08:00
catloversg
5301f0f378 UI: Add reward info to intro page of infiltration (#1835) 2025-01-24 11:16:32 -08:00
catloversg
9bf408221c CODEBASE: Merge TypeAssertion files (#1922) 2025-01-24 11:06:39 -08:00
catloversg
f0a0d3095e CORPORATION: Show product production multiplier in research popup (#1919) 2025-01-24 09:16:23 -08:00
PerpetuaLux
1fa2c55860 BUGFIX: Changed no such file run command error to include all executable types (#1918) 2025-01-24 09:13:54 -08:00
catloversg
faf34ad45d BUGFIX: Static RAM calculator cannot process abstract methods (#1921) 2025-01-24 09:09:06 -08:00
catloversg
1a54be184e DOCUMENTATION: Make nuke and port opening functions return boolean (#1923) 2025-01-24 08:48:50 -08:00
catloversg
9920b6ae4d MISC: Add source map to transformed scripts (#1812)
* MISC: Add source map to transformed scripts

* Print error to console
2025-01-19 13:50:50 -08:00
Mathekatze
7b009991e5 DOCUMENTATION: improve documentation for atExit() (#1916) 2025-01-19 12:49:25 -08:00
esainane
93a1d6da53 DOCUMENTATION: Fix incorrectly documented BusinessFactor (#1915)
The advanced documentation incorrectly claims that the multiplier is
0.001. The actual code divides by 10000 (10e3), effectively
multiplying by 0.0001:

https://github.com/bitburner-official/bitburner-src/blob/dev/src/Corporation/Division.ts#L1085
2025-01-19 12:43:54 -08:00
Yichi Zhang
e6a1c344d3 NETSCRIPT: Log script kill immediately and identify the killing script. (#1907) 2025-01-12 21:07:01 -08:00
catloversg
0e8dca85e1 UI: Improve UX of Remote API setting page (#1870)
Co-authored-by: David Walker <d0sboots@gmail.com>
2025-01-12 10:58:24 -08:00
catloversg
fdb325bf66 CODEBASE: Remove unused type of parameter of Favor component (#1874) 2025-01-12 10:50:57 -08:00
catloversg
1d31e066f0 CODEBASE: Fix React warning when using StatsTable (#1875) 2025-01-12 10:49:52 -08:00
catloversg
1525e51cbb UI: Add grafting to sidebar (#1809) 2025-01-12 10:45:03 -08:00
catloversg
c37cdc76a4 CODEBASE: Minor change in TaskSelector of Sleeve (follow-up of #1807) (#1906) 2025-01-09 00:23:17 -08:00
catloversg
0f9144a059 CODEBASE: Validate theme, editor theme, and styles (#1789) 2025-01-08 19:20:05 -08:00
catloversg
320c852386 BUGFIX: Sleeves UI shows and sets wrong task (#1807) 2025-01-08 19:06:00 -08:00
catloversg
8c19165323 BUGFIX: Grow log shows invalid values in edge cases (#1872) 2025-01-08 18:48:45 -08:00
catloversg
5b6380a5c3 MISC: Add more error info to error dialog and tail log (#1813) 2025-01-08 18:22:13 -08:00
catloversg
1cb2a83b4f UI: Share RAM to boost reputation gain (#1862) 2025-01-07 22:35:29 -08:00
catloversg
077d8e7080 CODEBASE: Change signature of interpolate function in Infiltration code (#1843) 2025-01-07 22:28:02 -08:00
catloversg
6dd9230cc5 BUGFIX: Dynamically load imported scripts for editor (#1893) 2025-01-07 22:24:41 -08:00
catloversg
4bae9938bf BUGFIX: Editor shows "+1 overload" with all NS APIs (#1883) 2025-01-07 22:17:30 -08:00
catloversg
564889d3f2 BUGFIX: "Import Save Comparison" popup is shown after reloading (#1895) 2025-01-07 21:28:52 -08:00
esainane
0e5e20c2f1 UI: Fix migration doc typo (#1896)
`spc` -> `scp`
2025-01-07 21:24:44 -08:00
catloversg
a145ee74bc UI: Remove RAM usage percentage in "free" CLI if it's NaN (#1897) 2025-01-07 21:20:35 -08:00
catloversg
012ebb2616 UI: Change how hacking level requirement is shown in "Create program" tab (#1900)
* UI: Change how hacking level requirement is shown in "Create program" tab

* Remove "s" from "Unlocks at hacking levels"

---------

Co-authored-by: David Walker <d0sboots@gmail.com>
2025-01-07 21:18:37 -08:00
catloversg
3123ac9447 UI: Hide spoiler content in Soft Reset popup (#1898) 2025-01-07 21:18:25 -08:00
catloversg
a8bde3e14f UI: Change "overclock" to another phrase in Sleeves tab (#1901) 2025-01-07 21:13:47 -08:00
catloversg
f49d21cd71 UI: Clarify messages related to "buy" command (#1902) 2025-01-07 21:12:44 -08:00
catloversg
0c1f3756a2 UI: Show warning message for deprecated API Server feature (#1903) 2025-01-07 21:04:41 -08:00
romaswe
7fa85a926a MISC: Dockerized Bitburner (#1891) 2025-01-04 23:28:08 -08:00
catloversg
0d555f9347 UI: Remove mention of passive reputation gain when player is in BN2 (#1859)
* UI: Remove mention of passive reputation gain when player is in BN2

* Update based on feedback
2025-01-04 16:53:43 -08:00
catloversg
423a6ce110 BUGFIX: Saved running scripts are started before SWC is initialized (#1857)
* BUGFIX: Saved running scripts are started before SWC is initialized

* Update based on feedback
2025-01-04 16:52:56 -08:00
G4mingJon4s
c622291eff NETSCRIPT: Added changing tail font size through scripts (#1852) 2025-01-04 16:51:13 -08:00
catloversg
3db190c9a0 MISC: Consistently use ManualHackMoney in terminal hack and script hack (#1868) 2025-01-04 16:44:55 -08:00
catloversg
68a436cb77 UI: Disable buttons when player cannot buy things in tech vendor (#1881)
* UI: Disable buttons when player cannot buy things in tech vendor

* Tweak reachMaxCore warning comment

---------

Co-authored-by: David Walker <d0sboots@gmail.com>
2025-01-04 16:34:48 -08:00
catloversg
f2e014ba37 UI: Increase number of displayed digits for StaneksGiftExtraSize (#1871) 2025-01-04 16:34:35 -08:00
catloversg
93c07ac107 DOCUMENTATION: Clarify returned value of ns.bladeburner.getActionCountRemaining (#1873) 2025-01-04 16:33:45 -08:00
catloversg
43bca702c0 MISC: Clarify description of BN2 about gang and The Red Pill (#1878) 2025-01-04 16:33:08 -08:00
catloversg
bcbaf3e224 DOCUMENTATION: Clarify type of returned value of ns.gang.getOtherGangInformation (#1882) 2025-01-04 16:21:17 -08:00
Naga
ef87174e3f DOCUMENTATION: Clarify the return descriptions of 'getPurchasedServerCost' and 'getPurchasedServerUpgradeCost' to include the returns for invalid inputs. (#1884) 2025-01-04 16:20:20 -08:00
Daniel Perez Alvarez
e3eb08470b DOCUMENTATION: Add starter react documentation (#1888) 2025-01-04 16:19:49 -08:00
nanogyth
85fa15c5a5 BUGFIX: update weaken results to correctly reflect change when close to minSecurity (#1887) 2024-12-29 18:08:55 -08:00
catloversg
a6d6aa7410 UI: Add filter tool to list of installed augmentations (#1833) 2024-12-23 05:12:53 -08:00
catloversg
bc0dc15536 DOCUMENTATION: Fix typo of CrimeStats (#1850) 2024-12-18 03:32:21 -08:00
catloversg
b49c04d142 UI: Infiltration remembers faction choice for reputation reward (#1860) 2024-12-18 03:29:10 -08:00
catloversg
c2fe6108e1 DOCUMENTATION: Clarify getGraftableAugmentations API (#1858) 2024-12-18 03:23:56 -08:00
catloversg
40f3d6ea7b UI: Clarify "Company Favor" hash upgrade (#1861) 2024-12-18 03:23:11 -08:00
catloversg
ab17adf97a MISC: Show user-friendly error message when script is empty (#1848) 2024-12-18 03:17:48 -08:00
catloversg
bb7a1fbb22 MISC: Add raw command string to autocomplete data (#1846) 2024-12-18 03:16:38 -08:00
catloversg
cffd6d75a6 CORPORATION: Remove non-empty-string condition in sell modals (#1847) 2024-12-18 03:15:13 -08:00
catloversg
8aea99e5cd API: Add "No AI" to GoOpponent type (#1845) 2024-12-18 03:14:35 -08:00
catloversg
d75b0af6b2 CODEBASE: Update webpack and its plugins (#1825) 2024-12-18 03:14:01 -08:00
catloversg
e6078ab1df UI: Change description and add tooltip for HackMoney-related multipliers (#1823)
* UI: Change description and add tooltip for HackMoney-related multipliers

* Update based on feedback
2024-12-18 02:51:25 -08:00
catloversg
9c4b0c004c UI: Make minor changes in buttons and error messages of tutorial (#1837)
* UI: Make minor changes in buttons and error messages of tutorial

* Update

* Change "Skip Tutorial" to "Exit Tutorial"
2024-12-18 02:46:37 -08:00
catloversg
28da81f3f1 BLADEBURNER: Add visual cues to warn player of dangerous actions and status of population, chaos (#1856) 2024-12-18 02:44:19 -08:00
Naga
c49a507031 MISC: Convert Literature entries and helper functions to TSX (#1854) 2024-12-18 02:39:30 -08:00
catloversg
d9dba2a442 MISC: Clarify input and output of Square Root coding contract (#1839) 2024-12-12 03:13:18 -08:00
catloversg
74ede7d947 BUGFIX: Game takes too long to process crime work with large number of cycles (#1821) 2024-12-12 03:11:58 -08:00
catloversg
1c7230a799 DOCUMENTATION: Improve Infiltration docs (#1842) 2024-12-12 03:10:51 -08:00
Nerdpie
ff85394e02 BUGFIX: Fix Text Effect Preventing Company Name Updates (#1828) 2024-12-12 03:07:53 -08:00
catloversg
37ddb43b82 API: Allow passing 0 SkillPoints to skillMaxUpgradeCount (#1844) 2024-12-12 03:07:31 -08:00
catloversg
7c732689dd DOCUMENTATION: Fix typo in "Getting Started" page (#1836) 2024-12-12 03:06:19 -08:00
catloversg
bab5412fb7 BUGFIX: Tail log does not render multiline logs properly in edge cases (#1838) 2024-12-12 03:00:10 -08:00
catloversg
b66eff0379 JEST: Fix flaky stock market test (#1834) 2024-12-12 02:58:35 -08:00
catloversg
4137a0e522 DOCUMENTATION: Clarify isBusy and stopAction Singularity APIs (#1822) 2024-12-12 02:57:19 -08:00
catloversg
f07c442a92 CODEBASE: Fix React warning of missing keys in CovenantPurchasesRoot.tsx (#1824) 2024-12-12 02:55:28 -08:00
Snarling
bf095ea9e3 VERSION: Start dev branch 2.7.1 (#1832) 2024-12-08 16:41:53 -05:00
Snarling
a58eace23a RELEASE: Version 2.7.0 (#1829) 2024-12-08 15:51:46 -05:00
catloversg
933ec964cf CORPORATION: Print error message when player cannot create corporation (#1820) 2024-12-01 13:50:32 -08:00
catloversg
6e1848dd79 CORPORATION: Add new API to check if player can create corporation (#1598)
* CORPORATION: Add new API to check if player can create corporation
* Update description of createCorporation API
* Return enum instead of true/false
* Use throwIfReachable
* Fix typo in comment
2024-11-30 21:49:19 -08:00
catloversg
67704f2ab0 CODEBASE: Use "esnext" target when transforming code with swc (#1810) 2024-11-30 16:02:32 -08:00
catloversg
0caeb5c5ca DOCUMENTATION: Clarify prerequisites of augmentations when grafting (#1814) 2024-11-30 15:46:04 -08:00
catloversg
9efc091f8d CORPORATION: Improve FAQ and .lit file (#1808) 2024-11-30 15:36:02 -08:00
catloversg
7a4b3e23c1 CODEBASE: Show error dialog when finding out old bugs in pre-v2.4.0 (#1816)
* CODEBASE: Show error dialog when finding out old bugs in pre-v2.4.0

* Only show error dialog once
2024-11-30 15:31:44 -08:00
catloversg
9c7223f876 MISC: Enable new lint rules (#1806) 2024-11-27 13:56:58 -08:00
catloversg
fdcdf0e27a MISC: Add missing comma in changelog (#1805) 2024-11-27 13:55:51 -08:00
David Walker
b829f28f8c MISC: Update changelog (#1804)
Updated through c6865802
2024-11-27 01:42:34 -08:00
catloversg
c686580289 MISC: Update changelog (#1803) 2024-11-27 01:28:35 -08:00
catloversg
1e6c9d69e2 JEST: Move TerminalMatching.test.ts (#1801) 2024-11-27 01:23:51 -08:00
catloversg
88322a23a7 BUGFIX: Cannot load Bladeburner tasks of Sleeves from pre-v2.6.1 (#1800) 2024-11-27 01:23:20 -08:00
catloversg
22b6458c22 REFACTOR: Handle migration of ActionIdentifier in Bladeburner code instead of GenericReviver (#1799) 2024-11-27 01:22:23 -08:00
catloversg
3846c69204 BUGFIX: Infinite loop when migrating player's scripts from pre-v1.0.0 (#1798) 2024-11-27 01:18:43 -08:00
catloversg
55627d7212 CORPORATION: Fix wrong initial productionMult of new division (#1794) 2024-11-27 01:16:19 -08:00
catloversg
faed78cf2c CODEBASE: Validate AllGangs and StockMarket after loading with JSON.parse (#1783) 2024-11-27 01:13:47 -08:00
catloversg
7d03a9ef32 CODEBASE: Improve type checks in SaveObject.ts (#1774) 2024-11-27 00:35:09 -08:00
catloversg
6d2e106371 MISC: Change current version to 2.7.0 (#1795) 2024-11-27 00:07:16 -08:00
catloversg
bb0b857f71 JEST: Add tests for b1tflum3 and destroyW0r1dD43m0n API (#1802) 2024-11-27 00:06:11 -08:00
catloversg
9d8ac65aaf BUGFIX: Generic Reviver does not handle Message class (#1796) 2024-11-24 13:46:18 -08:00
catloversg
294c9cbf4d MISC: Accept "noscript" as parameter for skipping loading scripts (#1797) 2024-11-24 13:44:30 -08:00
catloversg
05da0efc81 REFACTOR: Mitigate cyclic dependency between Jsonable classes (#1792) 2024-11-23 15:53:31 -08:00
catloversg
45a6ca6b8e BUGFIX: Wrong usage of delete operator in Settings.load (#1791) 2024-11-23 15:23:57 -08:00
catloversg
596a621c62 BUGFIX: Missing migration code for v0.56.0 (#1790) 2024-11-21 22:57:36 -08:00
catloversg
8c4fcfe045 CODEBASE: Recheck all usages of typecasting with JSON.parse (#1775) 2024-11-20 23:47:02 -08:00
catloversg
70a231e421 BUGFIX: Hashserver UI shows wrong server list when purchasing upgrades (#1782) 2024-11-20 12:53:11 -08:00
catloversg
fe2c98e3cf BLADEBURNER: Deduct karma when successfully completing action involving killing (#1784) 2024-11-20 12:51:18 -08:00
Jon Hartnett
99aeecbd0e BUGFIX: Fix ramOverride check (#1787)
ramOverride currently prevents you from actually using exactly all of a server's memory due to a bug in the ram check. Simply replace ">=" with ">" to allow the new ram to equal the max ram.

Test script:
```js
/** @param {NS} ns */
export async function main(ns) {
  ns.tprint(ns.ramOverride(8));
}
```
Expected output (on fresh save):
```js
8
```
Output before this commit:
```js
1.6
```
2024-11-20 12:47:55 -08:00
catloversg
04611a30b6 MISC: Remove duplicate usages of special server's hostname (#1781) 2024-11-19 11:47:34 -08:00
David Walker
5faa418c74 REFACTOR: Better casting in JSONReviver.ts (#1780) 2024-11-19 11:45:26 -08:00
catloversg
d824cd4fa6 CODEBASE: Add comments to Generic_fromJSON (#1776) 2024-11-18 15:36:23 -08:00
gmcew
93a9475b8d Fix hashnet server list (#1779)
Remove WD if TRP isn't installed.
2024-11-18 14:23:01 -08:00
catloversg
75cf9c88b5 CODEBASE: Fix lint errors 3 (#1758)
This is a really big refactor because it actually *fixes* a lot of the lint errors instead of disabling them.
2024-11-14 08:18:57 -08:00
catloversg
97ca8c5f5e CODEBASE: Fix lint errors 4 (#1773)
Co-authored-by: Michael Ficocelli <ficocemt@gmail.com>
2024-11-14 07:47:35 -08:00
catloversg
4f84a894eb MISC: Add error cause to exceptionAlert and Recovery mode (#1772) 2024-11-12 19:27:18 -08:00
catloversg
246d668951 CORPORATION: Rewrite validation code for strings of price and quantity (#1753) 2024-11-12 07:39:21 -08:00
catloversg
9bba6a0a41 CORPORATION: Fix negative stored material (#1771) 2024-11-12 07:24:59 -08:00
catloversg
9013ea935a BUGFIX: nano and vim use wrong template for text files (#1770) 2024-11-12 07:22:17 -08:00
catloversg
48b25d2223 MISC: Update monaco-editor (#1769) 2024-11-12 07:20:42 -08:00
catloversg
5d26f4fa56 GANG: Show error popup when there are errors (#1763)
* GANG: Show error popup when there are errors

* Only show error once when it's in a hot code path
2024-11-11 07:41:38 -08:00
catloversg
72a63b15cb API: Return active SF levels in getOwnedSourceFiles and ResetInfo.ownedSF (#1761)
* DOCUMENTATION: Clarify getOwnedSourceFiles when player overrides active levels of SFs
* Return Player.activeSourceFiles instead of Player.sourceFiles
* Get rid of zeroes in the map
2024-11-10 22:56:57 -08:00
catloversg
cb9e281c45 UI: Auto focus hashnet upgrade modal (#1768) 2024-11-10 22:54:51 -08:00
catloversg
40651a757d CORPORATION: Clarify ns.corporation.bribe() (#1766) 2024-11-10 22:53:27 -08:00
catloversg
c638d858c6 DOCUMENTATION: Clarify FactionWorkRepGain multiplier (#1767) 2024-11-10 16:40:13 -08:00
catloversg
e825492319 CORPORATION: Expose valuation via ns.corporation.getCorporation() (#1765) 2024-11-10 16:32:25 -08:00
catloversg
daec7482fa UI: Change order of information in stats progress bar (#1764) 2024-11-10 16:30:47 -08:00
catloversg
650cf51acb DOCUMENTATION: Add more information for deprecated nFormat API (#1762) 2024-11-10 16:27:35 -08:00
catloversg
f4c2b29d40 GANG: Show confirmation popup if player enables territory clashes while being too weak (#1760) 2024-11-09 21:12:17 -08:00
G4mingJon4s
d6874d68aa UI: Added the ability to change the font size (#1703) 2024-11-09 16:50:18 -08:00
catloversg
90cb8a9551 MISC: Add proper type check to AST walking code (#1757) 2024-11-09 15:34:46 -08:00
catloversg
36c143b687 CODEBASE: Fix lint errors 2 (#1756) 2024-11-06 23:09:11 -08:00
catloversg
e3c10e9f0f MISC: Always add script's earnings to its parent (#1754) 2024-11-06 18:44:38 -08:00
catloversg
60c4be0496 MISC: Add generic type as returned type for action and checking (#1748) 2024-11-06 18:10:56 -08:00
catloversg
36eb12098f CORPORATION: Fix typo in documentation (#1752) 2024-11-06 18:03:04 -08:00
catloversg
c7cf0b853b MISC: Minor code change in SkillElem.tsx (#1751) 2024-11-04 16:24:15 -08:00
catloversg
81e068ba9c MISC: Include React component stack in Recovery Mode report (#1750) 2024-11-04 16:20:02 -08:00
catloversg
e5e4e2693f DOCUMENTATION: Clarify getSkillUpgradeCost and fix typo in BaseTask (#1749) 2024-11-03 23:27:59 -08:00
catloversg
772762493f BLADEBURNER: Change sleeveSize from property to getter (#1746) 2024-11-03 23:19:01 -08:00
catloversg
56c797e23f BLADEBURNER: Remove duplicate getRecruitmentSuccessChance (#1745) 2024-11-03 23:16:54 -08:00
catloversg
bc02d4f92f BLADEBURNER: Change skill.canUpgrade and Skills UI (#1744) 2024-11-03 23:08:19 -08:00
JMack6490
5786d7adcb DOCUMENTATION: Update NetscriptDefinitions.d.ts (#1743)
Added line 5934: using hackAnalyzeThreads on a server you cannot hack returns -1
2024-11-03 22:54:43 -08:00
catloversg
b388865317 UI: Fix typo in CovenantPurchasesRoot.tsx (#1740) 2024-11-03 22:38:19 -08:00
catloversg
c8183e55db BUGFIX: Crash in theme editor modal (#1735) 2024-11-03 22:38:01 -08:00
catloversg
f6502dd490 CODEBASE: Fix lint errors 1 (#1732) 2024-11-03 22:35:14 -08:00
catloversg
f7ee3a340f MISC: Remove or change popup shown when system clock moved backward (#1739) 2024-10-30 04:15:43 -07:00
catloversg
a12c48ed43 UI: Disable font ligatures by default (#1729) 2024-10-27 22:39:01 -07:00
ballardrog
0bf378a1b0 IPVGO: Add getCheatCount(). (#1734) 2024-10-27 18:52:23 -07:00
catloversg
b01527a9dc MISC: Update blood donation (#1736) 2024-10-27 18:40:23 -07:00
Michael Ficocelli
6df3dcdc82 IPVGO: Add optional board state argument to the go analysis functions (#1716) 2024-10-27 17:31:06 -07:00
Michael Ficocelli
ecc2d92edb IPVGO: uncheck the 'show prior move' feature when a new game is started (#1728) 2024-10-27 17:25:04 -07:00
catloversg
810cfc8b21 MISC: Validate hostname and port of RFA (#1721) 2024-10-23 18:12:04 -07:00
catloversg
f49d3b32a5 DOCUMENTATION: Clarify cyclesWorked of Task (#1725) 2024-10-23 16:18:18 -07:00
catloversg
9a0400d3df API: Improve built-in print APIs when printing objects containing Map or Set (#1723) 2024-10-23 16:01:58 -07:00
catloversg
d0022aac2b DEVMENU: Reset other gangs when leaving gang (#1715) 2024-10-23 01:55:22 -07:00
catloversg
b72c03acf0 DOCUMENTATION: Clarify "completion" property of GraftingTask (#1713) 2024-10-21 21:22:17 -07:00
catloversg
3ce2ae5fd7 API: Change type of skill name parameter of skillMaxUpgradeCount API (#1712) 2024-10-21 20:39:56 -07:00
catloversg
c5e50ba327 MISC: Improve discoverability of Corporation documentation (#1711) 2024-10-21 20:38:56 -07:00
catloversg
867f79c5ab API: Improve built-in print APIs when printing Promise objects (#1710) 2024-10-21 20:37:40 -07:00
catloversg
bc51733fbe MISC: Improve exception alert (#1709) 2024-10-21 20:36:29 -07:00
Denis Čahuk
8d1cfb2d97 BLADEBURNER: Test cover action completion (#1695) 2024-10-21 20:33:56 -07:00
catloversg
6d8084f40e MISC: Improve tutorial, documentation and discoverability of NS API documentation (#1697) 2024-10-20 20:37:42 -07:00
catloversg
a3e1b297ca MISC: Expose more information of HiveMind augmentation (#1701) 2024-10-20 20:36:42 -07:00
catloversg
97489629d9 CLI: Add warning when installing backdoor on backdoored server (#1705) 2024-10-20 20:36:02 -07:00
Denis Čahuk
2e6aa8989c BLADEBURNER: UI now shows tooltips on action success chance to indicate which stat it scales with (#1699) 2024-10-20 20:35:03 -07:00
catloversg
cc4c6d150b UI: Remove unnecessary newlines when augmentation does not have stats (#1698) 2024-10-20 01:09:30 -07:00
David Walker
424ae160ba NETSCRIPT: Fix dynamicRamUsage returned by getRunningScript() (#1704)
Fixes #1700
2024-10-20 00:52:57 -07:00
Pimvgd
24ab173d6c UI: Fix typo in field work description (#1691) 2024-10-09 21:18:57 -07:00
Alain Bryden
cd99006c4e NETSCRIPT: Update ScriptDeath to extend Error (#1685)
* Update ScriptDeath to extend Error

- Rename the "name" property to "hostname" so that it doesn't clash with inherited Error.name property.
- Extend Error, this way if a user ends up catching it they can:
  - Test the type of error caught (name) and ignore it if desired
  - Get a stack trace and find out where they went wrong
  - Not require special case error printing logic for catching things that are neither strings, nor Error objects.

It is possible (but unlikely) that this could make killing scripts slower in some circumstances.
2024-10-09 21:18:06 -07:00
catloversg
cace34d759 BUGFIX: Wrong calculation in team casualties of Bladeburner action (#1672) 2024-10-07 23:55:11 -07:00
catloversg
2fa8dd41ac BUGFIX: Missing tooltip when doing faction work (#1679) 2024-10-07 23:51:02 -07:00
egg362
dc328b14df MISC: Fixes to typos in augmentation descriptions (#1680) 2024-10-07 23:28:21 -07:00
catloversg
b829534067 BUGFIX: Scripts are killed too late when prestiging (#1683)
* Scripts are killed too late when prestiging
* Kill all scripts earlier
2024-10-07 23:20:58 -07:00
catloversg
e644c0e91e API: Make condition of donateToFaction consistent (#1686) 2024-10-07 23:14:09 -07:00
catloversg
3ef3821a08 DOCUMENTATION: Clarify condition of ns.corporation.bribe (#1687) 2024-10-07 23:12:35 -07:00
Caldwell
ccd9118b93 MISC: add stopFlag check before running main (#1689)
It's possible that before the script starts runn, the stopFlag is set.
2024-10-07 22:57:35 -07:00
catloversg
4d60c833cc MISC: Remove mention of Hacking Mission (#1684) 2024-10-06 22:58:24 -07:00
Ben Rog-Wilhelm
dad34a09dd CONTRACT: Fix incorrect description of Hamming Codes in Integer to Encoded Binary. (#1677) 2024-10-04 03:51:31 -07:00
Shy
7c3d71d21a MISC: remove google analytics config (#1676) 2024-10-03 16:12:51 -07:00
David Walker
bedd398789 CCT: Add new Square Root coding contract (#1656)
To make this simpler, there is now a general-purpose util for getting
random bigints. I don't know if anyone else will use it, but it makes
this code simpler.

I also rejiggered the type-checking on contracts a little more, because
the previous refactor didn't quite catch all the mistakes that could be
made.
2024-09-30 20:18:58 -07:00
catloversg
32e00aff7a BUGFIX: Wrong parameter requirement of ns.bladeburner.setTeamSize (#1673) 2024-09-30 20:18:25 -07:00
lucebac
7513fec507 EDITOR: import resolution in code editor (#1661)
* FIX: import resolution in code editor
Since I did not find any callback where we could just load imports
on-demand, I opted for just loading all scripts from the server where
a given script was opened from command line. This does not include
scripts which are already open, only files which are not yet opened
will be loaded.
2024-09-26 11:36:42 -07:00
Yichi Zhang
2b4410739d HACKNET: Remove hacknet servers from ServerType.Foreign (#1665) 2024-09-25 16:19:25 -07:00
Denis Čahuk
6c81e1ac67 BLADEBURNER: test cover console commands (#1664) 2024-09-25 16:06:46 -07:00
Denis Čahuk
b86044bcc1 BLADEBURNER: Move bladeburner team losses to Casualties (#1654) 2024-09-23 17:03:01 -07:00
Marvin Sautter
cf2d9b8335 Update babel-plugin-transform-barrels to the official version 1.0.17 for improved stability (#1663) 2024-09-22 22:27:51 -07:00
catloversg
c2727b5127 BUGFIX: Change generation rate of CCTs (#1657) 2024-09-22 21:35:34 -07:00
catloversg
53c8296baf BUGFIX: Follow-up of #1658 (Wrong team size in Bladeburner) (#1662) 2024-09-22 21:33:01 -07:00
catloversg
ade92ed297 BUGFIX: Wrong size of table cell in Import Save Comparison UI (#1659) 2024-09-20 21:02:57 -07:00
catloversg
70e16bf349 BUGFIX: Wrong team size when all team members die in Bladeburner's action (#1658) 2024-09-20 02:31:15 -07:00
David Walker
21ffa5322f MISC: Refactor coding contracts for type safety (#1653)
* MISC: Refactor coding contracts for type safety

This refactor does three things without any behavior changes:
* Adds type safety by introducing generic type parameters to the coding
  contract definitions, so they can use concrete types instead of
  "unknown". This also eliminates a bunch of boilerplate casts.
* Removes the unneeded CodingContractType class. We can use the metadata
  type directly.
* Introduces a new hidden state to coding contracts. Instead of
  generating and storing the data (which is what is shown to the user as
  the problem's input), the state is stored instead. This allows
  problems to (for instance) generate the answer up-front, and check the
  solution directly against the answer, instead of needing to embed a
  solver in the problem (which can then easily be ripped from the source
  code).

For compatibility, state == data by default. I plan to make use of this
feature in a followup, but it is unused currently.
2024-09-15 23:53:10 -07:00
Denis Čahuk
cde5e3f6ae MISC: Refactor BLADEBURNER Identifier Lookup (#1646) 2024-09-14 17:39:18 -07:00
David Walker
f39402e8be BLADE: Use "grow" semantics for population estimate (#1624)
This changes the way percantage-based population estimates work, so that
they have a similar mechanism to grow(). This allows natural recovery
from 0, and also falling to 0 in finite steps.

This also changes the formula for reducing estimates to est / (1 + p)
instead of est * (1 - p). The latter becomes overpowered at large p,
we've seen this formula issue elsewhere (such as BN modifiers).
2024-09-13 23:41:10 -07:00
Marvin Sautter
3d7a6f70d8 JEST: Test faster by removing barrels (#1645) 2024-09-09 18:36:00 -07:00
Marvin Sautter
dd59612121 JEST: Decrease frequency of random Bladeburner Tests by ~59% for improved performance (#1648) 2024-09-09 18:33:37 -07:00
Michael Ficocelli
2a5b0ca4e9 IPVGO: Prevent issues caused by resetting the board while the go AI is in flight (#1608) 2024-09-07 18:33:49 -07:00
catloversg
4f426e1b20 UI: Change description of Documentation button in Script Editor (#1644) 2024-09-07 18:08:16 -07:00
G4mingJon4s
651b17739c NETSCRIPT: Add ns.self() as a free info function (#1636)
* added utility info

* moved info to running script

* fix for RAM cost

* description changes

Co-authored-by: David Walker <d0sboots@gmail.com>

* fixed wrong formatting

* Added parent to ignored fields

---------

Co-authored-by: David Walker <d0sboots@gmail.com>
2024-09-07 17:34:24 -07:00
catloversg
0ce5cd35dc DOCUMENTATION: Fix mangled NS API TSDoc (#1643) 2024-09-07 17:29:23 -07:00
nobody0
17e906cd76 Update NetscriptDefinitions.d.ts to match class BitNodeMultipliers (#1642) 2024-08-30 19:31:04 -07:00
Fireball5939
95394b5956 DOCUMENTATION: Improve ns.enableLog() docs to remove a missleading description (#1634)
Changed ns.enableLog documentation to be very similar to ns.disableLog, to remove possible confusion that it only undoes the effects of ns.disableLog
2024-08-26 19:49:44 -07:00
Tahvohck
47b261f520 STANEK: Typo fix in description (#1627)
Fixing a typo (missing space) in the CotMG faction info text.
2024-08-25 10:14:33 -07:00
Nicole
b4f2a5c641 set static information netscript costs to 0 (#1628) 2024-08-25 10:09:36 -07:00
catloversg
3750363d95 MISC: Show more information about documentation in last step of tutorial (#1630) 2024-08-25 10:04:55 -07:00
catloversg
e58a7d8eaa DEVMENU: Use Autocomplete instead of Select in more tools (#1631) 2024-08-25 10:02:28 -07:00
catloversg
2e42a1f781 DOCUMENTATION: Minor changes in index page (#1626) 2024-08-24 14:11:11 -07:00
catloversg
ac0c9bd7e8 BUGFIX: Missing error handler when calling libarg (#1625) 2024-08-24 14:08:42 -07:00
gmcew
49629d1d28 UI: Remove extra "label=" text from SmartSupply interface (#1622) 2024-08-23 21:27:36 -07:00
Yichi Zhang
028e779602 NETSCRIPT: Don't make dynamicLoadedFns entries for free functions. (#1617) 2024-08-23 21:23:41 -07:00
Nicole
2141032432 BLADE: Fix population estimate percent growth when estimate is 0 (#1620) 2024-08-23 21:22:41 -07:00
catloversg
be515cc195 BUGFIX: Crash in b1tflum3 and destroyW0r1dD43m0n API (#1619) 2024-08-23 21:06:53 -07:00
catloversg
329d8ca8e6 BUGFIX: Wrong skill multipliers in Bladeburner (#1615) 2024-08-23 21:04:13 -07:00
bupjae
95bb6a33df DOCUMENTATION: Clarify experience gain of sleeves (#1609) 2024-08-22 12:53:16 -07:00
Nicole
7f5c4e1fe0 API: Reduced RAM cost for ns.getPurchasedServers (#1614) 2024-08-22 00:44:21 -07:00
catloversg
614bec1e13 DOCUMENTATION: Fix wrong description of ns.corporation.createCorporation (#1612) 2024-08-21 17:50:47 -07:00
catloversg
4a3dcf8a26 MISC: Expose internal data in dev build (#1611) 2024-08-21 17:50:11 -07:00
Sol
8d9f63f49f UI: Fix incorrect information given in pserv upgrade error msg. (#1602) 2024-08-21 17:48:55 -07:00
catloversg
818d7446be MISC: Rename getRandomArbitrary (#1605) 2024-08-21 16:50:51 -07:00
Nicole
995e367432 DOCS: Correct function signature for hashUpgradeCost (#1603) 2024-08-21 16:47:26 -07:00
David Walker
f235513742 CHANGELOG: Update changelog for 2.6.3dev (#1601)
Commit d82247a4 was a lazy update, this finishes putting all the entries
in the changelog. The "last updated" date is not changed, since it is
only including changes up to the old date.

Reverts the html-ification introduced in the last changelog update.
2024-08-18 17:28:59 -07:00
Yichi Zhang
2563874acb MISC: Use indirect eval for terminal expr and corporation sell prices/amounts (#1599) 2024-08-17 18:13:31 -07:00
catloversg
94eef8ecde BUGFIX: Fix inconsistencies of error handling in promise-based API (#1377) 2024-08-17 14:23:08 -07:00
Fireball5939
701c5d8e64 API: Fixed ns.singularity.donateToFaction being able to donate to SoA (#1595)
Fixed ns.singularity.donateToFaction bug
Fixed a bug within singularity.donateToFaction where you could use it to donate to Shadows Of Anarchy
Also updated the Node version in package-lock.json to 18
2024-08-17 14:10:01 -07:00
catloversg
cacecda72f API: Add types for parameters of gym-university-bladeburner API (Fix merging error) (#1596)
* API: Add types for parameters of gym-university-bladeburner API
* Fix merging error
2024-08-17 14:08:55 -07:00
David Walker
5b2a4eafcb MISC: Improve several things relating to PID lookups (#1594)
findRunningScriptByPid needlessly took a "server" argument. This caused
there to be a "getRunningScriptByPid" version that did *not*, and it was
looping through all servers in order to function, which is needlessly
inefficient.

By removing the parameter and the needless inefficient helper method,
the following changes:
- Many Netscript functions such as isRunning() and getScript() become faster.
- The terminal "tail" command now works by pid regardless of the current
  server. Note that "kill" already worked this way.

I also improved the docs around "tail", since the pid argument wasn't
in the help.
2024-08-17 14:03:00 -07:00
David Walker
34db6e8b26 NETSCRIPT: Rework disableLog for efficiency (#1589)
The current implementation was naive; disableLog("ALL") was storing a
key for every function, and iterating over a different object to do it
(when iterating over objects is quite slow).

The common cases of Bitburner (and especially batching, where efficiency
matters most) are either never disabling anything, or disabling "ALL".
This optimizes for these two cases, at the expense of slightly more
complicated code to deal with the less-common edge cases.
2024-08-16 19:10:20 -07:00
Nicole
385a9dc11d BUGFIX: Fix Bladeburner city chaos reaching Infinity/NaN (#1588) 2024-08-16 16:28:43 -07:00
685 changed files with 20024 additions and 9295 deletions

View File

@@ -1,14 +1,12 @@
node_modules/
.git
.gitattributes
.gitignore
test/
dist/
.app/
.github
.editorconfig
.dockerignore
Dockerfile
docker-compose.yml
*.md
Quotes.txt
netscript_tests/

View File

@@ -7,6 +7,7 @@ node_modules/
dist
input
assets
coverage
doc
markdown
electron

View File

@@ -9,8 +9,8 @@ module.exports = {
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
//"plugin:@typescript-eslint/recommended-requiring-type-checking",
//"plugin:@typescript-eslint/strict",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
],
parser: "@typescript-eslint/parser",
parserOptions: {
@@ -34,10 +34,26 @@ module.exports = {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"react/no-unescaped-entities": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
},
settings: {
react: {
version: "detect",
},
},
overrides: [
/**
* Some enums are subsets of other enums. For example, UniversityLocationName contains locations of 3 universities.
* With each member, we refer to the respective LocationName's member instead of using a literal string. This usage
* is okay, but it triggers the "prefer-literal-enum-member" rule. This rule is not useful in this case, so we
* suppress it in NetscriptDefinitions.d.ts.
*/
{
files: ["src/ScriptEditor/NetscriptDefinitions.d.ts"],
rules: {
"@typescript-eslint/prefer-literal-enum-member": ["off"],
},
},
],
};

View File

@@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v4
- name: Check bundle files
id: changed-bundle-files
uses: tj-actions/changed-files@v44
uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c
with:
files: |
dist/**

1
.gitignore vendored
View File

@@ -3,6 +3,7 @@
.vscode
Changelog.txt
Netburner.txt
/coverage
/doc/build
/node_modules
/electron/node_modules

View File

@@ -3,6 +3,7 @@ package.json
dist
doc/build
doc/source
coverage
.build
.package
.app

50
Dockerfile Normal file
View File

@@ -0,0 +1,50 @@
# Stage 1: Build the application
FROM node:lts-alpine AS builder
# Set working directory
WORKDIR /app
# Install necessary tools, including git
RUN apk update && \
apk add --no-cache git && \
apk add bash
# Copy dependencies
COPY package.json package-lock.json ./
COPY tools/ ./tools
# Install dependencies
RUN npm ci
# Copy source code
COPY . .
# Build the application
# Pass the build mode as a build argument
ARG BUILD_MODE
# Use shell logic to determine which version to install
RUN if [ "$BUILD_MODE" = "dev" ]; then \
echo "Installing development version"; \
npm run build:dev; \
else \
echo "Installing production version"; \
npm run build; \
fi
# Stage 2: Serve the application using Nginx
FROM nginx:stable-alpine AS runtime
# Security optimizations
RUN chmod -R 644 /etc/nginx/nginx.conf
# Copy the built application from the builder stage
COPY --from=builder /app/.app /usr/share/nginx/html
# Set permissions for security
RUN chmod -R 755 /usr/share/nginx/html
# Expose port
EXPOSE 80
# Start Nginx
CMD ["nginx", "-g", "daemon off;"]

View File

@@ -13,9 +13,10 @@ See the [frequently asked questions](./doc/FAQ.md) for more information . To dis
# Documentation
The game's official documentation can be found in-game.
There are 2 types of documentation:
The [in-game documentation](./markdown/bitburner.md) is generated from the [TypeScript definitions](./src/ScriptEditor/NetscriptDefinitions.d.ts).
- In-game documentation: It can be found in the Documentation tab. This is the best place to get up-to-date information. You can also read the web version at https://github.com/bitburner-official/bitburner-src/blob/stable/src/Documentation/doc/index.md.
- NS API documentation: It's generated from the [TypeScript definitions](./src/ScriptEditor/NetscriptDefinitions.d.ts). You can read it at https://github.com/bitburner-official/bitburner-src/blob/stable/markdown/bitburner.md.
Anyone is welcome to contribute to the documentation by editing the [source
files](/src/Documentation/doc) and then making a pull request with your contributions.

View File

@@ -10,6 +10,6 @@ for i in $ROOTDIR/dist/icons/achievements/*.svg; do
echo $i
# Make background transparent and replace green with black
# The icons will be recolored by css filters matching the player's theme
sed -i "s/fill:#000000;/fill-opacity: 0%;/g" "$i"
sed -i "s/fill:#00ff00;/fill:#000000;/g" "$i"
sed -i"" "s/fill:#000000;/fill-opacity: 0%;/g" "$i"
sed -i"" "s/fill:#00ff00;/fill:#000000;/g" "$i"
done

12
docker-compose.yml Normal file
View File

@@ -0,0 +1,12 @@
version: "3.8"
services:
bitburner-app:
build:
context: .
dockerfile: Dockerfile
args:
BUILD_MODE: production # Pass the build mode to the Dockerfile
ports:
- "8080:80" # Map port 8080 on the host to port 80 in the container
restart: unless-stopped

View File

@@ -286,11 +286,14 @@ function getMenu(window) {
click: () => {
dialog
.showMessageBox({
type: "info",
type: "warning",
title: "Bitburner > API Server Information",
message: "The API Server is used to write script files to your in-game home.",
detail:
"There is an official Visual Studio Code extension that makes use of that feature.\n\n" +
`WARNING: This feature is deprecated. It may be removed in future versions.\n\n` +
`You should use external tools that support our Remote API feature. For details, please check the "Remote API" page in the in-game documentation. You can also check the "external-editors" channel in our Discord server for more information and support.\n\n` +
"--------------------------------------------------------------------------------\n\n" +
"There is an official Visual Studio Code extension that makes use of the API Server feature.\n\n" +
"It allows you to write your script file in an external IDE and have them pushed over to the game automatically.\n" +
"If you want more information, head over to: https://github.com/bitburner-official/bitburner-vscode.",
buttons: ["Dismiss", "Open Extension Link (GitHub)"],

View File

@@ -1,12 +1,12 @@
{
"name": "bitburner",
"version": "2.6.3",
"version": "2.8.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "bitburner",
"version": "2.6.3",
"version": "2.8.1",
"dependencies": {
"electron-log": "^4.4.8",
"electron-store": "^8.1.0",

View File

@@ -1,6 +1,6 @@
{
"name": "bitburner",
"version": "2.6.3",
"version": "2.8.1",
"description": "A cyberpunk-themed programming incremental game",
"main": "main.js",
"author": "Daniel Xie, hydroflame, et al.",

View File

@@ -2,7 +2,7 @@ module.exports = {
roots: ["<rootDir>/src/", "<rootDir>/test/"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
transform: {
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest",
"^.+\\.(js|jsx|ts|tsx|cjs|mjs)$": "<rootDir>/test/jest/config/babelTransform.js",
},
transformIgnorePatterns: ["node_modules/(?!react-markdown)/"],
testPathIgnorePatterns: [".cypress", "node_modules", "dist"],
@@ -15,7 +15,7 @@ module.exports = {
".*?raw$": "<rootDir>/test/__mocks__/fileMock.js",
"@player": "<rootDir>/src/Player",
"@enums": "<rootDir>/src/Enums",
"@nsdefs": "<rootDir>/src/ScriptEditor/NetscriptDefinitions",
"@nsdefs": "<rootDir>/src/ScriptEditor/NetscriptDefinitions.d.ts",
"^monaco-editor$": "<rootDir>/test/__mocks__/NullMock.js",
"^monaco-vim$": "<rootDir>/test/__mocks__/NullMock.js",
"/utils/Protections$": "<rootDir>/test/__mocks__/NullMock.js",

View File

@@ -0,0 +1,15 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [AutocompleteData](./bitburner.autocompletedata.md) &gt; [command](./bitburner.autocompletedata.command.md)
## AutocompleteData.command property
The raw command string that you have typed until you press \[Tab\] to use the autocomplete feature.
For example, if you type `[Space]run test.js[Space][Space][Space][Press tab to use autocomplete]`<!-- -->, "command" will contain all space characters (1 space character before "run" and 3 space characters after ".js").
**Signature:**
```typescript
command: string;
```

View File

@@ -4,6 +4,8 @@
## AutocompleteData.enums property
Netscript Enums
**Signature:**
```typescript

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; [AutocompleteData](./bitburner.autocompletedata.md) &gt; [filename](./bitburner.autocompletedata.filename.md)
## AutocompleteData.filename property
The filename of the script about to be run
**Signature:**
```typescript
filename: string;
```

View File

@@ -4,6 +4,8 @@
## AutocompleteData.flags() method
Parses the flags schema on the already inputted flags
**Signature:**
```typescript

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; [AutocompleteData](./bitburner.autocompletedata.md) &gt; [hostname](./bitburner.autocompletedata.hostname.md)
## AutocompleteData.hostname property
The hostname of the server the script would be running on
**Signature:**
```typescript
hostname: string;
```

View File

@@ -16,14 +16,18 @@ interface AutocompleteData
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [enums](./bitburner.autocompletedata.enums.md) | | [NSEnums](./bitburner.nsenums.md) | |
| [scripts](./bitburner.autocompletedata.scripts.md) | | string\[\] | |
| [servers](./bitburner.autocompletedata.servers.md) | | string\[\] | |
| [txts](./bitburner.autocompletedata.txts.md) | | string\[\] | |
| [command](./bitburner.autocompletedata.command.md) | | string | <p>The raw command string that you have typed until you press \[Tab\] to use the autocomplete feature.</p><p>For example, if you type <code>[Space]run test.js[Space][Space][Space][Press tab to use autocomplete]</code>, "command" will contain all space characters (1 space character before "run" and 3 space characters after ".js").</p> |
| [enums](./bitburner.autocompletedata.enums.md) | | [NSEnums](./bitburner.nsenums.md) | Netscript Enums |
| [filename](./bitburner.autocompletedata.filename.md) | | string | The filename of the script about to be run |
| [hostname](./bitburner.autocompletedata.hostname.md) | | string | The hostname of the server the script would be running on |
| [processes](./bitburner.autocompletedata.processes.md) | | [ProcessInfo](./bitburner.processinfo.md)<!-- -->\[\] | The processes running on the host |
| [scripts](./bitburner.autocompletedata.scripts.md) | | string\[\] | All scripts on the current server |
| [servers](./bitburner.autocompletedata.servers.md) | | string\[\] | <p>All server hostnames.</p><p>Some servers are hidden until you satisfy their requirements. This array does not contain those servers if you do not satisfy their requirements.</p> |
| [txts](./bitburner.autocompletedata.txts.md) | | string\[\] | All text files on the current server |
## Methods
| Method | Description |
| --- | --- |
| [flags(schema)](./bitburner.autocompletedata.flags.md) | |
| [flags(schema)](./bitburner.autocompletedata.flags.md) | Parses the flags schema on the already inputted flags |

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; [AutocompleteData](./bitburner.autocompletedata.md) &gt; [processes](./bitburner.autocompletedata.processes.md)
## AutocompleteData.processes property
The processes running on the host
**Signature:**
```typescript
processes: ProcessInfo[];
```

View File

@@ -4,6 +4,8 @@
## AutocompleteData.scripts property
All scripts on the current server
**Signature:**
```typescript

View File

@@ -4,6 +4,10 @@
## AutocompleteData.servers property
All server hostnames.
Some servers are hidden until you satisfy their requirements. This array does not contain those servers if you do not satisfy their requirements.
**Signature:**
```typescript

View File

@@ -4,6 +4,8 @@
## AutocompleteData.txts property
All text files on the current server
**Signature:**
```typescript

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; [BaseTask](./bitburner.basetask.md) &gt; [cyclesWorked](./bitburner.basetask.cyclesworked.md)
## BaseTask.cyclesWorked property
The number of game engine cycles has passed since this task started. 1 engine cycle = 200ms.
**Signature:**
```typescript
cyclesWorked: number;
```

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; [BaseTask](./bitburner.basetask.md)
## BaseTask interface
Base interface of all tasks.
**Signature:**
```typescript
export interface BaseTask
```
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [cyclesWorked](./bitburner.basetask.cyclesworked.md) | | number | The number of game engine cycles has passed since this task started. 1 engine cycle = 200ms. |

View File

@@ -4,7 +4,7 @@
## BitNodeMultipliers.CodingContractMoney property
Influences the amount of money gained from completing Coding Contracts
Influences the amount of money gained from completing Coding Contracts.
**Signature:**

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; [BitNodeMultipliers](./bitburner.bitnodemultipliers.md) &gt; [CompanyWorkRepGain](./bitburner.bitnodemultipliers.companyworkrepgain.md)
## BitNodeMultipliers.CompanyWorkRepGain property
Influences how much rep the player gains when performing work for a company.
**Signature:**
```typescript
CompanyWorkRepGain: number;
```

View File

@@ -4,7 +4,7 @@
## BitNodeMultipliers.CorporationDivisions property
Influences the amount of divisions a corporation can have at the same time
Influences the amount of divisions a corporation can have at the same time.
**Signature:**

View File

@@ -4,7 +4,7 @@
## BitNodeMultipliers.CorporationSoftcap property
Influences the money gain from dividends of corporations created by the player.
Influences profits from corporation dividends and selling shares.
**Signature:**

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; [BitNodeMultipliers](./bitburner.bitnodemultipliers.md) &gt; [CrimeSuccessRate](./bitburner.bitnodemultipliers.crimesuccessrate.md)
## BitNodeMultipliers.CrimeSuccessRate property
Influences the success chance of committing crimes
**Signature:**
```typescript
CrimeSuccessRate: number;
```

View File

@@ -4,7 +4,7 @@
## BitNodeMultipliers.FactionWorkRepGain property
Influences how much rep the player gains when performing work for a faction.
Influences how much rep the player gains when performing work for a faction or donating to it.
**Signature:**

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; [BitNodeMultipliers](./bitburner.bitnodemultipliers.md) &gt; [GangUniqueAugs](./bitburner.bitnodemultipliers.ganguniqueaugs.md)
## BitNodeMultipliers.GangUniqueAugs property
Percentage of unique augs that the gang has.
**Signature:**
```typescript
GangUniqueAugs: number;
```

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; [BitNodeMultipliers](./bitburner.bitnodemultipliers.md) &gt; [GoPower](./bitburner.bitnodemultipliers.gopower.md)
## BitNodeMultipliers.GoPower property
Percentage multiplier on the effect of the IPvGO rewards \*
**Signature:**
```typescript
GoPower: number;
```

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; [BitNodeMultipliers](./bitburner.bitnodemultipliers.md) &gt; [HackingSpeedMultiplier](./bitburner.bitnodemultipliers.hackingspeedmultiplier.md)
## BitNodeMultipliers.HackingSpeedMultiplier property
Influences how quickly the player's hack(), grow() and weaken() calls run
**Signature:**
```typescript
HackingSpeedMultiplier: number;
```

View File

@@ -4,7 +4,7 @@
## BitNodeMultipliers.HacknetNodeMoney property
Influences how much money is produced by Hacknet Nodes and the hash rate of Hacknet Servers (unlocked in BitNode-9)
Influences how much money is produced by Hacknet Nodes. Influences the hash rate of Hacknet Servers (unlocked in BitNode-9)
**Signature:**

View File

@@ -4,7 +4,7 @@
## BitNodeMultipliers.ManualHackMoney property
Influences how much money can be stolen from a server when the player performs a hack against it through the Terminal.
Influences how much money the player actually gains when they hack a server via the terminal. This is different from ScriptHackMoney. When the player hack a server via the terminal, the amount of money in that server is reduced, but they do not gain that same amount.
**Signature:**

View File

@@ -23,44 +23,49 @@ interface BitNodeMultipliers
| [BladeburnerSkillCost](./bitburner.bitnodemultipliers.bladeburnerskillcost.md) | | number | Influences the cost of skill levels from Bladeburner. |
| [CharismaLevelMultiplier](./bitburner.bitnodemultipliers.charismalevelmultiplier.md) | | number | Influences how quickly the player's charisma level (not exp) scales |
| [ClassGymExpGain](./bitburner.bitnodemultipliers.classgymexpgain.md) | | number | Influences the experience gained for each ability when a player completes a class. |
| [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. |
| [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 at the same time |
| [CorporationSoftcap](./bitburner.bitnodemultipliers.corporationsoftcap.md) | | number | Influences the money gain from dividends of corporations created by the player. |
| [CompanyWorkRepGain](./bitburner.bitnodemultipliers.companyworkrepgain.md) | | number | Influences how much rep the player gains when performing work for a company. |
| [CorporationDivisions](./bitburner.bitnodemultipliers.corporationdivisions.md) | | number | Influences the amount of divisions a corporation can have at the same time. |
| [CorporationSoftcap](./bitburner.bitnodemultipliers.corporationsoftcap.md) | | number | Influences profits from corporation dividends and selling shares. |
| [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. |
| [CrimeMoney](./bitburner.bitnodemultipliers.crimemoney.md) | | number | Influences the base money gained when the player commits a crime. |
| [CrimeSuccessRate](./bitburner.bitnodemultipliers.crimesuccessrate.md) | | number | Influences the success chance of committing crimes |
| [DaedalusAugsRequirement](./bitburner.bitnodemultipliers.daedalusaugsrequirement.md) | | number | Influences how many Augmentations you need in order to get invited to the Daedalus faction |
| [DefenseLevelMultiplier](./bitburner.bitnodemultipliers.defenselevelmultiplier.md) | | number | Influences how quickly the player's defense level (not exp) scales |
| [DexterityLevelMultiplier](./bitburner.bitnodemultipliers.dexteritylevelmultiplier.md) | | number | Influences how quickly the player's dexterity level (not exp) scales |
| [FactionPassiveRepGain](./bitburner.bitnodemultipliers.factionpassiverepgain.md) | | number | Influences how much rep the player gains in each faction simply by being a member. |
| [FactionWorkExpGain](./bitburner.bitnodemultipliers.factionworkexpgain.md) | | number | Influences the experience gained for each ability when the player completes work for a Faction. |
| [FactionWorkRepGain](./bitburner.bitnodemultipliers.factionworkrepgain.md) | | number | Influences how much rep the player gains when performing work for a faction. |
| [FactionWorkRepGain](./bitburner.bitnodemultipliers.factionworkrepgain.md) | | number | Influences how much rep the player gains when performing work for a faction or donating to it. |
| [FourSigmaMarketDataApiCost](./bitburner.bitnodemultipliers.foursigmamarketdataapicost.md) | | number | Influences how much it costs to unlock the stock market's 4S Market Data API |
| [FourSigmaMarketDataCost](./bitburner.bitnodemultipliers.foursigmamarketdatacost.md) | | number | Influences how much it costs to unlock the stock market's 4S Market Data (NOT API) |
| [GangSoftcap](./bitburner.bitnodemultipliers.gangsoftcap.md) | | number | Influences the respect gain and money gain of your gang. |
| [GangUniqueAugs](./bitburner.bitnodemultipliers.ganguniqueaugs.md) | | number | Percentage of unique augs that the gang has. |
| [GoPower](./bitburner.bitnodemultipliers.gopower.md) | | number | Percentage multiplier on the effect of the IPvGO rewards \* |
| [HackExpGain](./bitburner.bitnodemultipliers.hackexpgain.md) | | number | Influences the experienced gained when hacking a server. |
| [HackingLevelMultiplier](./bitburner.bitnodemultipliers.hackinglevelmultiplier.md) | | number | Influences how quickly the player's hacking level (not experience) scales |
| [HacknetNodeMoney](./bitburner.bitnodemultipliers.hacknetnodemoney.md) | | number | Influences how much money is produced by Hacknet Nodes and the hash rate of Hacknet Servers (unlocked in BitNode-9) |
| [HackingSpeedMultiplier](./bitburner.bitnodemultipliers.hackingspeedmultiplier.md) | | number | Influences how quickly the player's hack(), grow() and weaken() calls run |
| [HacknetNodeMoney](./bitburner.bitnodemultipliers.hacknetnodemoney.md) | | number | Influences how much money is produced by Hacknet Nodes. Influences the hash rate of Hacknet Servers (unlocked in BitNode-9) |
| [HomeComputerRamCost](./bitburner.bitnodemultipliers.homecomputerramcost.md) | | number | Influences how much money it costs to upgrade your home computer's RAM |
| [InfiltrationMoney](./bitburner.bitnodemultipliers.infiltrationmoney.md) | | number | Influences how much money is gained when the player infiltrates a company. |
| [InfiltrationRep](./bitburner.bitnodemultipliers.infiltrationrep.md) | | number | Influences how much rep the player can gain from factions when selling stolen documents and secrets |
| [ManualHackMoney](./bitburner.bitnodemultipliers.manualhackmoney.md) | | number | Influences how much money can be stolen from a server when the player performs a hack against it through the Terminal. |
| [ManualHackMoney](./bitburner.bitnodemultipliers.manualhackmoney.md) | | number | Influences how much money the player actually gains when they hack a server via the terminal. This is different from ScriptHackMoney. When the player hack a server via the terminal, the amount of money in that server is reduced, but they do not gain that same amount. |
| [PurchasedServerCost](./bitburner.bitnodemultipliers.purchasedservercost.md) | | number | Influence how much it costs to purchase a server |
| [PurchasedServerLimit](./bitburner.bitnodemultipliers.purchasedserverlimit.md) | | number | Influences the maximum number of purchased servers you can have |
| [PurchasedServerMaxRam](./bitburner.bitnodemultipliers.purchasedservermaxram.md) | | number | Influences the maximum allowed RAM for a purchased server |
| [PurchasedServerSoftcap](./bitburner.bitnodemultipliers.purchasedserversoftcap.md) | | number | Influences cost of any purchased server at or above 128GB |
| [PurchasedServerSoftcap](./bitburner.bitnodemultipliers.purchasedserversoftcap.md) | | number | Influence how much it costs to purchase a server |
| [RepToDonateToFaction](./bitburner.bitnodemultipliers.reptodonatetofaction.md) | | number | Influences the minimum favor the player must have with a faction before they can donate to gain rep. |
| [ScriptHackMoney](./bitburner.bitnodemultipliers.scripthackmoney.md) | | number | Influences how much the money on a server can be reduced when a script performs a hack against it. |
| [ScriptHackMoneyGain](./bitburner.bitnodemultipliers.scripthackmoneygain.md) | | number | Influences how much of the money stolen by a scripted hack will be added to the player's money. |
| [ScriptHackMoney](./bitburner.bitnodemultipliers.scripthackmoney.md) | | number | Influences how much money is stolen from a server when the player performs a hack against it. |
| [ScriptHackMoneyGain](./bitburner.bitnodemultipliers.scripthackmoneygain.md) | | number | Influences how much money the player actually gains when a script hacks a server. This is different from ScriptHackMoney. When a script hacks a server, the amount of money in that server is reduced, but the player does not gain that same amount. |
| [ServerGrowthRate](./bitburner.bitnodemultipliers.servergrowthrate.md) | | number | Influences the growth percentage per cycle against a server. |
| [ServerMaxMoney](./bitburner.bitnodemultipliers.servermaxmoney.md) | | number | Influences the maximum money that a server can grow to. |
| [ServerStartingMoney](./bitburner.bitnodemultipliers.serverstartingmoney.md) | | number | Influences the initial money that a server starts with. |
| [ServerStartingSecurity](./bitburner.bitnodemultipliers.serverstartingsecurity.md) | | number | Influences the initial security level (hackDifficulty) of a server. |
| [ServerWeakenRate](./bitburner.bitnodemultipliers.serverweakenrate.md) | | number | Influences the weaken amount per invocation against a server. |
| [StaneksGiftExtraSize](./bitburner.bitnodemultipliers.staneksgiftextrasize.md) | | number | Influences the size of the gift |
| [StaneksGiftPowerMultiplier](./bitburner.bitnodemultipliers.staneksgiftpowermultiplier.md) | | number | Influences the power of the gift |
| [StaneksGiftExtraSize](./bitburner.bitnodemultipliers.staneksgiftextrasize.md) | | number | Influences the size of the gift. |
| [StaneksGiftPowerMultiplier](./bitburner.bitnodemultipliers.staneksgiftpowermultiplier.md) | | number | Influences the power of the gift. |
| [StrengthLevelMultiplier](./bitburner.bitnodemultipliers.strengthlevelmultiplier.md) | | number | Influences how quickly the player's strength level (not exp) scales |
| [WorldDaemonDifficulty](./bitburner.bitnodemultipliers.worlddaemondifficulty.md) | | number | Influences the hacking skill required to backdoor the world daemon. |

View File

@@ -4,7 +4,7 @@
## BitNodeMultipliers.PurchasedServerSoftcap property
Influences cost of any purchased server at or above 128GB
Influence how much it costs to purchase a server
**Signature:**

View File

@@ -4,7 +4,7 @@
## BitNodeMultipliers.ScriptHackMoney property
Influences how much the money on a server can be reduced when a script performs a hack against it.
Influences how much money is stolen from a server when the player performs a hack against it.
**Signature:**

View File

@@ -4,7 +4,7 @@
## BitNodeMultipliers.ScriptHackMoneyGain property
Influences how much of the money stolen by a scripted hack will be added to the player's money.
Influences how much money the player actually gains when a script hacks a server. This is different from ScriptHackMoney. When a script hacks a server, the amount of money in that server is reduced, but the player does not gain that same amount.
**Signature:**

View File

@@ -4,7 +4,7 @@
## BitNodeMultipliers.StaneksGiftExtraSize property
Influences the size of the gift
Influences the size of the gift.
**Signature:**

View File

@@ -4,7 +4,7 @@
## BitNodeMultipliers.StaneksGiftPowerMultiplier property
Influences the power of the gift
Influences the power of the gift.
**Signature:**

View File

@@ -9,15 +9,18 @@ Get whether an action is set to autolevel.
**Signature:**
```typescript
getActionAutolevel(type: string, name: string): boolean;
getActionAutolevel(
type: BladeburnerActionType | `${BladeburnerActionType}`,
name: BladeburnerActionName | `${BladeburnerActionName}`,
): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match. |
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | Type of action. |
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | Name of action. Must be an exact match. |
**Returns:**

View File

@@ -9,15 +9,18 @@ Get action count remaining.
**Signature:**
```typescript
getActionCountRemaining(type: string, name: string): number;
getActionCountRemaining(
type: BladeburnerActionType | `${BladeburnerActionType}`,
name: BladeburnerActionName | `${BladeburnerActionName}`,
): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match. |
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | Type of action. |
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | Name of action. Must be an exact match. |
**Returns:**
@@ -31,5 +34,9 @@ RAM cost: 4 GB
Returns the remaining count of the specified action.
Note that this is meant to be used for Contracts and Operations. This function will return Infinity for actions such as Training and Field Analysis. This function will return 1 for BlackOps not yet completed regardless of whether the player has the required rank to attempt the mission or not.
Note:
- This function is meant to be used for Contracts and Operations. It returns Infinity for General actions (Training, Field Analysis, etc.). It returns 1 for BlackOps not yet completed, regardless of whether the player has the required rank to attempt the mission.
- With Contracts and Operations, the returned value is a floating-point number. The UI shows the rounded-down value.

View File

@@ -9,15 +9,18 @@ Get the current level of an action.
**Signature:**
```typescript
getActionCurrentLevel(type: string, name: string): number;
getActionCurrentLevel(
type: BladeburnerActionType | `${BladeburnerActionType}`,
name: BladeburnerActionName | `${BladeburnerActionName}`,
): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match. |
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | Type of action. |
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | Name of action. Must be an exact match. |
**Returns:**

View File

@@ -9,15 +9,19 @@ Get estimate success chance of an action.
**Signature:**
```typescript
getActionEstimatedSuccessChance(type: string, name: string, sleeveNumber?: number): [number, number];
getActionEstimatedSuccessChance(
type: BladeburnerActionType | `${BladeburnerActionType}`,
name: BladeburnerActionName | `${BladeburnerActionName}`,
sleeveNumber?: number,
): [number, number];
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match. |
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | Type of action. |
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | Name of action. Must be an exact match. |
| sleeveNumber | number | _(Optional)_ Optional. Index of the sleeve to retrieve information. |
**Returns:**
@@ -30,5 +34,5 @@ Estimated success chance for the specified action.
RAM cost: 4 GB
Returns the estimated success chance for the specified action. This chance is returned as a decimal value, NOT a percentage (e.g. if you have an estimated success chance of 80%, then this function will return 0.80, NOT 80). Returns 2 values, value\[0\] - MIN Chance, value\[1\] - MAX Chance
Returns the estimated success chance for the specified action. This chance is returned in the range 0-1. (e.g. if you have an estimated success chance of 80%, then this function will return 0.8, NOT 80). Returns 2 values, value\[0\] - MIN Chance, value\[1\] - MAX Chance

View File

@@ -9,15 +9,18 @@ Get the maximum level of an action.
**Signature:**
```typescript
getActionMaxLevel(type: string, name: string): number;
getActionMaxLevel(
type: BladeburnerActionType | `${BladeburnerActionType}`,
name: BladeburnerActionName | `${BladeburnerActionName}`,
): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match. |
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | Type of action. |
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | Name of action. Must be an exact match. |
**Returns:**

View File

@@ -9,15 +9,19 @@ Get the reputation gain of an action.
**Signature:**
```typescript
getActionRepGain(type: string, name: string, level?: number): number;
getActionRepGain(
type: BladeburnerActionType | `${BladeburnerActionType}`,
name: BladeburnerActionName | `${BladeburnerActionName}`,
level?: number,
): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match. |
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | Type of action. |
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | Name of action. Must be an exact match. |
| level | number | _(Optional)_ Optional number. Action level at which to calculate the gain. Will be the action's current level if not given. |
**Returns:**

View File

@@ -9,15 +9,18 @@ Get action successes.
**Signature:**
```typescript
getActionSuccesses(type: string, name: string): number;
getActionSuccesses(
type: BladeburnerActionType | `${BladeburnerActionType}`,
name: BladeburnerActionName | `${BladeburnerActionName}`,
): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match. |
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | Type of action. |
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | Name of action. Must be an exact match. |
**Returns:**

View File

@@ -9,15 +9,18 @@ Get the time to complete an action.
**Signature:**
```typescript
getActionTime(type: string, name: string): number;
getActionTime(
type: BladeburnerActionType | `${BladeburnerActionType}`,
name: BladeburnerActionName | `${BladeburnerActionName}`,
): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match. |
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | Type of action. |
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | Name of action. Must be an exact match. |
**Returns:**

View File

@@ -9,17 +9,17 @@ List all black ops.
**Signature:**
```typescript
getBlackOpNames(): string[];
getBlackOpNames(): BladeburnerBlackOpName[];
```
**Returns:**
string\[\]
[BladeburnerBlackOpName](./bitburner.bladeburnerblackopname.md)<!-- -->\[\]
Array of strings containing the names of all Bladeburner Black Ops.
## Remarks
RAM cost: 0.4 GB
RAM cost: 0 GB
Returns an array of strings containing the names of all Bladeburner Black Ops.

View File

@@ -9,14 +9,14 @@ Get black op required rank.
**Signature:**
```typescript
getBlackOpRank(name: string): number;
getBlackOpRank(name: BladeburnerBlackOpName): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| name | string | Name of BlackOp. Must be an exact match. |
| name | [BladeburnerBlackOpName](./bitburner.bladeburnerblackopname.md) | Name of BlackOp. Must be an exact match. |
**Returns:**

View File

@@ -9,17 +9,17 @@ List all contracts.
**Signature:**
```typescript
getContractNames(): string[];
getContractNames(): BladeburnerContractName[];
```
**Returns:**
string\[\]
[BladeburnerContractName](./bitburner.bladeburnercontractname.md)<!-- -->\[\]
Array of strings containing the names of all Bladeburner contracts.
## Remarks
RAM cost: 0.4 GB
RAM cost: 0 GB
Returns an array of strings containing the names of all Bladeburner contracts.

View File

@@ -9,17 +9,17 @@ List all general actions.
**Signature:**
```typescript
getGeneralActionNames(): string[];
getGeneralActionNames(): BladeburnerGeneralActionName[];
```
**Returns:**
string\[\]
[BladeburnerGeneralActionName](./bitburner.bladeburnergeneralactionname.md)<!-- -->\[\]
Array of strings containing the names of all general Bladeburner actions.
## Remarks
RAM cost: 0.4 GB
RAM cost: 0 GB
Returns an array of strings containing the names of all general Bladeburner actions.

View File

@@ -9,11 +9,11 @@ Get an object with the name and rank requirement of the next BlackOp that can be
**Signature:**
```typescript
getNextBlackOp(): { name: string; rank: number } | null;
getNextBlackOp(): { name: BladeburnerBlackOpName; rank: number } | null;
```
**Returns:**
{ name: string; rank: number } \| null
{ name: [BladeburnerBlackOpName](./bitburner.bladeburnerblackopname.md)<!-- -->; rank: number } \| null
An object with the `.name` and `.rank` properties of the available BlackOp, or `null`<!-- -->.

View File

@@ -9,17 +9,17 @@ List all operations.
**Signature:**
```typescript
getOperationNames(): string[];
getOperationNames(): BladeburnerOperationName[];
```
**Returns:**
string\[\]
[BladeburnerOperationName](./bitburner.bladeburneroperationname.md)<!-- -->\[\]
Array of strings containing the names of all Bladeburner operations.
## Remarks
RAM cost: 0.4 GB
RAM cost: 0 GB
Returns an array of strings containing the names of all Bladeburner operations.

View File

@@ -9,14 +9,14 @@ Get skill level.
**Signature:**
```typescript
getSkillLevel(skillName: string): number;
getSkillLevel(skillName: BladeburnerSkillName | `${BladeburnerSkillName}`): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| skillName | string | Name of skill. Case-sensitive and must be an exact match. |
| skillName | [BladeburnerSkillName](./bitburner.bladeburnerskillname.md) \| \`${[BladeburnerSkillName](./bitburner.bladeburnerskillname.md)<!-- -->}\` | Name of skill. Case-sensitive and must be an exact match. |
**Returns:**

View File

@@ -9,17 +9,17 @@ List all skills.
**Signature:**
```typescript
getSkillNames(): string[];
getSkillNames(): BladeburnerSkillName[];
```
**Returns:**
string\[\]
[BladeburnerSkillName](./bitburner.bladeburnerskillname.md)<!-- -->\[\]
Array of strings containing the names of all general Bladeburner skills.
## Remarks
RAM cost: 0.4 GB
RAM cost: 0 GB
Returns an array of strings containing the names of all general Bladeburner skills.

View File

@@ -9,14 +9,14 @@ Get cost to upgrade skill.
**Signature:**
```typescript
getSkillUpgradeCost(skillName: string, count?: number): number;
getSkillUpgradeCost(skillName: BladeburnerSkillName | `${BladeburnerSkillName}`, count?: number): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| skillName | string | Name of skill. Case-sensitive and must be an exact match. |
| skillName | [BladeburnerSkillName](./bitburner.bladeburnerskillname.md) \| \`${[BladeburnerSkillName](./bitburner.bladeburnerskillname.md)<!-- -->}\` | Name of skill. Case-sensitive and must be an exact match. |
| count | number | _(Optional)_ Number of times to upgrade the skill. Defaults to 1 if not specified. |
**Returns:**
@@ -31,5 +31,11 @@ RAM cost: 4 GB
This function returns the number of skill points needed to upgrade the specified skill the specified number of times.
The function returns Infinity if the sum of the current level and count exceeds the maximum level.
The function may return 0 or Infinity in special cases:
- Return 0 if the current skill level is too high and the specified count is too small. In normal situations, you don't need to worry about this case. It only happens when involved numbers surpass Number.MAX\_SAFE\_INTEGER and be affected by the floating-point inaccuracy.
- Return Infinity if the sum of the current level and count exceeds the maximum level.
[skillMaxUpgradeCount](./bitburner.bladeburnerformulas.skillmaxupgradecount.md) is the inverse function of this one.

View File

@@ -9,15 +9,18 @@ Get team size.
**Signature:**
```typescript
getTeamSize(type?: string, name?: string): number;
getTeamSize(
type?: BladeburnerActionType | `${BladeburnerActionType}`,
name?: BladeburnerActionName | `${BladeburnerActionName}`,
): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | _(Optional)_ Type of action. |
| name | string | _(Optional)_ Name of action. Must be an exact match. |
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | _(Optional)_ Type of action. |
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | _(Optional)_ Name of action. Must be an exact match. |
**Returns:**

View File

@@ -23,6 +23,10 @@ RAM cost: 4 GB
Attempts to join the Bladeburner division.
Requirements: All combat stats must be at least level 100.
If you have SF 7.3, you will immediately receive "The Blade's Simulacrum" augmentation and won't be able to accept Stanek's Gift after joining. If you want to accept Stanek's Gift, you must do that before calling this API.
Returns true if you successfully join the Bladeburner division, or if you are already a member.
Returns false otherwise.

View File

@@ -9,15 +9,19 @@ Set an action autolevel.
**Signature:**
```typescript
setActionAutolevel(type: string, name: string, autoLevel: boolean): void;
setActionAutolevel(
type: BladeburnerActionType | `${BladeburnerActionType}`,
name: BladeburnerActionName | `${BladeburnerActionName}`,
autoLevel: boolean,
): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match. |
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | Type of action. |
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | Name of action. Must be an exact match. |
| autoLevel | boolean | Whether or not to autolevel this action |
**Returns:**

View File

@@ -9,15 +9,19 @@ Set the level of an action.
**Signature:**
```typescript
setActionLevel(type: string, name: string, level: number): void;
setActionLevel(
type: BladeburnerActionType | `${BladeburnerActionType}`,
name: BladeburnerActionName | `${BladeburnerActionName}`,
level: number,
): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match. |
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | Type of action. |
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | Name of action. Must be an exact match. |
| level | number | Level to set this action to. |
**Returns:**

View File

@@ -9,16 +9,20 @@ Set team size.
**Signature:**
```typescript
setTeamSize(type: string, name: string, size: number): number;
setTeamSize(
type: BladeburnerActionType | `${BladeburnerActionType}`,
name: BladeburnerActionName | `${BladeburnerActionName}`,
size: number,
): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match. |
| size | number | Number of team members to set. Will be converted using Math.round(). |
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | Type of action. |
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | Name of action. Must be an exact match. |
| size | number | Number of team members to set. Must be a non-negative integer. |
**Returns:**

View File

@@ -9,15 +9,18 @@ Start an action.
**Signature:**
```typescript
startAction(type: string, name: string): boolean;
startAction(
type: BladeburnerActionType | `${BladeburnerActionType}`,
name: BladeburnerActionName | `${BladeburnerActionName}`,
): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match |
| type | [BladeburnerActionType](./bitburner.bladeburneractiontype.md) \| \`${[BladeburnerActionType](./bitburner.bladeburneractiontype.md)<!-- -->}\` | Type of action. |
| name | [BladeburnerActionName](./bitburner.bladeburneractionname.md) \| \`${[BladeburnerActionName](./bitburner.bladeburneractionname.md)<!-- -->}\` | Name of action. Must be an exact match |
**Returns:**

View File

@@ -9,14 +9,14 @@ Upgrade skill.
**Signature:**
```typescript
upgradeSkill(skillName: string, count?: number): boolean;
upgradeSkill(skillName: BladeburnerSkillName | `${BladeburnerSkillName}`, count?: number): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| skillName | string | Name of skill to be upgraded. Case-sensitive and must be an exact match. |
| skillName | [BladeburnerSkillName](./bitburner.bladeburnerskillname.md) \| \`${[BladeburnerSkillName](./bitburner.bladeburnerskillname.md)<!-- -->}\` | Name of skill to be upgraded. Case-sensitive and must be an exact match. |
| count | number | _(Optional)_ Number of times to upgrade the skill. Defaults to 1 if not specified. |
**Returns:**

View File

@@ -0,0 +1,18 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [BladeburnerActionName](./bitburner.bladeburneractionname.md)
## BladeburnerActionName type
**Signature:**
```typescript
export type BladeburnerActionName =
| BladeburnerGeneralActionName
| BladeburnerContractName
| BladeburnerOperationName
| BladeburnerBlackOpName;
```
**References:** [BladeburnerGeneralActionName](./bitburner.bladeburnergeneralactionname.md)<!-- -->, [BladeburnerContractName](./bitburner.bladeburnercontractname.md)<!-- -->, [BladeburnerOperationName](./bitburner.bladeburneroperationname.md)<!-- -->, [BladeburnerBlackOpName](./bitburner.bladeburnerblackopname.md)

View File

@@ -0,0 +1,23 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [BladeburnerActionType](./bitburner.bladeburneractiontype.md)
## BladeburnerActionType enum
Action types of Bladeburner
**Signature:**
```typescript
declare enum BladeburnerActionType
```
## Enumeration Members
| Member | Value | Description |
| --- | --- | --- |
| BlackOp | <code>&quot;Black Operations&quot;</code> | |
| Contract | <code>&quot;Contracts&quot;</code> | |
| General | <code>&quot;General&quot;</code> | |
| Operation | <code>&quot;Operations&quot;</code> | |

View File

@@ -0,0 +1,16 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [BladeburnerActionTypeForSleeve](./bitburner.bladeburneractiontypeforsleeve.md)
## BladeburnerActionTypeForSleeve type
**Signature:**
```typescript
export type BladeburnerActionTypeForSleeve =
| Exclude<BladeburnerGeneralActionName, BladeburnerGeneralActionName.InciteViolence>
| SpecialBladeburnerActionTypeForSleeve;
```
**References:** [BladeburnerGeneralActionName](./bitburner.bladeburnergeneralactionname.md)<!-- -->, [BladeburnerGeneralActionName.InciteViolence](./bitburner.bladeburnergeneralactionname.md)<!-- -->, [SpecialBladeburnerActionTypeForSleeve](./bitburner.specialbladeburneractiontypeforsleeve.md)

View File

@@ -0,0 +1,40 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [BladeburnerBlackOpName](./bitburner.bladeburnerblackopname.md)
## BladeburnerBlackOpName enum
Black Operation names of Bladeburner
**Signature:**
```typescript
declare enum BladeburnerBlackOpName
```
## Enumeration Members
| Member | Value | Description |
| --- | --- | --- |
| OperationAnnihilus | <code>&quot;Operation Annihilus&quot;</code> | |
| OperationArchangel | <code>&quot;Operation Archangel&quot;</code> | |
| OperationAres | <code>&quot;Operation Ares&quot;</code> | |
| OperationCenturion | <code>&quot;Operation Centurion&quot;</code> | |
| OperationDaedalus | <code>&quot;Operation Daedalus&quot;</code> | |
| OperationDeckard | <code>&quot;Operation Deckard&quot;</code> | |
| OperationHyron | <code>&quot;Operation Hyron&quot;</code> | |
| OperationIonStorm | <code>&quot;Operation Ion Storm&quot;</code> | |
| OperationJuggernaut | <code>&quot;Operation Juggernaut&quot;</code> | |
| OperationK | <code>&quot;Operation K&quot;</code> | |
| OperationMorpheus | <code>&quot;Operation Morpheus&quot;</code> | |
| OperationRedDragon | <code>&quot;Operation Red Dragon&quot;</code> | |
| OperationShoulderOfOrion | <code>&quot;Operation Shoulder of Orion&quot;</code> | |
| OperationTitan | <code>&quot;Operation Titan&quot;</code> | |
| OperationTyphoon | <code>&quot;Operation Typhoon&quot;</code> | |
| OperationTyrell | <code>&quot;Operation Tyrell&quot;</code> | |
| OperationUltron | <code>&quot;Operation Ultron&quot;</code> | |
| OperationVindictus | <code>&quot;Operation Vindictus&quot;</code> | |
| OperationWallace | <code>&quot;Operation Wallace&quot;</code> | |
| OperationX | <code>&quot;Operation X&quot;</code> | |
| OperationZero | <code>&quot;Operation Zero&quot;</code> | |

View File

@@ -0,0 +1,22 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [BladeburnerContractName](./bitburner.bladeburnercontractname.md)
## BladeburnerContractName enum
Contract names of Bladeburner
**Signature:**
```typescript
declare enum BladeburnerContractName
```
## Enumeration Members
| Member | Value | Description |
| --- | --- | --- |
| BountyHunter | <code>&quot;Bounty Hunter&quot;</code> | |
| Retirement | <code>&quot;Retirement&quot;</code> | |
| Tracking | <code>&quot;Tracking&quot;</code> | |

View File

@@ -9,16 +9,20 @@ Calculate the number of times that you can upgrade a skill.
**Signature:**
```typescript
skillMaxUpgradeCount(name: string, level: number, skillPoints: number): number;
skillMaxUpgradeCount(
name: BladeburnerSkillName | `${BladeburnerSkillName}`,
level: number,
skillPoints: number,
): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| name | string | Skill name. It's case-sensitive and must be an exact match. |
| name | [BladeburnerSkillName](./bitburner.bladeburnerskillname.md) \| \`${[BladeburnerSkillName](./bitburner.bladeburnerskillname.md)<!-- -->}\` | Skill name. It's case-sensitive and must be an exact match. |
| level | number | Skill level. It must be a non-negative number. |
| skillPoints | number | Number of skill points to upgrade the skill. It must be a positive number. |
| skillPoints | number | Number of skill points to upgrade the skill. It must be a non-negative number. |
**Returns:**

View File

@@ -0,0 +1,25 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [BladeburnerGeneralActionName](./bitburner.bladeburnergeneralactionname.md)
## BladeburnerGeneralActionName enum
General action names of Bladeburner
**Signature:**
```typescript
declare enum BladeburnerGeneralActionName
```
## Enumeration Members
| Member | Value | Description |
| --- | --- | --- |
| Diplomacy | <code>&quot;Diplomacy&quot;</code> | |
| FieldAnalysis | <code>&quot;Field Analysis&quot;</code> | |
| HyperbolicRegen | <code>&quot;Hyperbolic Regeneration Chamber&quot;</code> | |
| InciteViolence | <code>&quot;Incite Violence&quot;</code> | |
| Recruitment | <code>&quot;Recruitment&quot;</code> | |
| Training | <code>&quot;Training&quot;</code> | |

View File

@@ -0,0 +1,25 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [BladeburnerOperationName](./bitburner.bladeburneroperationname.md)
## BladeburnerOperationName enum
Operation names of Bladeburner
**Signature:**
```typescript
declare enum BladeburnerOperationName
```
## Enumeration Members
| Member | Value | Description |
| --- | --- | --- |
| Assassination | <code>&quot;Assassination&quot;</code> | |
| Investigation | <code>&quot;Investigation&quot;</code> | |
| Raid | <code>&quot;Raid&quot;</code> | |
| StealthRetirement | <code>&quot;Stealth Retirement Operation&quot;</code> | |
| Sting | <code>&quot;Sting Operation&quot;</code> | |
| Undercover | <code>&quot;Undercover Operation&quot;</code> | |

View File

@@ -0,0 +1,31 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [BladeburnerSkillName](./bitburner.bladeburnerskillname.md)
## BladeburnerSkillName enum
Skill names type of Bladeburner
**Signature:**
```typescript
declare enum BladeburnerSkillName
```
## Enumeration Members
| Member | Value | Description |
| --- | --- | --- |
| BladesIntuition | <code>&quot;Blade's Intuition&quot;</code> | |
| Cloak | <code>&quot;Cloak&quot;</code> | |
| CybersEdge | <code>&quot;Cyber's Edge&quot;</code> | |
| Datamancer | <code>&quot;Datamancer&quot;</code> | |
| DigitalObserver | <code>&quot;Digital Observer&quot;</code> | |
| EvasiveSystem | <code>&quot;Evasive System&quot;</code> | |
| HandsOfMidas | <code>&quot;Hands of Midas&quot;</code> | |
| Hyperdrive | <code>&quot;Hyperdrive&quot;</code> | |
| Overclock | <code>&quot;Overclock&quot;</code> | |
| Reaper | <code>&quot;Reaper&quot;</code> | |
| ShortCircuit | <code>&quot;Short-Circuit&quot;</code> | |
| Tracer | <code>&quot;Tracer&quot;</code> | |

View File

@@ -9,14 +9,14 @@ Attempts a coding contract, returning a reward string on success or empty string
**Signature:**
```typescript
attempt(answer: string | number | any[], filename: string, host?: string): string;
attempt(answer: any, filename: string, host?: string): string;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| answer | string \| number \| any\[\] | Attempted solution for the contract. |
| answer | any | Attempted solution for the contract. This can be a string formatted like submitting manually, or the answer in the format of the specific contract type. |
| filename | string | Filename of the contract. |
| host | string | _(Optional)_ Hostname of the server containing the contract. Optional. Defaults to current server if not provided. |
@@ -36,7 +36,9 @@ Attempts to solve the Coding Contract with the provided solution.
```js
const reward = ns.codingcontract.attempt(yourSolution, filename, hostname);
const reward = ns.codingcontract.attempt("[solution, as, a, string]", filename, hostname);
// or
const reward = ns.codingcontract.attempt(["answer", "as", "an", "array"], filename, hostname);
if (reward) {
ns.tprint(`Contract solved successfully! Reward: ${reward}`);
} else {

View File

@@ -0,0 +1,44 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CodingContract](./bitburner.codingcontract.md) &gt; [getContract](./bitburner.codingcontract.getcontract.md)
## CodingContract.getContract() method
Get various data about a specific contract.
**Signature:**
```typescript
getContract(filename: string, host?: string): CodingContractObject;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| filename | string | Filename of the contract. |
| host | string | _(Optional)_ Host of the server containing the contract. Optional. Default to the current server if not provided. |
**Returns:**
[CodingContractObject](./bitburner.codingcontractobject.md)
An object containing various data about the contract specified.
## Remarks
RAM cost: 15 GB
The returned object includes the type, data, description as well as methods for getting the number of tries remaining and submitting your answer. Depending on the type of the contract, the data is typed differently. Using type-narrowing, you can get the correct type of the data:
## Example
```js
const contract = ns.codingcontract.getContract(fileName, hostName);
if (contract.type === ns.enums.CodingContractName.FindLargestPrimeFactor) {
const data = contract.data;
// ^? data: number
}
```

View File

@@ -9,7 +9,7 @@ Get the type of a coding contract.
**Signature:**
```typescript
getContractType(filename: string, host?: string): string;
getContractType(filename: string, host?: string): `${CodingContractName}`;
```
## Parameters
@@ -21,7 +21,7 @@ getContractType(filename: string, host?: string): string;
**Returns:**
string
\`${[CodingContractName](./bitburner.codingcontractname.md)<!-- -->}\`
Name describing the type of problem posed by the Coding Contract.

View File

@@ -9,13 +9,13 @@ List all contract types.
**Signature:**
```typescript
getContractTypes(): string[];
getContractTypes(): `${CodingContractName}`[];
```
**Returns:**
string\[\]
\`${[CodingContractName](./bitburner.codingcontractname.md)<!-- -->}\`\[\]
## Remarks
RAM cost: 2 GB
RAM cost: 0 GB

View File

@@ -9,7 +9,7 @@ Get the input data.
**Signature:**
```typescript
getData(filename: string, host?: string): CodingContractData;
getData(filename: string, host?: string): any;
```
## Parameters
@@ -21,7 +21,7 @@ getData(filename: string, host?: string): CodingContractData;
**Returns:**
[CodingContractData](./bitburner.codingcontractdata.md)
any
The specified contracts data, data type depends on contract type.

View File

@@ -18,6 +18,7 @@ export interface CodingContract
| --- | --- |
| [attempt(answer, filename, host)](./bitburner.codingcontract.attempt.md) | Attempts a coding contract, returning a reward string on success or empty string on failure. |
| [createDummyContract(type)](./bitburner.codingcontract.createdummycontract.md) | Generate a dummy contract. |
| [getContract(filename, host)](./bitburner.codingcontract.getcontract.md) | Get various data about a specific contract. |
| [getContractType(filename, host)](./bitburner.codingcontract.getcontracttype.md) | Get the type of a coding contract. |
| [getContractTypes()](./bitburner.codingcontract.getcontracttypes.md) | List all contract types. |
| [getData(filename, host)](./bitburner.codingcontract.getdata.md) | Get the input data. |

View File

@@ -1,13 +0,0 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CodingContractData](./bitburner.codingcontractdata.md)
## CodingContractData type
Coding contract data will differ depending on coding contract.
**Signature:**
```typescript
type CodingContractData = any;
```

View File

@@ -0,0 +1,45 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CodingContractName](./bitburner.codingcontractname.md)
## CodingContractName enum
**Signature:**
```typescript
declare enum CodingContractName
```
## Enumeration Members
| Member | Value | Description |
| --- | --- | --- |
| AlgorithmicStockTraderI | <code>&quot;Algorithmic Stock Trader I&quot;</code> | |
| AlgorithmicStockTraderII | <code>&quot;Algorithmic Stock Trader II&quot;</code> | |
| AlgorithmicStockTraderIII | <code>&quot;Algorithmic Stock Trader III&quot;</code> | |
| AlgorithmicStockTraderIV | <code>&quot;Algorithmic Stock Trader IV&quot;</code> | |
| ArrayJumpingGame | <code>&quot;Array Jumping Game&quot;</code> | |
| ArrayJumpingGameII | <code>&quot;Array Jumping Game II&quot;</code> | |
| CompressionIIILZCompression | <code>&quot;Compression III: LZ Compression&quot;</code> | |
| CompressionIILZDecompression | <code>&quot;Compression II: LZ Decompression&quot;</code> | |
| CompressionIRLECompression | <code>&quot;Compression I: RLE Compression&quot;</code> | |
| EncryptionICaesarCipher | <code>&quot;Encryption I: Caesar Cipher&quot;</code> | |
| EncryptionIIVigenereCipher | <code>&quot;Encryption II: Vigenère Cipher&quot;</code> | |
| FindAllValidMathExpressions | <code>&quot;Find All Valid Math Expressions&quot;</code> | |
| FindLargestPrimeFactor | <code>&quot;Find Largest Prime Factor&quot;</code> | |
| GenerateIPAddresses | <code>&quot;Generate IP Addresses&quot;</code> | |
| HammingCodesEncodedBinaryToInteger | <code>&quot;HammingCodes: Encoded Binary to Integer&quot;</code> | |
| HammingCodesIntegerToEncodedBinary | <code>&quot;HammingCodes: Integer to Encoded Binary&quot;</code> | |
| MergeOverlappingIntervals | <code>&quot;Merge Overlapping Intervals&quot;</code> | |
| MinimumPathSumInATriangle | <code>&quot;Minimum Path Sum in a Triangle&quot;</code> | |
| Proper2ColoringOfAGraph | <code>&quot;Proper 2-Coloring of a Graph&quot;</code> | |
| SanitizeParenthesesInExpression | <code>&quot;Sanitize Parentheses in Expression&quot;</code> | |
| ShortestPathInAGrid | <code>&quot;Shortest Path in a Grid&quot;</code> | |
| SpiralizeMatrix | <code>&quot;Spiralize Matrix&quot;</code> | |
| SquareRoot | <code>&quot;Square Root&quot;</code> | |
| SubarrayWithMaximumSum | <code>&quot;Subarray with Maximum Sum&quot;</code> | |
| TotalWaysToSum | <code>&quot;Total Ways to Sum&quot;</code> | |
| TotalWaysToSumII | <code>&quot;Total Ways to Sum II&quot;</code> | |
| UniquePathsInAGridI | <code>&quot;Unique Paths in a Grid I&quot;</code> | |
| UniquePathsInAGridII | <code>&quot;Unique Paths in a Grid II&quot;</code> | |

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; [CodingContractObject](./bitburner.codingcontractobject.md)
## CodingContractObject type
**Signature:**
```typescript
export type CodingContractObject = {
[T in keyof CodingContractSignatures]: {
type: T;
data: CodingContractSignatures[T][0];
submit: (answer: CodingContractSignatures[T][1] | string) => string;
description: string;
numTriesRemaining: () => number;
};
}[keyof CodingContractSignatures];
```
**References:** [CodingContractSignatures](./bitburner.codingcontractsignatures.md)

View File

@@ -0,0 +1,42 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CodingContractSignatures](./bitburner.codingcontractsignatures.md)
## CodingContractSignatures type
**Signature:**
```typescript
export type CodingContractSignatures = {
[CodingContractName.FindLargestPrimeFactor]: [number, number];
[CodingContractName.SubarrayWithMaximumSum]: [number[], number];
[CodingContractName.TotalWaysToSum]: [number, number];
[CodingContractName.TotalWaysToSumII]: [[number, number[]], number];
[CodingContractName.SpiralizeMatrix]: [number[][], number[]];
[CodingContractName.ArrayJumpingGame]: [number[], 1 | 0];
[CodingContractName.ArrayJumpingGameII]: [number[], number];
[CodingContractName.MergeOverlappingIntervals]: [[number, number][], [number, number][]];
[CodingContractName.GenerateIPAddresses]: [string, string[]];
[CodingContractName.AlgorithmicStockTraderI]: [number[], number];
[CodingContractName.AlgorithmicStockTraderII]: [number[], number];
[CodingContractName.AlgorithmicStockTraderIII]: [number[], number];
[CodingContractName.AlgorithmicStockTraderIV]: [[number, number[]], number];
[CodingContractName.MinimumPathSumInATriangle]: [number[][], number];
[CodingContractName.UniquePathsInAGridI]: [[number, number], number];
[CodingContractName.UniquePathsInAGridII]: [(1 | 0)[][], number];
[CodingContractName.ShortestPathInAGrid]: [(1 | 0)[][], string];
[CodingContractName.SanitizeParenthesesInExpression]: [string, string[]];
[CodingContractName.FindAllValidMathExpressions]: [[string, number], string[]];
[CodingContractName.HammingCodesIntegerToEncodedBinary]: [number, string];
[CodingContractName.HammingCodesEncodedBinaryToInteger]: [string, number];
[CodingContractName.Proper2ColoringOfAGraph]: [[number, [number, number][]], (1 | 0)[]];
[CodingContractName.CompressionIRLECompression]: [string, string];
[CodingContractName.CompressionIILZDecompression]: [string, string];
[CodingContractName.CompressionIIILZCompression]: [string, string];
[CodingContractName.EncryptionICaesarCipher]: [[string, number], string];
[CodingContractName.EncryptionIIVigenereCipher]: [[string, string], string];
[CodingContractName.SquareRoot]: [bigint, bigint, [string, string]];
};
```
**References:** [CodingContractName.FindLargestPrimeFactor](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.SubarrayWithMaximumSum](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.TotalWaysToSum](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.TotalWaysToSumII](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.SpiralizeMatrix](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.ArrayJumpingGame](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.ArrayJumpingGameII](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.MergeOverlappingIntervals](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.GenerateIPAddresses](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.AlgorithmicStockTraderI](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.AlgorithmicStockTraderII](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.AlgorithmicStockTraderIII](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.AlgorithmicStockTraderIV](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.MinimumPathSumInATriangle](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.UniquePathsInAGridI](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.UniquePathsInAGridII](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.ShortestPathInAGrid](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.SanitizeParenthesesInExpression](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.FindAllValidMathExpressions](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.HammingCodesIntegerToEncodedBinary](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.HammingCodesEncodedBinaryToInteger](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.Proper2ColoringOfAGraph](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.CompressionIRLECompression](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.CompressionIILZDecompression](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.CompressionIIILZCompression](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.EncryptionICaesarCipher](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.EncryptionIIVigenereCipher](./bitburner.codingcontractname.md)<!-- -->, [CodingContractName.SquareRoot](./bitburner.codingcontractname.md)

View File

@@ -1,11 +0,0 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CompanyWorkTask](./bitburner.companyworktask.md) &gt; [cyclesWorked](./bitburner.companyworktask.cyclesworked.md)
## CompanyWorkTask.cyclesWorked property
**Signature:**
```typescript
cyclesWorked: number;
```

View File

@@ -9,8 +9,9 @@ Company Work
**Signature:**
```typescript
export interface CompanyWorkTask
export interface CompanyWorkTask extends BaseTask
```
**Extends:** [BaseTask](./bitburner.basetask.md)
## Remarks
@@ -21,6 +22,5 @@ An object representing the current work for a company
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [companyName](./bitburner.companyworktask.companyname.md) | | [CompanyName](./bitburner.companyname.md) | |
| [cyclesWorked](./bitburner.companyworktask.cyclesworked.md) | | number | |
| [type](./bitburner.companyworktask.type.md) | | "COMPANY" | |

View File

@@ -4,7 +4,13 @@
## Corporation.bribe() method
Bribe a faction.
Bribe a faction. You must satisfy these conditions:
- The corporation valuation must be greater than or equal to a threshold. You can use [getCorporation](./bitburner.corporation.getcorporation.md) and [getConstants](./bitburner.corporation.getconstants.md) to get this information.
- You must be a member of the specified faction.
- The specified faction must offer at least 1 type of work. You can use [getFactionWorkTypes](./bitburner.singularity.getfactionworktypes.md) to get the list of work types of a faction.
**Signature:**

View File

@@ -0,0 +1,30 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Corporation](./bitburner.corporation.md) &gt; [canCreateCorporation](./bitburner.corporation.cancreatecorporation.md)
## Corporation.canCreateCorporation() method
Return whether the player can create a corporation. Does not require API access.
**Signature:**
```typescript
canCreateCorporation(selfFund: boolean): CreatingCorporationCheckResult;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| selfFund | boolean | true if you want to self-fund, false otherwise |
**Returns:**
[CreatingCorporationCheckResult](./bitburner.creatingcorporationcheckresult.md)
Result of the check
## Remarks
RAM cost: 0 GB

View File

@@ -4,7 +4,11 @@
## Corporation.createCorporation() method
Create a Corporation.
Create a Corporation. You should use [canCreateCorporation](./bitburner.corporation.cancreatecorporation.md) to check if you are unsure you can do it, because it throws an error in these cases:
- Use seed money outside BitNode 3.
- Be in a BitNode that has CorporationSoftcap (a BitNode modifier) less than 0.15.
**Signature:**
@@ -16,7 +20,7 @@ createCorporation(corporationName: string, selfFund: boolean): boolean;
| Parameter | Type | Description |
| --- | --- | --- |
| corporationName | string | Name of the corporation |
| corporationName | string | Name of the corporation. It must be a non-empty string. |
| selfFund | boolean | If you want to self-fund. Defaults to true, false will only work in BitNode 3. |
**Returns:**
@@ -29,9 +33,3 @@ true if created and false if not
RAM cost: 20 GB
This function throws an error if:
- Try to self-fund outside BitNode 3.
- Be in a BitNode that has CorporationSoftcap (a BN modifier) less than 0.15. Use [getBitNodeMultipliers](./bitburner.ns.getbitnodemultipliers.md) to get the value of this modifier.

View File

@@ -4,7 +4,7 @@
## Corporation.hasCorporation() method
Returns whether the player has a corporation. Does not require API access.
Return whether the player has a corporation. Does not require API access.
**Signature:**

View File

@@ -18,9 +18,10 @@ export interface Corporation extends WarehouseAPI, OfficeAPI
| Method | Description |
| --- | --- |
| [acceptInvestmentOffer()](./bitburner.corporation.acceptinvestmentoffer.md) | Accept the investment offer. The value of offer is based on current corporation valuation. |
| [bribe(factionName, amountCash)](./bitburner.corporation.bribe.md) | Bribe a faction. |
| [bribe(factionName, amountCash)](./bitburner.corporation.bribe.md) | <p>Bribe a faction. You must satisfy these conditions:</p><p>- The corporation valuation must be greater than or equal to a threshold. You can use [getCorporation](./bitburner.corporation.getcorporation.md) and [getConstants](./bitburner.corporation.getconstants.md) to get this information.</p><p>- You must be a member of the specified faction.</p><p>- The specified faction must offer at least 1 type of work. You can use [getFactionWorkTypes](./bitburner.singularity.getfactionworktypes.md) to get the list of work types of a faction.</p> |
| [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. |
| [canCreateCorporation(selfFund)](./bitburner.corporation.cancreatecorporation.md) | Return whether the player can create a corporation. Does not require API access. |
| [createCorporation(corporationName, selfFund)](./bitburner.corporation.createcorporation.md) | <p>Create a Corporation. You should use [canCreateCorporation](./bitburner.corporation.cancreatecorporation.md) to check if you are unsure you can do it, because it throws an error in these cases:</p><p>- Use seed money outside BitNode 3.</p><p>- Be in a BitNode that has CorporationSoftcap (a BitNode modifier) less than 0.15.</p> |
| [expandCity(divisionName, city)](./bitburner.corporation.expandcity.md) | Expand to a new city. |
| [expandIndustry(industryType, divisionName)](./bitburner.corporation.expandindustry.md) | Expand to a new industry. |
| [getBonusTime()](./bitburner.corporation.getbonustime.md) | Get bonus time. Bonus time is accumulated when the game is offline or if the game is inactive in the browser. Bonus time makes the corporation progress faster. |
@@ -34,7 +35,7 @@ export interface Corporation extends WarehouseAPI, OfficeAPI
| [getUpgradeLevel(upgradeName)](./bitburner.corporation.getupgradelevel.md) | Get the level of a levelable upgrade. |
| [getUpgradeLevelCost(upgradeName)](./bitburner.corporation.getupgradelevelcost.md) | Get the cost to unlock the next level of a levelable upgrade. |
| [goPublic(numShares)](./bitburner.corporation.gopublic.md) | Go public. |
| [hasCorporation()](./bitburner.corporation.hascorporation.md) | Returns whether the player has a corporation. Does not require API access. |
| [hasCorporation()](./bitburner.corporation.hascorporation.md) | Return whether the player has a corporation. Does not require API access. |
| [hasUnlock(upgradeName)](./bitburner.corporation.hasunlock.md) | Check if you have a one-time unlockable upgrade. |
| [issueDividends(rate)](./bitburner.corporation.issuedividends.md) | Issue dividends. |
| [issueNewShares(amount)](./bitburner.corporation.issuenewshares.md) | Issue new shares. |

View File

@@ -34,4 +34,5 @@ interface CorporationInfo
| [sharePrice](./bitburner.corporationinfo.shareprice.md) | | number | Price of the shares |
| [shareSaleCooldown](./bitburner.corporationinfo.sharesalecooldown.md) | | number | Cooldown until shares can be sold again |
| [totalShares](./bitburner.corporationinfo.totalshares.md) | | number | Total number of shares issued by this corporation. |
| [valuation](./bitburner.corporationinfo.valuation.md) | | number | Corporation valuation |

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; [CorporationInfo](./bitburner.corporationinfo.md) &gt; [valuation](./bitburner.corporationinfo.valuation.md)
## CorporationInfo.valuation property
Corporation valuation
**Signature:**
```typescript
valuation: number;
```

View File

@@ -1,11 +0,0 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CreateProgramWorkTask](./bitburner.createprogramworktask.md) &gt; [cyclesWorked](./bitburner.createprogramworktask.cyclesworked.md)
## CreateProgramWorkTask.cyclesWorked property
**Signature:**
```typescript
cyclesWorked: number;
```

View File

@@ -9,8 +9,9 @@ Create Program
**Signature:**
```typescript
export interface CreateProgramWorkTask
export interface CreateProgramWorkTask extends BaseTask
```
**Extends:** [BaseTask](./bitburner.basetask.md)
## Remarks
@@ -20,7 +21,6 @@ An object representing the status of the program being created
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [cyclesWorked](./bitburner.createprogramworktask.cyclesworked.md) | | number | |
| [programName](./bitburner.createprogramworktask.programname.md) | | string | |
| [type](./bitburner.createprogramworktask.type.md) | | "CREATE\_PROGRAM" | |

View File

@@ -0,0 +1,23 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CreatingCorporationCheckResult](./bitburner.creatingcorporationcheckresult.md)
## CreatingCorporationCheckResult enum
**Signature:**
```typescript
declare enum CreatingCorporationCheckResult
```
## Enumeration Members
| Member | Value | Description |
| --- | --- | --- |
| CorporationExists | <code>&quot;CorporationExists&quot;</code> | |
| DisabledBySoftCap | <code>&quot;DisabledBySoftCap&quot;</code> | |
| NoSf3OrDisabled | <code>&quot;NoSf3OrDisabled&quot;</code> | |
| Success | <code>&quot;Success&quot;</code> | |
| UseSeedMoneyOutsideBN3 | <code>&quot;UseSeedMoneyOutsideBN3&quot;</code> | |

View File

@@ -4,7 +4,7 @@
## CrimeStats.agility\_success\_weight property
agility level impact on success change of the crime
Impact of agility level on success chance of the crime
**Signature:**

View File

@@ -4,7 +4,7 @@
## CrimeStats.charisma\_success\_weight property
charisma level impact on success change of the crime
Impact of charisma level on success chance of the crime
**Signature:**

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