mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
Compare commits
317 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0d7767003 | ||
|
|
5d23764316 | ||
|
|
37e1f01efa | ||
|
|
61a7e30b29 | ||
|
|
b2093a2419 | ||
|
|
f6e7ef082c | ||
|
|
5d486e3914 | ||
|
|
5dc80587a7 | ||
|
|
187fbea073 | ||
|
|
282bf87022 | ||
|
|
ef803280da | ||
|
|
f69bac308c | ||
|
|
0900f46edb | ||
|
|
12d18c21f1 | ||
|
|
6d3e111ea1 | ||
|
|
1539c428bc | ||
|
|
70a083b34b | ||
|
|
41c497161f | ||
|
|
17ffabdfa5 | ||
|
|
de8c8691c2 | ||
|
|
d62a1f38ca | ||
|
|
97e9e13f12 | ||
|
|
c251a23a0e | ||
|
|
e8f9882e2d | ||
|
|
19f859ae87 | ||
|
|
47b34c8563 | ||
|
|
88fef7d8a3 | ||
|
|
e07339d016 | ||
|
|
76f614761d | ||
|
|
ae99055d5a | ||
|
|
b0165d5c2c | ||
|
|
f5b12da0fe | ||
|
|
907b0a40ba | ||
|
|
dcce966fb1 | ||
|
|
6666a176ee | ||
|
|
db74fae2b7 | ||
|
|
7f443427ea | ||
|
|
8fe0ea1615 | ||
|
|
a611c842e2 | ||
|
|
6530b43886 | ||
|
|
02c4f9c68d | ||
|
|
23ad55554e | ||
|
|
8cdafdc7b9 | ||
|
|
f16b6b92b8 | ||
|
|
f881bd1d9a | ||
|
|
ff724f3f06 | ||
|
|
4ef597bd37 | ||
|
|
c0e01f304d | ||
|
|
91b68db1fe | ||
|
|
f54f7b932c | ||
|
|
2a544bbc15 | ||
|
|
8ed83f3d37 | ||
|
|
3ba89eb388 | ||
|
|
5f29c5b043 | ||
|
|
1982e7195b | ||
|
|
6461d5f247 | ||
|
|
fed3cf1af2 | ||
|
|
05f0ba1ac6 | ||
|
|
a25ab3dd39 | ||
|
|
3eadb0d18c | ||
|
|
3bb56efb34 | ||
|
|
63d7061fd8 | ||
|
|
13990fbe4c | ||
|
|
23bc4e8804 | ||
|
|
0a4598a9a0 | ||
|
|
42a7941db7 | ||
|
|
adc39ad825 | ||
|
|
26c5bb40e3 | ||
|
|
31591da024 | ||
|
|
2dfaca3db4 | ||
|
|
905d37ef93 | ||
|
|
30075f3c07 | ||
|
|
b61e93b246 | ||
|
|
5bc9068745 | ||
|
|
c99fa448fa | ||
|
|
48bced3484 | ||
|
|
c8d2c9f769 | ||
|
|
de6b202341 | ||
|
|
72d2528e9a | ||
|
|
d6ee16cdb3 | ||
|
|
67aff2a6a0 | ||
|
|
1cc0288cd8 | ||
|
|
381310946a | ||
|
|
16022d36f4 | ||
|
|
4a452b8aca | ||
|
|
a4217b448a | ||
|
|
686bfe5aef | ||
|
|
822c55574d | ||
|
|
40c696feb1 | ||
|
|
f337de47df | ||
|
|
956e3875e9 | ||
|
|
934687d4b5 | ||
|
|
7d95400108 | ||
|
|
85cda00538 | ||
|
|
ada903f356 | ||
|
|
2965f51879 | ||
|
|
ffae0045a4 | ||
|
|
b161142796 | ||
|
|
97d248419d | ||
|
|
6c7972dc60 | ||
|
|
213c57f2f8 | ||
|
|
5301f0f378 | ||
|
|
9bf408221c | ||
|
|
f0a0d3095e | ||
|
|
1fa2c55860 | ||
|
|
faf34ad45d | ||
|
|
1a54be184e | ||
|
|
9920b6ae4d | ||
|
|
7b009991e5 | ||
|
|
93a1d6da53 | ||
|
|
e6a1c344d3 | ||
|
|
0e8dca85e1 | ||
|
|
fdb325bf66 | ||
|
|
1d31e066f0 | ||
|
|
1525e51cbb | ||
|
|
c37cdc76a4 | ||
|
|
0f9144a059 | ||
|
|
320c852386 | ||
|
|
8c19165323 | ||
|
|
5b6380a5c3 | ||
|
|
1cb2a83b4f | ||
|
|
077d8e7080 | ||
|
|
6dd9230cc5 | ||
|
|
4bae9938bf | ||
|
|
564889d3f2 | ||
|
|
0e5e20c2f1 | ||
|
|
a145ee74bc | ||
|
|
012ebb2616 | ||
|
|
3123ac9447 | ||
|
|
a8bde3e14f | ||
|
|
f49d21cd71 | ||
|
|
0c1f3756a2 | ||
|
|
7fa85a926a | ||
|
|
0d555f9347 | ||
|
|
423a6ce110 | ||
|
|
c622291eff | ||
|
|
3db190c9a0 | ||
|
|
68a436cb77 | ||
|
|
f2e014ba37 | ||
|
|
93c07ac107 | ||
|
|
43bca702c0 | ||
|
|
bcbaf3e224 | ||
|
|
ef87174e3f | ||
|
|
e3eb08470b | ||
|
|
85fa15c5a5 | ||
|
|
a6d6aa7410 | ||
|
|
bc0dc15536 | ||
|
|
b49c04d142 | ||
|
|
c2fe6108e1 | ||
|
|
40f3d6ea7b | ||
|
|
ab17adf97a | ||
|
|
bb7a1fbb22 | ||
|
|
cffd6d75a6 | ||
|
|
8aea99e5cd | ||
|
|
d75b0af6b2 | ||
|
|
e6078ab1df | ||
|
|
9c4b0c004c | ||
|
|
28da81f3f1 | ||
|
|
c49a507031 | ||
|
|
d9dba2a442 | ||
|
|
74ede7d947 | ||
|
|
1c7230a799 | ||
|
|
ff85394e02 | ||
|
|
37ddb43b82 | ||
|
|
7c732689dd | ||
|
|
bab5412fb7 | ||
|
|
b66eff0379 | ||
|
|
4137a0e522 | ||
|
|
f07c442a92 | ||
|
|
bf095ea9e3 | ||
|
|
a58eace23a | ||
|
|
933ec964cf | ||
|
|
6e1848dd79 | ||
|
|
67704f2ab0 | ||
|
|
0caeb5c5ca | ||
|
|
9efc091f8d | ||
|
|
7a4b3e23c1 | ||
|
|
9c7223f876 | ||
|
|
fdcdf0e27a | ||
|
|
b829f28f8c | ||
|
|
c686580289 | ||
|
|
1e6c9d69e2 | ||
|
|
88322a23a7 | ||
|
|
22b6458c22 | ||
|
|
3846c69204 | ||
|
|
55627d7212 | ||
|
|
faed78cf2c | ||
|
|
7d03a9ef32 | ||
|
|
6d2e106371 | ||
|
|
bb0b857f71 | ||
|
|
9d8ac65aaf | ||
|
|
294c9cbf4d | ||
|
|
05da0efc81 | ||
|
|
45a6ca6b8e | ||
|
|
596a621c62 | ||
|
|
8c4fcfe045 | ||
|
|
70a231e421 | ||
|
|
fe2c98e3cf | ||
|
|
99aeecbd0e | ||
|
|
04611a30b6 | ||
|
|
5faa418c74 | ||
|
|
d824cd4fa6 | ||
|
|
93a9475b8d | ||
|
|
75cf9c88b5 | ||
|
|
97ca8c5f5e | ||
|
|
4f84a894eb | ||
|
|
246d668951 | ||
|
|
9bba6a0a41 | ||
|
|
9013ea935a | ||
|
|
48b25d2223 | ||
|
|
5d26f4fa56 | ||
|
|
72a63b15cb | ||
|
|
cb9e281c45 | ||
|
|
40651a757d | ||
|
|
c638d858c6 | ||
|
|
e825492319 | ||
|
|
daec7482fa | ||
|
|
650cf51acb | ||
|
|
f4c2b29d40 | ||
|
|
d6874d68aa | ||
|
|
90cb8a9551 | ||
|
|
36c143b687 | ||
|
|
e3c10e9f0f | ||
|
|
60c4be0496 | ||
|
|
36eb12098f | ||
|
|
c7cf0b853b | ||
|
|
81e068ba9c | ||
|
|
e5e4e2693f | ||
|
|
772762493f | ||
|
|
56c797e23f | ||
|
|
bc02d4f92f | ||
|
|
5786d7adcb | ||
|
|
b388865317 | ||
|
|
c8183e55db | ||
|
|
f6502dd490 | ||
|
|
f7ee3a340f | ||
|
|
a12c48ed43 | ||
|
|
0bf378a1b0 | ||
|
|
b01527a9dc | ||
|
|
6df3dcdc82 | ||
|
|
ecc2d92edb | ||
|
|
810cfc8b21 | ||
|
|
f49d3b32a5 | ||
|
|
9a0400d3df | ||
|
|
d0022aac2b | ||
|
|
b72c03acf0 | ||
|
|
3ce2ae5fd7 | ||
|
|
c5e50ba327 | ||
|
|
867f79c5ab | ||
|
|
bc51733fbe | ||
|
|
8d1cfb2d97 | ||
|
|
6d8084f40e | ||
|
|
a3e1b297ca | ||
|
|
97489629d9 | ||
|
|
2e6aa8989c | ||
|
|
cc4c6d150b | ||
|
|
424ae160ba | ||
|
|
24ab173d6c | ||
|
|
cd99006c4e | ||
|
|
cace34d759 | ||
|
|
2fa8dd41ac | ||
|
|
dc328b14df | ||
|
|
b829534067 | ||
|
|
e644c0e91e | ||
|
|
3ef3821a08 | ||
|
|
ccd9118b93 | ||
|
|
4d60c833cc | ||
|
|
dad34a09dd | ||
|
|
7c3d71d21a | ||
|
|
bedd398789 | ||
|
|
32e00aff7a | ||
|
|
7513fec507 | ||
|
|
2b4410739d | ||
|
|
6c81e1ac67 | ||
|
|
b86044bcc1 | ||
|
|
cf2d9b8335 | ||
|
|
c2727b5127 | ||
|
|
53c8296baf | ||
|
|
ade92ed297 | ||
|
|
70e16bf349 | ||
|
|
21ffa5322f | ||
|
|
cde5e3f6ae | ||
|
|
f39402e8be | ||
|
|
3d7a6f70d8 | ||
|
|
dd59612121 | ||
|
|
2a5b0ca4e9 | ||
|
|
4f426e1b20 | ||
|
|
651b17739c | ||
|
|
0ce5cd35dc | ||
|
|
17e906cd76 | ||
|
|
95394b5956 | ||
|
|
47b261f520 | ||
|
|
b4f2a5c641 | ||
|
|
3750363d95 | ||
|
|
e58a7d8eaa | ||
|
|
2e42a1f781 | ||
|
|
ac0c9bd7e8 | ||
|
|
49629d1d28 | ||
|
|
028e779602 | ||
|
|
2141032432 | ||
|
|
be515cc195 | ||
|
|
329d8ca8e6 | ||
|
|
95bb6a33df | ||
|
|
7f5c4e1fe0 | ||
|
|
614bec1e13 | ||
|
|
4a3dcf8a26 | ||
|
|
8d9f63f49f | ||
|
|
818d7446be | ||
|
|
995e367432 | ||
|
|
f235513742 | ||
|
|
2563874acb | ||
|
|
94eef8ecde | ||
|
|
701c5d8e64 | ||
|
|
cacecda72f | ||
|
|
5b2a4eafcb | ||
|
|
34db6e8b26 | ||
|
|
385a9dc11d |
@@ -1,14 +1,12 @@
|
||||
node_modules/
|
||||
|
||||
.git
|
||||
.gitattributes
|
||||
.gitignore
|
||||
test/
|
||||
dist/
|
||||
.app/
|
||||
|
||||
.github
|
||||
.editorconfig
|
||||
|
||||
.dockerignore
|
||||
Dockerfile
|
||||
docker-compose.yml
|
||||
|
||||
*.md
|
||||
Quotes.txt
|
||||
netscript_tests/
|
||||
|
||||
@@ -7,6 +7,7 @@ node_modules/
|
||||
dist
|
||||
input
|
||||
assets
|
||||
coverage
|
||||
doc
|
||||
markdown
|
||||
electron
|
||||
|
||||
20
.eslintrc.js
20
.eslintrc.js
@@ -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"],
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
2
.github/workflows/title-and-dist-checks.yml
vendored
2
.github/workflows/title-and-dist-checks.yml
vendored
@@ -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
1
.gitignore
vendored
@@ -3,6 +3,7 @@
|
||||
.vscode
|
||||
Changelog.txt
|
||||
Netburner.txt
|
||||
/coverage
|
||||
/doc/build
|
||||
/node_modules
|
||||
/electron/node_modules
|
||||
|
||||
@@ -3,6 +3,7 @@ package.json
|
||||
dist
|
||||
doc/build
|
||||
doc/source
|
||||
coverage
|
||||
.build
|
||||
.package
|
||||
.app
|
||||
|
||||
50
Dockerfile
Normal file
50
Dockerfile
Normal 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;"]
|
||||
@@ -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.
|
||||
|
||||
@@ -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
12
docker-compose.yml
Normal 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
|
||||
@@ -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)"],
|
||||
|
||||
4
electron/package-lock.json
generated
4
electron/package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -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",
|
||||
|
||||
15
markdown/bitburner.autocompletedata.command.md
Normal file
15
markdown/bitburner.autocompletedata.command.md
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [AutocompleteData](./bitburner.autocompletedata.md) > [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;
|
||||
```
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
## AutocompleteData.enums property
|
||||
|
||||
Netscript Enums
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
|
||||
13
markdown/bitburner.autocompletedata.filename.md
Normal file
13
markdown/bitburner.autocompletedata.filename.md
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [AutocompleteData](./bitburner.autocompletedata.md) > [filename](./bitburner.autocompletedata.filename.md)
|
||||
|
||||
## AutocompleteData.filename property
|
||||
|
||||
The filename of the script about to be run
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
filename: string;
|
||||
```
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
## AutocompleteData.flags() method
|
||||
|
||||
Parses the flags schema on the already inputted flags
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
|
||||
13
markdown/bitburner.autocompletedata.hostname.md
Normal file
13
markdown/bitburner.autocompletedata.hostname.md
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [AutocompleteData](./bitburner.autocompletedata.md) > [hostname](./bitburner.autocompletedata.hostname.md)
|
||||
|
||||
## AutocompleteData.hostname property
|
||||
|
||||
The hostname of the server the script would be running on
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
hostname: string;
|
||||
```
|
||||
@@ -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 |
|
||||
|
||||
|
||||
13
markdown/bitburner.autocompletedata.processes.md
Normal file
13
markdown/bitburner.autocompletedata.processes.md
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [AutocompleteData](./bitburner.autocompletedata.md) > [processes](./bitburner.autocompletedata.processes.md)
|
||||
|
||||
## AutocompleteData.processes property
|
||||
|
||||
The processes running on the host
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
processes: ProcessInfo[];
|
||||
```
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
## AutocompleteData.scripts property
|
||||
|
||||
All scripts on the current server
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
## AutocompleteData.txts property
|
||||
|
||||
All text files on the current server
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
|
||||
13
markdown/bitburner.basetask.cyclesworked.md
Normal file
13
markdown/bitburner.basetask.cyclesworked.md
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [BaseTask](./bitburner.basetask.md) > [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;
|
||||
```
|
||||
20
markdown/bitburner.basetask.md
Normal file
20
markdown/bitburner.basetask.md
Normal file
@@ -0,0 +1,20 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [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. |
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
13
markdown/bitburner.bitnodemultipliers.companyworkrepgain.md
Normal file
13
markdown/bitburner.bitnodemultipliers.companyworkrepgain.md
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [BitNodeMultipliers](./bitburner.bitnodemultipliers.md) > [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;
|
||||
```
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
13
markdown/bitburner.bitnodemultipliers.crimesuccessrate.md
Normal file
13
markdown/bitburner.bitnodemultipliers.crimesuccessrate.md
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [BitNodeMultipliers](./bitburner.bitnodemultipliers.md) > [CrimeSuccessRate](./bitburner.bitnodemultipliers.crimesuccessrate.md)
|
||||
|
||||
## BitNodeMultipliers.CrimeSuccessRate property
|
||||
|
||||
Influences the success chance of committing crimes
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
CrimeSuccessRate: number;
|
||||
```
|
||||
@@ -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:**
|
||||
|
||||
|
||||
13
markdown/bitburner.bitnodemultipliers.ganguniqueaugs.md
Normal file
13
markdown/bitburner.bitnodemultipliers.ganguniqueaugs.md
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [BitNodeMultipliers](./bitburner.bitnodemultipliers.md) > [GangUniqueAugs](./bitburner.bitnodemultipliers.ganguniqueaugs.md)
|
||||
|
||||
## BitNodeMultipliers.GangUniqueAugs property
|
||||
|
||||
Percentage of unique augs that the gang has.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
GangUniqueAugs: number;
|
||||
```
|
||||
13
markdown/bitburner.bitnodemultipliers.gopower.md
Normal file
13
markdown/bitburner.bitnodemultipliers.gopower.md
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [BitNodeMultipliers](./bitburner.bitnodemultipliers.md) > [GoPower](./bitburner.bitnodemultipliers.gopower.md)
|
||||
|
||||
## BitNodeMultipliers.GoPower property
|
||||
|
||||
Percentage multiplier on the effect of the IPvGO rewards \*
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
GoPower: number;
|
||||
```
|
||||
@@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [BitNodeMultipliers](./bitburner.bitnodemultipliers.md) > [HackingSpeedMultiplier](./bitburner.bitnodemultipliers.hackingspeedmultiplier.md)
|
||||
|
||||
## BitNodeMultipliers.HackingSpeedMultiplier property
|
||||
|
||||
Influences how quickly the player's hack(), grow() and weaken() calls run
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
HackingSpeedMultiplier: number;
|
||||
```
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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. |
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
## BitNodeMultipliers.StaneksGiftExtraSize property
|
||||
|
||||
Influences the size of the gift
|
||||
Influences the size of the gift.
|
||||
|
||||
**Signature:**
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
## BitNodeMultipliers.StaneksGiftPowerMultiplier property
|
||||
|
||||
Influences the power of the gift
|
||||
Influences the power of the gift.
|
||||
|
||||
**Signature:**
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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`<!-- -->.
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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:**
|
||||
|
||||
@@ -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:**
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
18
markdown/bitburner.bladeburneractionname.md
Normal file
18
markdown/bitburner.bladeburneractionname.md
Normal file
@@ -0,0 +1,18 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [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)
|
||||
|
||||
23
markdown/bitburner.bladeburneractiontype.md
Normal file
23
markdown/bitburner.bladeburneractiontype.md
Normal file
@@ -0,0 +1,23 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [BladeburnerActionType](./bitburner.bladeburneractiontype.md)
|
||||
|
||||
## BladeburnerActionType enum
|
||||
|
||||
Action types of Bladeburner
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
declare enum BladeburnerActionType
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| BlackOp | <code>"Black Operations"</code> | |
|
||||
| Contract | <code>"Contracts"</code> | |
|
||||
| General | <code>"General"</code> | |
|
||||
| Operation | <code>"Operations"</code> | |
|
||||
|
||||
16
markdown/bitburner.bladeburneractiontypeforsleeve.md
Normal file
16
markdown/bitburner.bladeburneractiontypeforsleeve.md
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [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)
|
||||
|
||||
40
markdown/bitburner.bladeburnerblackopname.md
Normal file
40
markdown/bitburner.bladeburnerblackopname.md
Normal file
@@ -0,0 +1,40 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [BladeburnerBlackOpName](./bitburner.bladeburnerblackopname.md)
|
||||
|
||||
## BladeburnerBlackOpName enum
|
||||
|
||||
Black Operation names of Bladeburner
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
declare enum BladeburnerBlackOpName
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| OperationAnnihilus | <code>"Operation Annihilus"</code> | |
|
||||
| OperationArchangel | <code>"Operation Archangel"</code> | |
|
||||
| OperationAres | <code>"Operation Ares"</code> | |
|
||||
| OperationCenturion | <code>"Operation Centurion"</code> | |
|
||||
| OperationDaedalus | <code>"Operation Daedalus"</code> | |
|
||||
| OperationDeckard | <code>"Operation Deckard"</code> | |
|
||||
| OperationHyron | <code>"Operation Hyron"</code> | |
|
||||
| OperationIonStorm | <code>"Operation Ion Storm"</code> | |
|
||||
| OperationJuggernaut | <code>"Operation Juggernaut"</code> | |
|
||||
| OperationK | <code>"Operation K"</code> | |
|
||||
| OperationMorpheus | <code>"Operation Morpheus"</code> | |
|
||||
| OperationRedDragon | <code>"Operation Red Dragon"</code> | |
|
||||
| OperationShoulderOfOrion | <code>"Operation Shoulder of Orion"</code> | |
|
||||
| OperationTitan | <code>"Operation Titan"</code> | |
|
||||
| OperationTyphoon | <code>"Operation Typhoon"</code> | |
|
||||
| OperationTyrell | <code>"Operation Tyrell"</code> | |
|
||||
| OperationUltron | <code>"Operation Ultron"</code> | |
|
||||
| OperationVindictus | <code>"Operation Vindictus"</code> | |
|
||||
| OperationWallace | <code>"Operation Wallace"</code> | |
|
||||
| OperationX | <code>"Operation X"</code> | |
|
||||
| OperationZero | <code>"Operation Zero"</code> | |
|
||||
|
||||
22
markdown/bitburner.bladeburnercontractname.md
Normal file
22
markdown/bitburner.bladeburnercontractname.md
Normal file
@@ -0,0 +1,22 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [BladeburnerContractName](./bitburner.bladeburnercontractname.md)
|
||||
|
||||
## BladeburnerContractName enum
|
||||
|
||||
Contract names of Bladeburner
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
declare enum BladeburnerContractName
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| BountyHunter | <code>"Bounty Hunter"</code> | |
|
||||
| Retirement | <code>"Retirement"</code> | |
|
||||
| Tracking | <code>"Tracking"</code> | |
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
25
markdown/bitburner.bladeburnergeneralactionname.md
Normal file
25
markdown/bitburner.bladeburnergeneralactionname.md
Normal file
@@ -0,0 +1,25 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [BladeburnerGeneralActionName](./bitburner.bladeburnergeneralactionname.md)
|
||||
|
||||
## BladeburnerGeneralActionName enum
|
||||
|
||||
General action names of Bladeburner
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
declare enum BladeburnerGeneralActionName
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| Diplomacy | <code>"Diplomacy"</code> | |
|
||||
| FieldAnalysis | <code>"Field Analysis"</code> | |
|
||||
| HyperbolicRegen | <code>"Hyperbolic Regeneration Chamber"</code> | |
|
||||
| InciteViolence | <code>"Incite Violence"</code> | |
|
||||
| Recruitment | <code>"Recruitment"</code> | |
|
||||
| Training | <code>"Training"</code> | |
|
||||
|
||||
25
markdown/bitburner.bladeburneroperationname.md
Normal file
25
markdown/bitburner.bladeburneroperationname.md
Normal file
@@ -0,0 +1,25 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [BladeburnerOperationName](./bitburner.bladeburneroperationname.md)
|
||||
|
||||
## BladeburnerOperationName enum
|
||||
|
||||
Operation names of Bladeburner
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
declare enum BladeburnerOperationName
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| Assassination | <code>"Assassination"</code> | |
|
||||
| Investigation | <code>"Investigation"</code> | |
|
||||
| Raid | <code>"Raid"</code> | |
|
||||
| StealthRetirement | <code>"Stealth Retirement Operation"</code> | |
|
||||
| Sting | <code>"Sting Operation"</code> | |
|
||||
| Undercover | <code>"Undercover Operation"</code> | |
|
||||
|
||||
31
markdown/bitburner.bladeburnerskillname.md
Normal file
31
markdown/bitburner.bladeburnerskillname.md
Normal file
@@ -0,0 +1,31 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [BladeburnerSkillName](./bitburner.bladeburnerskillname.md)
|
||||
|
||||
## BladeburnerSkillName enum
|
||||
|
||||
Skill names type of Bladeburner
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
declare enum BladeburnerSkillName
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| BladesIntuition | <code>"Blade's Intuition"</code> | |
|
||||
| Cloak | <code>"Cloak"</code> | |
|
||||
| CybersEdge | <code>"Cyber's Edge"</code> | |
|
||||
| Datamancer | <code>"Datamancer"</code> | |
|
||||
| DigitalObserver | <code>"Digital Observer"</code> | |
|
||||
| EvasiveSystem | <code>"Evasive System"</code> | |
|
||||
| HandsOfMidas | <code>"Hands of Midas"</code> | |
|
||||
| Hyperdrive | <code>"Hyperdrive"</code> | |
|
||||
| Overclock | <code>"Overclock"</code> | |
|
||||
| Reaper | <code>"Reaper"</code> | |
|
||||
| ShortCircuit | <code>"Short-Circuit"</code> | |
|
||||
| Tracer | <code>"Tracer"</code> | |
|
||||
|
||||
@@ -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 {
|
||||
|
||||
44
markdown/bitburner.codingcontract.getcontract.md
Normal file
44
markdown/bitburner.codingcontract.getcontract.md
Normal file
@@ -0,0 +1,44 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContract](./bitburner.codingcontract.md) > [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
|
||||
}
|
||||
```
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 contract’s data, data type depends on contract type.
|
||||
|
||||
|
||||
@@ -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. |
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContractData](./bitburner.codingcontractdata.md)
|
||||
|
||||
## CodingContractData type
|
||||
|
||||
Coding contract data will differ depending on coding contract.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type CodingContractData = any;
|
||||
```
|
||||
45
markdown/bitburner.codingcontractname.md
Normal file
45
markdown/bitburner.codingcontractname.md
Normal file
@@ -0,0 +1,45 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContractName](./bitburner.codingcontractname.md)
|
||||
|
||||
## CodingContractName enum
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
declare enum CodingContractName
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| AlgorithmicStockTraderI | <code>"Algorithmic Stock Trader I"</code> | |
|
||||
| AlgorithmicStockTraderII | <code>"Algorithmic Stock Trader II"</code> | |
|
||||
| AlgorithmicStockTraderIII | <code>"Algorithmic Stock Trader III"</code> | |
|
||||
| AlgorithmicStockTraderIV | <code>"Algorithmic Stock Trader IV"</code> | |
|
||||
| ArrayJumpingGame | <code>"Array Jumping Game"</code> | |
|
||||
| ArrayJumpingGameII | <code>"Array Jumping Game II"</code> | |
|
||||
| CompressionIIILZCompression | <code>"Compression III: LZ Compression"</code> | |
|
||||
| CompressionIILZDecompression | <code>"Compression II: LZ Decompression"</code> | |
|
||||
| CompressionIRLECompression | <code>"Compression I: RLE Compression"</code> | |
|
||||
| EncryptionICaesarCipher | <code>"Encryption I: Caesar Cipher"</code> | |
|
||||
| EncryptionIIVigenereCipher | <code>"Encryption II: Vigenère Cipher"</code> | |
|
||||
| FindAllValidMathExpressions | <code>"Find All Valid Math Expressions"</code> | |
|
||||
| FindLargestPrimeFactor | <code>"Find Largest Prime Factor"</code> | |
|
||||
| GenerateIPAddresses | <code>"Generate IP Addresses"</code> | |
|
||||
| HammingCodesEncodedBinaryToInteger | <code>"HammingCodes: Encoded Binary to Integer"</code> | |
|
||||
| HammingCodesIntegerToEncodedBinary | <code>"HammingCodes: Integer to Encoded Binary"</code> | |
|
||||
| MergeOverlappingIntervals | <code>"Merge Overlapping Intervals"</code> | |
|
||||
| MinimumPathSumInATriangle | <code>"Minimum Path Sum in a Triangle"</code> | |
|
||||
| Proper2ColoringOfAGraph | <code>"Proper 2-Coloring of a Graph"</code> | |
|
||||
| SanitizeParenthesesInExpression | <code>"Sanitize Parentheses in Expression"</code> | |
|
||||
| ShortestPathInAGrid | <code>"Shortest Path in a Grid"</code> | |
|
||||
| SpiralizeMatrix | <code>"Spiralize Matrix"</code> | |
|
||||
| SquareRoot | <code>"Square Root"</code> | |
|
||||
| SubarrayWithMaximumSum | <code>"Subarray with Maximum Sum"</code> | |
|
||||
| TotalWaysToSum | <code>"Total Ways to Sum"</code> | |
|
||||
| TotalWaysToSumII | <code>"Total Ways to Sum II"</code> | |
|
||||
| UniquePathsInAGridI | <code>"Unique Paths in a Grid I"</code> | |
|
||||
| UniquePathsInAGridII | <code>"Unique Paths in a Grid II"</code> | |
|
||||
|
||||
21
markdown/bitburner.codingcontractobject.md
Normal file
21
markdown/bitburner.codingcontractobject.md
Normal file
@@ -0,0 +1,21 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [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)
|
||||
|
||||
42
markdown/bitburner.codingcontractsignatures.md
Normal file
42
markdown/bitburner.codingcontractsignatures.md
Normal file
@@ -0,0 +1,42 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [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)
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CompanyWorkTask](./bitburner.companyworktask.md) > [cyclesWorked](./bitburner.companyworktask.cyclesworked.md)
|
||||
|
||||
## CompanyWorkTask.cyclesWorked property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
cyclesWorked: number;
|
||||
```
|
||||
@@ -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" | |
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
30
markdown/bitburner.corporation.cancreatecorporation.md
Normal file
30
markdown/bitburner.corporation.cancreatecorporation.md
Normal file
@@ -0,0 +1,30 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [Corporation](./bitburner.corporation.md) > [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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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. |
|
||||
|
||||
@@ -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 |
|
||||
|
||||
|
||||
13
markdown/bitburner.corporationinfo.valuation.md
Normal file
13
markdown/bitburner.corporationinfo.valuation.md
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CorporationInfo](./bitburner.corporationinfo.md) > [valuation](./bitburner.corporationinfo.valuation.md)
|
||||
|
||||
## CorporationInfo.valuation property
|
||||
|
||||
Corporation valuation
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
valuation: number;
|
||||
```
|
||||
@@ -1,11 +0,0 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CreateProgramWorkTask](./bitburner.createprogramworktask.md) > [cyclesWorked](./bitburner.createprogramworktask.cyclesworked.md)
|
||||
|
||||
## CreateProgramWorkTask.cyclesWorked property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
cyclesWorked: number;
|
||||
```
|
||||
@@ -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" | |
|
||||
|
||||
|
||||
23
markdown/bitburner.creatingcorporationcheckresult.md
Normal file
23
markdown/bitburner.creatingcorporationcheckresult.md
Normal file
@@ -0,0 +1,23 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CreatingCorporationCheckResult](./bitburner.creatingcorporationcheckresult.md)
|
||||
|
||||
## CreatingCorporationCheckResult enum
|
||||
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
declare enum CreatingCorporationCheckResult
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| CorporationExists | <code>"CorporationExists"</code> | |
|
||||
| DisabledBySoftCap | <code>"DisabledBySoftCap"</code> | |
|
||||
| NoSf3OrDisabled | <code>"NoSf3OrDisabled"</code> | |
|
||||
| Success | <code>"Success"</code> | |
|
||||
| UseSeedMoneyOutsideBN3 | <code>"UseSeedMoneyOutsideBN3"</code> | |
|
||||
|
||||
@@ -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:**
|
||||
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user