mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-01 05:17:04 +02:00
Compare commits
75 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a5e5780c9 | |||
| f4c4b17797 | |||
| a99eeea80c | |||
| eeef4cf772 | |||
| 548cb24b2e | |||
| c72a2928eb | |||
| 01c63ea0c0 | |||
| 8ad5ec075e | |||
| 115b1b63ad | |||
| 851ed2b9dc | |||
| 234ee7a923 | |||
| 9e85068cbb | |||
| ed6df3dfa7 | |||
| 253b8b2672 | |||
| 3146c50edc | |||
| 4a91a71891 | |||
| 99afa3cd50 | |||
| 750f79adf3 | |||
| dbb20c1526 | |||
| 60fb303915 | |||
| 32fed9f142 | |||
| 33ffc2107c | |||
| 36e1adf2d2 | |||
| ee3014b029 | |||
| 112d317fd2 | |||
| 355f650367 | |||
| a4b0f22a2e | |||
| 2aa5092d85 | |||
| a7409a01cc | |||
| a99109d9c7 | |||
| 95af138c39 | |||
| f5bbc26495 | |||
| f8ec7f4294 | |||
| c06c6590c9 | |||
| 45bce6e45e | |||
| c21d1f44b2 | |||
| 956e00f789 | |||
| c5536d252b | |||
| a99ca64455 | |||
| cb14655325 | |||
| 9ab3e0bcb4 | |||
| cc9144c01b | |||
| fb3fa00b3d | |||
| 8cbd6ff9e1 | |||
| 00a1bc2f6e | |||
| be6fcd206f | |||
| a6a112198e | |||
| 732aadb2d6 | |||
| 85c9ac0181 | |||
| e232f37550 | |||
| 6074721c59 | |||
| 09e46d757b | |||
| 5cb0d559df | |||
| 54287e5f7f | |||
| d25b1676ab | |||
| d6299becd6 | |||
| 19b137e2fb | |||
| ee2949418f | |||
| fbd7930ab2 | |||
| 8b3c7c13c5 | |||
| 996bb01075 | |||
| eb4e193fac | |||
| 0c39fc3720 | |||
| 44741a7795 | |||
| 2818969c8a | |||
| de9311f820 | |||
| 15d463d583 | |||
| 2819947378 | |||
| 48fad72b6a | |||
| 63aa4d2a45 | |||
| abdf3082ca | |||
| 8dcccdc5bb | |||
| d1b6acc57a | |||
| dc4ea8452c | |||
| 5fc54809de |
@@ -2,7 +2,17 @@ name: Build artifacts
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
git-sha:
|
||||
description: "Commit SHA-1 to checkout"
|
||||
required: false
|
||||
default: ""
|
||||
workflow_call:
|
||||
inputs:
|
||||
git-sha:
|
||||
type: string
|
||||
required: false
|
||||
default: ""
|
||||
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
@@ -13,6 +23,8 @@ jobs:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.inputs.git-sha || inputs.git-sha || github.sha }}
|
||||
- name: Use Node.js 24
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
@@ -46,6 +58,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.inputs.git-sha || inputs.git-sha || github.sha }}
|
||||
- name: Use Node.js 24
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
@@ -77,6 +91,8 @@ jobs:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.inputs.git-sha || inputs.git-sha || github.sha }}
|
||||
- name: Use Node.js 24
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
|
||||
@@ -25,5 +25,77 @@
|
||||
<div>
|
||||
<h1>Close me when operation is completed.</h1>
|
||||
</div>
|
||||
<!-- Use esm for top-level await -->
|
||||
<script type="module">
|
||||
const databaseName = "bitburnerSave";
|
||||
// Check src/db.ts to see why the current max version is 2. If the database version is greater than this value, it
|
||||
// means that the code in this file is outdated.
|
||||
const maxDatabaseVersion = 2;
|
||||
const databases = await window.indexedDB.databases();
|
||||
const database = databases.find((info) => info.name === databaseName);
|
||||
if (!database) {
|
||||
alert("There is no save data");
|
||||
// This is the simplest way to stop execution in top-level code without using a labeled block or IIFE.
|
||||
throw new Error("There is no save data");
|
||||
}
|
||||
if (database.version === undefined || database.version > maxDatabaseVersion) {
|
||||
alert(`Invalid database version: ${database.version}`);
|
||||
throw new Error(`Invalid database version: ${database.version}`);
|
||||
}
|
||||
// Do NOT specify the version. We must open the database at the current version; otherwise, we will trigger
|
||||
// onupgradeneeded.
|
||||
const dbRequest = window.indexedDB.open(databaseName);
|
||||
dbRequest.onerror = (event) => {
|
||||
console.error(event.target.error);
|
||||
alert(event.target.error);
|
||||
};
|
||||
dbRequest.onsuccess = () => {
|
||||
const db = dbRequest.result;
|
||||
try {
|
||||
if (!db.objectStoreNames.contains("savestring")) {
|
||||
alert("There is no save data");
|
||||
return;
|
||||
}
|
||||
const transaction = db.transaction(["savestring"], "readonly");
|
||||
const objectStore = transaction.objectStore("savestring");
|
||||
const request = objectStore.get("save");
|
||||
request.onsuccess = () => {
|
||||
if (request.result == null) {
|
||||
alert("There is no save data");
|
||||
return;
|
||||
}
|
||||
let isBinaryFormat;
|
||||
if (request.result instanceof Uint8Array) {
|
||||
// All modules in the Electron folder are CommonJS, so importing them here would be really difficult. The
|
||||
// isBinaryFormat function is very small, so let's inline it here.
|
||||
isBinaryFormat = true;
|
||||
const magicBytesOfDeflateGzip = [0x1f, 0x8b, 0x08];
|
||||
for (let i = 0; i < magicBytesOfDeflateGzip.length; ++i) {
|
||||
if (magicBytesOfDeflateGzip[i] !== request.result[i]) {
|
||||
isBinaryFormat = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
isBinaryFormat = false;
|
||||
}
|
||||
const extension = isBinaryFormat ? "json.gz" : "json";
|
||||
const filename = `bitburnerSave_${Date.now()}.${extension}`;
|
||||
const blob = new Blob([request.result]);
|
||||
const anchorElement = document.createElement("a");
|
||||
const url = URL.createObjectURL(blob);
|
||||
anchorElement.href = url;
|
||||
anchorElement.download = filename;
|
||||
anchorElement.click();
|
||||
setTimeout(function () {
|
||||
URL.revokeObjectURL(url);
|
||||
}, 0);
|
||||
};
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
alert(error);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -258,7 +258,6 @@ app.on("ready", async () => {
|
||||
await window.loadFile("export.html");
|
||||
window.show();
|
||||
setStopProcessHandler(window);
|
||||
await utils.exportSave(window);
|
||||
} else {
|
||||
window = await startWindow(process.argv.includes("--no-scripts"));
|
||||
if (global.steamworksError) {
|
||||
|
||||
@@ -90,36 +90,6 @@ function showErrorBox(title, error) {
|
||||
dialog.showErrorBox(title, `${error.name}\n\n${error.message}`);
|
||||
}
|
||||
|
||||
function exportSaveFromIndexedDb() {
|
||||
return new Promise((resolve) => {
|
||||
const dbRequest = indexedDB.open("bitburnerSave");
|
||||
dbRequest.onsuccess = () => {
|
||||
const db = dbRequest.result;
|
||||
const transaction = db.transaction(["savestring"], "readonly");
|
||||
const store = transaction.objectStore("savestring");
|
||||
const request = store.get("save");
|
||||
request.onsuccess = () => {
|
||||
const file = new Blob([request.result], { type: "text/plain" });
|
||||
const a = document.createElement("a");
|
||||
const url = URL.createObjectURL(file);
|
||||
a.href = url;
|
||||
a.download = "save.json";
|
||||
document.body.appendChild(a);
|
||||
a.click();
|
||||
setTimeout(function () {
|
||||
document.body.removeChild(a);
|
||||
window.URL.revokeObjectURL(url);
|
||||
resolve();
|
||||
}, 0);
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
async function exportSave(window) {
|
||||
await window.webContents.executeJavaScript(`${exportSaveFromIndexedDb.toString()}; exportSaveFromIndexedDb();`, true);
|
||||
}
|
||||
|
||||
async function writeTerminal(window, message, type = null) {
|
||||
await window.webContents.executeJavaScript(`window.appNotifier.terminal("${message}", "${type}");`, true);
|
||||
}
|
||||
@@ -186,7 +156,6 @@ function initializeLogLevelConfig() {
|
||||
module.exports = {
|
||||
reloadAndKill,
|
||||
showErrorBox,
|
||||
exportSave,
|
||||
attachUnresponsiveAppHandler,
|
||||
detachUnresponsiveAppHandler,
|
||||
writeTerminal,
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [ActiveFragment](./bitburner.activefragment.md) > [chargedEffect](./bitburner.activefragment.chargedeffect.md)
|
||||
|
||||
## ActiveFragment.chargedEffect property
|
||||
|
||||
This is the raw value of the modifier used to calculate the effect on your multipliers. It may not be a multiplier.
|
||||
|
||||
With fragments that increase a multiplier, this value is a multiplier. For example, with "+x% hacknet production" fragment, a value of 1.25 will multiply the "hacknet\_node\_money" multiplier by 1.25. The UI will show "+25% hacknet production".
|
||||
|
||||
With fragments that decrease a multiplier, you need to invert this value. For example, with "-x% cheaper hacknet costs" fragment, a value of 1.25 means the "hacknet\_node\_purchase\_cost" (and other relevant cost multipliers) will be multiplied by 0.8 (1 / 1.25). The UI will show "20% cheaper hacknet costs".
|
||||
|
||||
With booster fragments, this value is always 1. Booster fragments only boost non-booster fragments. They don't directly boost your multipliers.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
chargedEffect: number;
|
||||
```
|
||||
@@ -37,6 +37,31 @@ Description
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
[chargedEffect](./bitburner.activefragment.chargedeffect.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
This is the raw value of the modifier used to calculate the effect on your multipliers. It may not be a multiplier.
|
||||
|
||||
With fragments that increase a multiplier, this value is a multiplier. For example, with "+x% hacknet production" fragment, a value of 1.25 will multiply the "hacknet\_node\_money" multiplier by 1.25. The UI will show "+25% hacknet production".
|
||||
|
||||
With fragments that decrease a multiplier, you need to invert this value. For example, with "-x% cheaper hacknet costs" fragment, a value of 1.25 means the "hacknet\_node\_purchase\_cost" (and other relevant cost multipliers) will be multiplied by 0.8 (1 / 1.25). The UI will show "20% cheaper hacknet costs".
|
||||
|
||||
With booster fragments, this value is always 1. Booster fragments only boost non-booster fragments. They don't directly boost your multipliers.
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[highestCharge](./bitburner.activefragment.highestcharge.md)
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ Base interface of all tasks.
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export interface BaseTask
|
||||
interface BaseTask
|
||||
```
|
||||
|
||||
## Properties
|
||||
@@ -37,7 +37,7 @@ Description
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
[cyclesWorked](./bitburner.basetask.cyclesworked.md)
|
||||
[nextCompletion](./bitburner.basetask.nextcompletion.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
@@ -45,12 +45,16 @@ Description
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
Promise<void>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
The number of game engine cycles has passed since this task started. 1 engine cycle = 200ms.
|
||||
This promise resolves when the task completes or is canceled.
|
||||
|
||||
Tasks that do not track progress, such as studying or working for a company, are non-completable, i.e., they continue indefinitely until canceled. The `nextCompletion` promise of these tasks resolves only when they are canceled.
|
||||
|
||||
Among completable tasks, some are repeatable, i.e., they automatically restart after completion. The `nextCompletion` promise of these tasks resolves on the next completion or when they are canceled.
|
||||
|
||||
|
||||
</td></tr>
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [BaseTask](./bitburner.basetask.md) > [nextCompletion](./bitburner.basetask.nextcompletion.md)
|
||||
|
||||
## BaseTask.nextCompletion property
|
||||
|
||||
This promise resolves when the task completes or is canceled.
|
||||
|
||||
Tasks that do not track progress, such as studying or working for a company, are non-completable, i.e., they continue indefinitely until canceled. The `nextCompletion` promise of these tasks resolves only when they are canceled.
|
||||
|
||||
Among completable tasks, some are repeatable, i.e., they automatically restart after completion. The `nextCompletion` promise of these tasks resolves on the next completion or when they are canceled.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
nextCompletion: Promise<void>;
|
||||
```
|
||||
@@ -12,7 +12,7 @@ Default value:
|
||||
|
||||
- All boolean options: false
|
||||
|
||||
If you specify intelligenceOverride, it must be a non-negative integer.
|
||||
If you specify intelligenceOverride, it must be a positive integer.
|
||||
|
||||
**Signature:**
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ Promise that resolves to the number of milliseconds of Bladeburner time that wer
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 1 GB
|
||||
RAM cost: 0 GB
|
||||
|
||||
The amount of real time spent asleep between updates can vary due to "bonus time" (usually 1 second).
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@ Company Work
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export interface CompanyWorkTask extends BaseTask
|
||||
interface CompanyWorkTask extends PlayerBaseTask
|
||||
```
|
||||
**Extends:** [BaseTask](./bitburner.basetask.md)
|
||||
**Extends:** [PlayerBaseTask](./bitburner.playerbasetask.md)
|
||||
|
||||
## Remarks
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ Promise that resolves to the name of the state that was just processed.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 1 GB
|
||||
RAM cost: 0 GB
|
||||
|
||||
The amount of real time spent asleep between updates can vary due to "bonus time" (usually 200 milliseconds - 2 seconds).
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@ Create Program
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export interface CreateProgramWorkTask extends BaseTask
|
||||
interface CreateProgramWorkTask extends PlayerBaseTask
|
||||
```
|
||||
**Extends:** [BaseTask](./bitburner.basetask.md)
|
||||
**Extends:** [PlayerBaseTask](./bitburner.playerbasetask.md)
|
||||
|
||||
## Remarks
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@ Crime
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export interface CrimeTask extends BaseTask
|
||||
interface CrimeTask extends PlayerBaseTask
|
||||
```
|
||||
**Extends:** [BaseTask](./bitburner.basetask.md)
|
||||
**Extends:** [PlayerBaseTask](./bitburner.playerbasetask.md)
|
||||
|
||||
## Remarks
|
||||
|
||||
|
||||
@@ -29,5 +29,5 @@ Promise<void>
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 1 GB
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@ Faction Work
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export interface FactionWorkTask extends BaseTask
|
||||
interface FactionWorkTask extends PlayerBaseTask
|
||||
```
|
||||
**Extends:** [BaseTask](./bitburner.basetask.md)
|
||||
**Extends:** [PlayerBaseTask](./bitburner.playerbasetask.md)
|
||||
|
||||
## Remarks
|
||||
|
||||
|
||||
+3
-3
@@ -1,15 +1,15 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [Gang](./bitburner.gang.md) > [getOtherGangInformation](./bitburner.gang.getotherganginformation.md)
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [Gang](./bitburner.gang.md) > [getAllGangInformation](./bitburner.gang.getallganginformation.md)
|
||||
|
||||
## Gang.getOtherGangInformation() method
|
||||
## Gang.getAllGangInformation() method
|
||||
|
||||
Get information about all gangs.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
getOtherGangInformation(): Record<string, GangOtherInfoObject>;
|
||||
getAllGangInformation(): Record<string, GangOtherInfoObject>;
|
||||
```
|
||||
**Returns:**
|
||||
|
||||
+11
-11
@@ -61,6 +61,17 @@ Check if you can recruit a new gang member.
|
||||
Create a gang.
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[getAllGangInformation()](./bitburner.gang.getallganginformation.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
Get information about all gangs.
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
@@ -182,17 +193,6 @@ Get information about a specific gang member.
|
||||
List all gang members.
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[getOtherGangInformation()](./bitburner.gang.getotherganginformation.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
Get information about all gangs.
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ Promise that resolves to the number of milliseconds of Gang time that were proce
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 1 GB
|
||||
RAM cost: 0 GB
|
||||
|
||||
The amount of real time spent asleep between updates can vary due to "bonus time".
|
||||
|
||||
|
||||
@@ -19,5 +19,5 @@ A promise that resolves when the current grafting finishes or is canceled. If th
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 1 GB
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [GraftingTask](./bitburner.graftingtask.md) > [completion](./bitburner.graftingtask.completion.md)
|
||||
|
||||
## GraftingTask.completion property
|
||||
|
||||
This promise resolves when the task is complete.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
completion: Promise<void>;
|
||||
```
|
||||
@@ -9,9 +9,9 @@ Grafting Work
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
export interface GraftingTask extends BaseTask
|
||||
interface GraftingTask extends PlayerBaseTask
|
||||
```
|
||||
**Extends:** [BaseTask](./bitburner.basetask.md)
|
||||
**Extends:** [PlayerBaseTask](./bitburner.playerbasetask.md)
|
||||
|
||||
## Remarks
|
||||
|
||||
@@ -56,25 +56,6 @@ string
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[completion](./bitburner.graftingtask.completion.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
Promise<void>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
This promise resolves when the task is complete.
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
|
||||
@@ -126,6 +126,17 @@ Calculate hack percent for one thread. (Ex: 0.25 would steal 25% of the server's
|
||||
Calculate hack time.
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[weakenEffect(threads, cores)](./bitburner.hackingformulas.weakeneffect.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
Calculate the security decrease from a weaken operation. Unlike other hacking formulas, weaken effect depends only on thread count and core count, not on server or player properties. The core bonus formula is `1 + (cores - 1) / 16}`<!-- -->.
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [HackingFormulas](./bitburner.hackingformulas.md) > [weakenEffect](./bitburner.hackingformulas.weakeneffect.md)
|
||||
|
||||
## HackingFormulas.weakenEffect() method
|
||||
|
||||
Calculate the security decrease from a weaken operation. Unlike other hacking formulas, weaken effect depends only on thread count and core count, not on server or player properties. The core bonus formula is `1 + (cores - 1) / 16}`<!-- -->.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
weakenEffect(threads: number, cores?: number): number;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
<table><thead><tr><th>
|
||||
|
||||
Parameter
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Type
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Description
|
||||
|
||||
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
threads
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
Number of threads running weaken.
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
cores
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
_(Optional)_ Number of cores on the host server. Default 1.
|
||||
|
||||
|
||||
</td></tr>
|
||||
</tbody></table>
|
||||
|
||||
**Returns:**
|
||||
|
||||
number
|
||||
|
||||
The security decrease amount.
|
||||
|
||||
@@ -72,7 +72,7 @@ Cost of upgrading the specified Hacknet Node's cache.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ Cost of upgrading the specified Hacknet Node's number of cores.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
Returns the cost of upgrading the number of cores of the specified Hacknet Node by n.
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ Level of the upgrade.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ An array containing the available upgrades
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ Cost of upgrading the specified Hacknet Node.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
Returns the cost of upgrading the specified Hacknet Node by n levels.
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ Object containing a variety of stats about the specified Hacknet Node.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
Returns an object containing a variety of stats about the specified Hacknet Node.
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ Cost of purchasing a new Hacknet Node.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
Returns the cost of purchasing a new Hacknet Node.
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ Cost of upgrading the specified Hacknet Node's RAM.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
Returns the cost of upgrading the RAM of the specified Hacknet Node n times.
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ Multiplier.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ Multiplier.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ Number of hashes you can store.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ Number of hashes required for the specified upgrade.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
|
||||
|
||||
|
||||
@@ -19,5 +19,5 @@ Maximum number of hacknet nodes.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ Number of hashes you have.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ Number of hacknet nodes.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
Returns the number of Hacknet Nodes you own.
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ The index of the Hacknet Node or if the player cannot afford to purchase a new H
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
Purchases a new Hacknet Node. Returns a number with the index of the Hacknet Node. This index is equivalent to the number at the end of the Hacknet Node’s name (e.g. The Hacknet Node named `hacknet-node-4` will have an index of 4).
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ True if the upgrade is successfully purchased, and false otherwise.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ True if the Hacknet Node’s cache level is successfully upgraded, false otherwi
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ True if the Hacknet Node’s cores are successfully purchased, false otherwise.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
Tries to purchase n cores for the specified Hacknet Node.
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ True if the Hacknet Node’s level is successfully upgraded, false otherwise.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
Tries to upgrade the level of the specified Hacknet Node by n.
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ True if the Hacknet Node’s RAM is successfully upgraded, false otherwise.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
RAM cost: 0.5 GB
|
||||
|
||||
Tries to upgrade the specified Hacknet Node’s RAM n times. Note that each upgrade doubles the Node’s RAM. So this is equivalent to multiplying the Node’s RAM by 2 n.
|
||||
|
||||
|
||||
+102
-91
@@ -123,7 +123,7 @@ Default value:
|
||||
|
||||
- All boolean options: false
|
||||
|
||||
If you specify intelligenceOverride, it must be a non-negative integer.
|
||||
If you specify intelligenceOverride, it must be a positive integer.
|
||||
|
||||
|
||||
</td></tr>
|
||||
@@ -1111,6 +1111,17 @@ Player must have killed at least this many people.
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[PlayerBaseTask](./bitburner.playerbasetask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
Base interface of all player tasks.
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
@@ -1272,6 +1283,66 @@ Skills formulas
|
||||
Sleeve API
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveBladeburnerTask](./bitburner.sleevebladeburnertask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveClassTask](./bitburner.sleeveclasstask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveCompanyTask](./bitburner.sleevecompanytask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveCrimeTask](./bitburner.sleevecrimetask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveFactionTask](./bitburner.sleevefactiontask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveInfiltrateTask](./bitburner.sleeveinfiltratetask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
@@ -1282,6 +1353,36 @@ Sleeve API
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveRecoveryTask](./bitburner.sleeverecoverytask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveSupportTask](./bitburner.sleevesupporttask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveSynchroTask](./bitburner.sleevesynchrotask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
@@ -2206,96 +2307,6 @@ Use React.createElement to make the ReactElement type, see [creating an element
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveBladeburnerTask](./bitburner.sleevebladeburnertask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveClassTask](./bitburner.sleeveclasstask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveCompanyTask](./bitburner.sleevecompanytask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveCrimeTask](./bitburner.sleevecrimetask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveFactionTask](./bitburner.sleevefactiontask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveInfiltrateTask](./bitburner.sleeveinfiltratetask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveRecoveryTask](./bitburner.sleeverecoverytask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveSupportTask](./bitburner.sleevesupporttask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[SleeveSynchroTask](./bitburner.sleevesynchrotask.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
|
||||
@@ -6,18 +6,14 @@
|
||||
|
||||
Arguments passed into the script.
|
||||
|
||||
These arguments can be accessed as a normal array by using the `[]` operator (`args[0]`<!-- -->, `args[1]`<!-- -->, etc...). Arguments can be string, number, or boolean. Use `args.length` to get the number of arguments that were passed into a script.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
readonly args: ScriptArg[];
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
Arguments passed into a script can be accessed as a normal array by using the `[]` operator (`args[0]`<!-- -->, `args[1]`<!-- -->, etc...). Arguments can be string, number, or boolean. Use `args.length` to get the number of arguments that were passed into a script.
|
||||
|
||||
## Example
|
||||
|
||||
`run example.js 7 text true`
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [Bladeburner](./bitburner.bladeburner.md) functions. Contains spoi
|
||||
```typescript
|
||||
readonly bladeburner: Bladeburner;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [cloud](./bitburner.cloud.md) functions.
|
||||
```typescript
|
||||
readonly cloud: Cloud;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [coding contract](./bitburner.codingcontract.md) functions.
|
||||
```typescript
|
||||
readonly codingcontract: CodingContract;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [corporation](./bitburner.corporation.md) functions. Contains spoi
|
||||
```typescript
|
||||
readonly corporation: Corporation;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for darknet functions. Contains spoilers.
|
||||
```typescript
|
||||
readonly dnet: Darknet;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -132,4 +132,5 @@ ns.exec("generic-hack.js", "joesguns", {threads: 10});
|
||||
// arguments to the script.
|
||||
ns.exec("foo.js", "foodnstuff", 5, 1, "test");
|
||||
```
|
||||
For darknet servers: A session must be established with the target server, and the script must be running on a server that is directly connected to the target, or the target must have a backdoor or stasis link installed.
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [formatting](./bitburner.format.md) functions.
|
||||
```typescript
|
||||
readonly format: Format;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [formulas](./bitburner.formulas.md) functions.
|
||||
```typescript
|
||||
readonly formulas: Formulas;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [gang](./bitburner.gang.md) functions. Contains spoilers.
|
||||
```typescript
|
||||
readonly gang: Gang;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [Go](./bitburner.go.md) functions.
|
||||
```typescript
|
||||
readonly go: Go;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [grafting](./bitburner.grafting.md) functions. Contains spoilers.
|
||||
```typescript
|
||||
readonly grafting: Grafting;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [hacknet](./bitburner.hacknet.md) functions. Some of this API cont
|
||||
```typescript
|
||||
readonly hacknet: Hacknet;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 4 GB.
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [infiltration](./bitburner.infiltration.md) functions.
|
||||
```typescript
|
||||
readonly infiltration: Infiltration;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -69,6 +69,8 @@ Description
|
||||
|
||||
Arguments passed into the script.
|
||||
|
||||
These arguments can be accessed as a normal array by using the `[]` operator (`args[0]`<!-- -->, `args[1]`<!-- -->, etc...). Arguments can be string, number, or boolean. Use `args.length` to get the number of arguments that were passed into a script.
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
@@ -112,5 +112,5 @@ const server = ns.args[0];
|
||||
const files = ["hack.js", "weaken.js", "grow.js"];
|
||||
ns.scp(files, server, "home");
|
||||
```
|
||||
For password-protected servers (such as darknet servers), a session must be established with the destination server before using this function. (The source server does not require a session.)
|
||||
For darknet servers: The destination requires a session, but unlike [exec](./bitburner.ns.exec.md)<!-- -->, does not require a direct connection — scp works at any distance. The source server has no darknet requirements (no session or connection needed). Use [dnet.authenticate](./bitburner.darknet.authenticate.md) (requires direct connection) or [dnet.connectToSession](./bitburner.darknet.connecttosession.md) (at any distance) to establish a session.
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [singularity](./bitburner.singularity.md) functions. Contains spoi
|
||||
```typescript
|
||||
readonly singularity: Singularity;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [sleeve](./bitburner.sleeve.md) functions. Contains spoilers.
|
||||
```typescript
|
||||
readonly sleeve: Sleeve;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [Stanek](./bitburner.stanek.md) functions. Contains spoilers.
|
||||
```typescript
|
||||
readonly stanek: Stanek;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [stock](./bitburner.stock.md) functions.
|
||||
```typescript
|
||||
readonly stock: Stock;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
@@ -11,8 +11,3 @@ Namespace for [user interface](./bitburner.userinterface.md) functions.
|
||||
```typescript
|
||||
readonly ui: UserInterface;
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
<!-- 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)
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [PlayerBaseTask](./bitburner.playerbasetask.md) > [cyclesWorked](./bitburner.playerbasetask.cyclesworked.md)
|
||||
|
||||
## BaseTask.cyclesWorked property
|
||||
## PlayerBaseTask.cyclesWorked property
|
||||
|
||||
The number of game engine cycles has passed since this task started. 1 engine cycle = 200ms.
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [PlayerBaseTask](./bitburner.playerbasetask.md)
|
||||
|
||||
## PlayerBaseTask interface
|
||||
|
||||
Base interface of all player tasks.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
interface PlayerBaseTask extends BaseTask
|
||||
```
|
||||
**Extends:** [BaseTask](./bitburner.basetask.md)
|
||||
|
||||
## Properties
|
||||
|
||||
<table><thead><tr><th>
|
||||
|
||||
Property
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Modifiers
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Type
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Description
|
||||
|
||||
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
[cyclesWorked](./bitburner.playerbasetask.cyclesworked.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
The number of game engine cycles has passed since this task started. 1 engine cycle = 200ms.
|
||||
|
||||
|
||||
</td></tr>
|
||||
</tbody></table>
|
||||
|
||||
@@ -52,7 +52,7 @@ Name of faction to join.
|
||||
|
||||
boolean
|
||||
|
||||
True if player joined the faction, and false otherwise.
|
||||
True if the player successfully accepts an invitation, and false otherwise.
|
||||
|
||||
## Remarks
|
||||
|
||||
@@ -60,3 +60,5 @@ RAM cost: 3 GB \* 16/4/1
|
||||
|
||||
This function will automatically accept an invitation from a faction and join it.
|
||||
|
||||
Note that this function returns false if you are already a member of the specified faction.
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveBladeburnerTask](./bitburner.sleevebladeburnertask.md) > [actionName](./bitburner.sleevebladeburnertask.actionname.md)
|
||||
|
||||
## SleeveBladeburnerTask.actionName property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
actionName: string;
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveBladeburnerTask](./bitburner.sleevebladeburnertask.md) > [actionType](./bitburner.sleevebladeburnertask.actiontype.md)
|
||||
|
||||
## SleeveBladeburnerTask.actionType property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
actionType: "General" | "Contracts";
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveBladeburnerTask](./bitburner.sleevebladeburnertask.md) > [cyclesNeeded](./bitburner.sleevebladeburnertask.cyclesneeded.md)
|
||||
|
||||
## SleeveBladeburnerTask.cyclesNeeded property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
cyclesNeeded: number;
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveBladeburnerTask](./bitburner.sleevebladeburnertask.md) > [cyclesWorked](./bitburner.sleevebladeburnertask.cyclesworked.md)
|
||||
|
||||
## SleeveBladeburnerTask.cyclesWorked property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
cyclesWorked: number;
|
||||
```
|
||||
@@ -2,19 +2,140 @@
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveBladeburnerTask](./bitburner.sleevebladeburnertask.md)
|
||||
|
||||
## SleeveBladeburnerTask type
|
||||
## SleeveBladeburnerTask interface
|
||||
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type SleeveBladeburnerTask = {
|
||||
type: "BLADEBURNER";
|
||||
actionType: "General" | "Contracts";
|
||||
actionName: string;
|
||||
cyclesWorked: number;
|
||||
cyclesNeeded: number;
|
||||
nextCompletion: Promise<void>;
|
||||
tasksCompleted: number;
|
||||
};
|
||||
interface SleeveBladeburnerTask extends BaseTask
|
||||
```
|
||||
**Extends:** [BaseTask](./bitburner.basetask.md)
|
||||
|
||||
## Properties
|
||||
|
||||
<table><thead><tr><th>
|
||||
|
||||
Property
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Modifiers
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Type
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Description
|
||||
|
||||
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
[actionName](./bitburner.sleevebladeburnertask.actionname.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
string
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[actionType](./bitburner.sleevebladeburnertask.actiontype.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
"General" \| "Contracts"
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[cyclesNeeded](./bitburner.sleevebladeburnertask.cyclesneeded.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[cyclesWorked](./bitburner.sleevebladeburnertask.cyclesworked.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[tasksCompleted](./bitburner.sleevebladeburnertask.taskscompleted.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[type](./bitburner.sleevebladeburnertask.type.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
"BLADEBURNER"
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
</tbody></table>
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveBladeburnerTask](./bitburner.sleevebladeburnertask.md) > [tasksCompleted](./bitburner.sleevebladeburnertask.taskscompleted.md)
|
||||
|
||||
## SleeveBladeburnerTask.tasksCompleted property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
tasksCompleted: number;
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveBladeburnerTask](./bitburner.sleevebladeburnertask.md) > [type](./bitburner.sleevebladeburnertask.type.md)
|
||||
|
||||
## SleeveBladeburnerTask.type property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type: "BLADEBURNER";
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveClassTask](./bitburner.sleeveclasstask.md) > [classType](./bitburner.sleeveclasstask.classtype.md)
|
||||
|
||||
## SleeveClassTask.classType property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
classType: UniversityClassType | GymType;
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveClassTask](./bitburner.sleeveclasstask.md) > [location](./bitburner.sleeveclasstask.location.md)
|
||||
|
||||
## SleeveClassTask.location property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
location: LocationName;
|
||||
```
|
||||
@@ -2,17 +2,89 @@
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveClassTask](./bitburner.sleeveclasstask.md)
|
||||
|
||||
## SleeveClassTask type
|
||||
## SleeveClassTask interface
|
||||
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type SleeveClassTask = {
|
||||
type: "CLASS";
|
||||
classType: UniversityClassType | GymType;
|
||||
location: LocationName;
|
||||
};
|
||||
interface SleeveClassTask extends BaseTask
|
||||
```
|
||||
**References:** [UniversityClassType](./bitburner.universityclasstype.md)<!-- -->, [GymType](./bitburner.gymtype.md)<!-- -->, [LocationName](./bitburner.locationname.md)
|
||||
**Extends:** [BaseTask](./bitburner.basetask.md)
|
||||
|
||||
## Properties
|
||||
|
||||
<table><thead><tr><th>
|
||||
|
||||
Property
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Modifiers
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Type
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Description
|
||||
|
||||
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
[classType](./bitburner.sleeveclasstask.classtype.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
[UniversityClassType](./bitburner.universityclasstype.md) \| [GymType](./bitburner.gymtype.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[location](./bitburner.sleeveclasstask.location.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
[LocationName](./bitburner.locationname.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[type](./bitburner.sleeveclasstask.type.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
"CLASS"
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
</tbody></table>
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveClassTask](./bitburner.sleeveclasstask.md) > [type](./bitburner.sleeveclasstask.type.md)
|
||||
|
||||
## SleeveClassTask.type property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type: "CLASS";
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveCompanyTask](./bitburner.sleevecompanytask.md) > [companyName](./bitburner.sleevecompanytask.companyname.md)
|
||||
|
||||
## SleeveCompanyTask.companyName property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
companyName: CompanyName;
|
||||
```
|
||||
@@ -2,13 +2,72 @@
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveCompanyTask](./bitburner.sleevecompanytask.md)
|
||||
|
||||
## SleeveCompanyTask type
|
||||
## SleeveCompanyTask interface
|
||||
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type SleeveCompanyTask = { type: "COMPANY"; companyName: CompanyName };
|
||||
interface SleeveCompanyTask extends BaseTask
|
||||
```
|
||||
**References:** [CompanyName](./bitburner.companyname.md)
|
||||
**Extends:** [BaseTask](./bitburner.basetask.md)
|
||||
|
||||
## Properties
|
||||
|
||||
<table><thead><tr><th>
|
||||
|
||||
Property
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Modifiers
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Type
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Description
|
||||
|
||||
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
[companyName](./bitburner.sleevecompanytask.companyname.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
[CompanyName](./bitburner.companyname.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[type](./bitburner.sleevecompanytask.type.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
"COMPANY"
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
</tbody></table>
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveCompanyTask](./bitburner.sleevecompanytask.md) > [type](./bitburner.sleevecompanytask.type.md)
|
||||
|
||||
## SleeveCompanyTask.type property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type: "COMPANY";
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveCrimeTask](./bitburner.sleevecrimetask.md) > [crimeType](./bitburner.sleevecrimetask.crimetype.md)
|
||||
|
||||
## SleeveCrimeTask.crimeType property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
crimeType: CrimeType;
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveCrimeTask](./bitburner.sleevecrimetask.md) > [cyclesNeeded](./bitburner.sleevecrimetask.cyclesneeded.md)
|
||||
|
||||
## SleeveCrimeTask.cyclesNeeded property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
cyclesNeeded: number;
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveCrimeTask](./bitburner.sleevecrimetask.md) > [cyclesWorked](./bitburner.sleevecrimetask.cyclesworked.md)
|
||||
|
||||
## SleeveCrimeTask.cyclesWorked property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
cyclesWorked: number;
|
||||
```
|
||||
@@ -2,19 +2,123 @@
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveCrimeTask](./bitburner.sleevecrimetask.md)
|
||||
|
||||
## SleeveCrimeTask type
|
||||
## SleeveCrimeTask interface
|
||||
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type SleeveCrimeTask = {
|
||||
type: "CRIME";
|
||||
crimeType: CrimeType;
|
||||
cyclesWorked: number;
|
||||
cyclesNeeded: number;
|
||||
tasksCompleted: number;
|
||||
};
|
||||
interface SleeveCrimeTask extends BaseTask
|
||||
```
|
||||
**References:** [CrimeType](./bitburner.crimetype.md)
|
||||
**Extends:** [BaseTask](./bitburner.basetask.md)
|
||||
|
||||
## Properties
|
||||
|
||||
<table><thead><tr><th>
|
||||
|
||||
Property
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Modifiers
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Type
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Description
|
||||
|
||||
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
[crimeType](./bitburner.sleevecrimetask.crimetype.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
[CrimeType](./bitburner.crimetype.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[cyclesNeeded](./bitburner.sleevecrimetask.cyclesneeded.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[cyclesWorked](./bitburner.sleevecrimetask.cyclesworked.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[tasksCompleted](./bitburner.sleevecrimetask.taskscompleted.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[type](./bitburner.sleevecrimetask.type.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
"CRIME"
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
</tbody></table>
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveCrimeTask](./bitburner.sleevecrimetask.md) > [tasksCompleted](./bitburner.sleevecrimetask.taskscompleted.md)
|
||||
|
||||
## SleeveCrimeTask.tasksCompleted property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
tasksCompleted: number;
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveCrimeTask](./bitburner.sleevecrimetask.md) > [type](./bitburner.sleevecrimetask.type.md)
|
||||
|
||||
## SleeveCrimeTask.type property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type: "CRIME";
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveFactionTask](./bitburner.sleevefactiontask.md) > [factionName](./bitburner.sleevefactiontask.factionname.md)
|
||||
|
||||
## SleeveFactionTask.factionName property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
factionName: FactionName;
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveFactionTask](./bitburner.sleevefactiontask.md) > [factionWorkType](./bitburner.sleevefactiontask.factionworktype.md)
|
||||
|
||||
## SleeveFactionTask.factionWorkType property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
factionWorkType: FactionWorkType;
|
||||
```
|
||||
@@ -2,17 +2,89 @@
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveFactionTask](./bitburner.sleevefactiontask.md)
|
||||
|
||||
## SleeveFactionTask type
|
||||
## SleeveFactionTask interface
|
||||
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type SleeveFactionTask = {
|
||||
type: "FACTION";
|
||||
factionWorkType: FactionWorkType;
|
||||
factionName: FactionName;
|
||||
};
|
||||
interface SleeveFactionTask extends BaseTask
|
||||
```
|
||||
**References:** [FactionWorkType](./bitburner.factionworktype.md)<!-- -->, [FactionName](./bitburner.factionname.md)
|
||||
**Extends:** [BaseTask](./bitburner.basetask.md)
|
||||
|
||||
## Properties
|
||||
|
||||
<table><thead><tr><th>
|
||||
|
||||
Property
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Modifiers
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Type
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Description
|
||||
|
||||
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
[factionName](./bitburner.sleevefactiontask.factionname.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
[FactionName](./bitburner.factionname.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[factionWorkType](./bitburner.sleevefactiontask.factionworktype.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
[FactionWorkType](./bitburner.factionworktype.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[type](./bitburner.sleevefactiontask.type.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
"FACTION"
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
</tbody></table>
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveFactionTask](./bitburner.sleevefactiontask.md) > [type](./bitburner.sleevefactiontask.type.md)
|
||||
|
||||
## SleeveFactionTask.type property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type: "FACTION";
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveInfiltrateTask](./bitburner.sleeveinfiltratetask.md) > [cyclesNeeded](./bitburner.sleeveinfiltratetask.cyclesneeded.md)
|
||||
|
||||
## SleeveInfiltrateTask.cyclesNeeded property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
cyclesNeeded: number;
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveInfiltrateTask](./bitburner.sleeveinfiltratetask.md) > [cyclesWorked](./bitburner.sleeveinfiltratetask.cyclesworked.md)
|
||||
|
||||
## SleeveInfiltrateTask.cyclesWorked property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
cyclesWorked: number;
|
||||
```
|
||||
@@ -2,16 +2,89 @@
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveInfiltrateTask](./bitburner.sleeveinfiltratetask.md)
|
||||
|
||||
## SleeveInfiltrateTask type
|
||||
## SleeveInfiltrateTask interface
|
||||
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type SleeveInfiltrateTask = {
|
||||
type: "INFILTRATE";
|
||||
cyclesWorked: number;
|
||||
cyclesNeeded: number;
|
||||
nextCompletion: Promise<void>;
|
||||
};
|
||||
interface SleeveInfiltrateTask extends BaseTask
|
||||
```
|
||||
**Extends:** [BaseTask](./bitburner.basetask.md)
|
||||
|
||||
## Properties
|
||||
|
||||
<table><thead><tr><th>
|
||||
|
||||
Property
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Modifiers
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Type
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Description
|
||||
|
||||
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
[cyclesNeeded](./bitburner.sleeveinfiltratetask.cyclesneeded.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[cyclesWorked](./bitburner.sleeveinfiltratetask.cyclesworked.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
number
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
[type](./bitburner.sleeveinfiltratetask.type.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
"INFILTRATE"
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
</tbody></table>
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveInfiltrateTask](./bitburner.sleeveinfiltratetask.md) > [type](./bitburner.sleeveinfiltratetask.type.md)
|
||||
|
||||
## SleeveInfiltrateTask.type property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type: "INFILTRATE";
|
||||
```
|
||||
@@ -2,11 +2,55 @@
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveRecoveryTask](./bitburner.sleeverecoverytask.md)
|
||||
|
||||
## SleeveRecoveryTask type
|
||||
## SleeveRecoveryTask interface
|
||||
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type SleeveRecoveryTask = { type: "RECOVERY" };
|
||||
interface SleeveRecoveryTask extends BaseTask
|
||||
```
|
||||
**Extends:** [BaseTask](./bitburner.basetask.md)
|
||||
|
||||
## Properties
|
||||
|
||||
<table><thead><tr><th>
|
||||
|
||||
Property
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Modifiers
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Type
|
||||
|
||||
|
||||
</th><th>
|
||||
|
||||
Description
|
||||
|
||||
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
[type](./bitburner.sleeverecoverytask.type.md)
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
"RECOVERY"
|
||||
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
</td></tr>
|
||||
</tbody></table>
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [SleeveRecoveryTask](./bitburner.sleeverecoverytask.md) > [type](./bitburner.sleeverecoverytask.type.md)
|
||||
|
||||
## SleeveRecoveryTask.type property
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type: "RECOVERY";
|
||||
```
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user