mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-17 13:13:49 +01:00
VERSION: Begin 2.6.0 dev cycle (#992)
This commit is contained in:
parent
7ef12a0323
commit
489ba595f3
2
electron/package-lock.json
generated
2
electron/package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "bitburner",
|
||||
"version": "2.5.2",
|
||||
"version": "2.6.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "bitburner",
|
||||
"version": "2.5.2",
|
||||
"version": "2.6.0",
|
||||
"description": "A cyberpunk-themed programming incremental game",
|
||||
"main": "main.js",
|
||||
"author": "Daniel Xie, Olivier Gagnon, et al.",
|
||||
|
@ -4,14 +4,14 @@
|
||||
|
||||
## Go.getOpponent() method
|
||||
|
||||
Returns the name of the opponent faction in the current subnet. "Netburners" \| "Slum Snakes" \| "The Black Hand" \| "Tetrads" \| "Daedalus" \| "Illuminati"
|
||||
Returns the name of the opponent faction in the current subnet.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
getOpponent(): opponents;
|
||||
getOpponent(): GoOpponent | "No AI" | "????????????";
|
||||
```
|
||||
**Returns:**
|
||||
|
||||
opponents
|
||||
[GoOpponent](./bitburner.goopponent.md) \| "No AI" \| "????????????"
|
||||
|
||||
|
@ -34,7 +34,7 @@ export interface Go
|
||||
]
|
||||
```
|
||||
<p>Each string represents a vertical column on the board, and each character in the string represents a point.</p><p>Traditional notation for Go is e.g. "B,1" referring to second ("B") column, first rank. This is the equivalent of index \[1\]\[0\].</p><p>Note that the \[0\]\[0\] point is shown on the bottom-left on the visual board (as is traditional), and each string represents a vertical column on the board. In other words, the printed example above can be understood to be rotated 90 degrees clockwise compared to the board UI as shown in the IPvGO subnet tab.</p> |
|
||||
| [getOpponent()](./bitburner.go.getopponent.md) | Returns the name of the opponent faction in the current subnet. "Netburners" \| "Slum Snakes" \| "The Black Hand" \| "Tetrads" \| "Daedalus" \| "Illuminati" |
|
||||
| [getOpponent()](./bitburner.go.getopponent.md) | Returns the name of the opponent faction in the current subnet. |
|
||||
| [makeMove(x, y)](./bitburner.go.makemove.md) | Make a move on the IPvGO subnet gameboard, and await the opponent's response. x:0 y:0 represents the bottom-left corner of the board in the UI. |
|
||||
| [passTurn()](./bitburner.go.passturn.md) | <p>Pass the player's turn rather than making a move, and await the opponent's response. This ends the game if the opponent passed on the previous turn, or if the opponent passes on their following turn.</p><p>This can also be used if you pick up the game in a state where the opponent needs to play next. For example: if BitBurner was closed while waiting for the opponent to make a move, you may need to call passTurn() to get them to play their move on game start.</p> |
|
||||
| [resetBoardState(opponent, boardSize)](./bitburner.go.resetboardstate.md) | <p>Gets new IPvGO subnet with the specified size owned by the listed faction, ready for the player to make a move. This will reset your win streak if the current game is not complete and you have already made moves.</p><p>Note that some factions will have a few routers on the subnet at this state.</p><p>opponent is "Netburners" or "Slum Snakes" or "The Black Hand" or "Daedalus" or "Illuminati",</p> |
|
||||
|
@ -13,17 +13,14 @@ opponent is "Netburners" or "Slum Snakes" or "The Black Hand" or "Daedalus" or "
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
resetBoardState(
|
||||
opponent: "Netburners" | "Slum Snakes" | "The Black Hand" | "Tetrads" | "Daedalus" | "Illuminati",
|
||||
boardSize: 5 | 7 | 9 | 13,
|
||||
): string[] | undefined;
|
||||
resetBoardState(opponent: GoOpponent, boardSize: 5 | 7 | 9 | 13): string[] | undefined;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| opponent | "Netburners" \| "Slum Snakes" \| "The Black Hand" \| "Tetrads" \| "Daedalus" \| "Illuminati" | |
|
||||
| opponent | [GoOpponent](./bitburner.goopponent.md) | |
|
||||
| boardSize | 5 \| 7 \| 9 \| 13 | |
|
||||
|
||||
**Returns:**
|
||||
|
12
markdown/bitburner.goopponent.md
Normal file
12
markdown/bitburner.goopponent.md
Normal file
@ -0,0 +1,12 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [GoOpponent](./bitburner.goopponent.md)
|
||||
|
||||
## GoOpponent type
|
||||
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
type GoOpponent = "Netburners" | "Slum Snakes" | "The Black Hand" | "Tetrads" | "Daedalus" | "Illuminati";
|
||||
```
|
@ -150,6 +150,7 @@
|
||||
| [CorpUnlockName](./bitburner.corpunlockname.md) | |
|
||||
| [CorpUpgradeName](./bitburner.corpupgradename.md) | |
|
||||
| [FilenameOrPID](./bitburner.filenameorpid.md) | |
|
||||
| [GoOpponent](./bitburner.goopponent.md) | |
|
||||
| [NSEnums](./bitburner.nsenums.md) | |
|
||||
| [PlayerRequirement](./bitburner.playerrequirement.md) | Structured interface to requirements for joining a faction or company. For fields with numerical value > 0, the player must have at least this value. For fields with numerical value <<!-- -->= 0, the player must have at most this value. For "not", the sub-condition must be failed instead of passed. For "someCondition", at least one sub-condition must be passed. |
|
||||
| [PortData](./bitburner.portdata.md) | |
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "bitburner",
|
||||
"version": "2.5.2",
|
||||
"version": "2.6.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "bitburner",
|
||||
"license": "SEE LICENSE IN license.txt",
|
||||
"version": "2.5.2",
|
||||
"version": "2.6.0",
|
||||
"main": "electron-main.js",
|
||||
"author": {
|
||||
"name": "Daniel Xie, Olivier Gagnon, et al."
|
||||
|
@ -84,8 +84,8 @@ export const CONSTANTS: {
|
||||
Donations: number; // number of blood/plasma/palette donation the dev have verified., boosts NFG
|
||||
LatestUpdate: string;
|
||||
} = {
|
||||
VersionString: "2.5.2",
|
||||
isDevBranch: false,
|
||||
VersionString: "2.6.0dev",
|
||||
isDevBranch: true,
|
||||
VersionNumber: 37,
|
||||
|
||||
/** Max level for any skill, assuming no multipliers. Determined by max numerical value in javascript for experience
|
||||
@ -223,53 +223,15 @@ export const CONSTANTS: {
|
||||
|
||||
// Also update doc/source/changelog.rst
|
||||
LatestUpdate: `
|
||||
## v2.5.2 - 26 December 2023
|
||||
## v2.6.0 dev - Changelog last updated 26 December 2023
|
||||
|
||||
### MAJOR ADDITIONS
|
||||
|
||||
- A new minigame IPvGO, based on the game Go. See the "IPvGO Subnet" option from the sidebar. Documentation is also available under "How to Play" from that screen (@ficocelliguy)
|
||||
- A new BitNode has been added which focuses on the IPvGO mechanic (@ficocelliguy)
|
||||
|
||||
### API
|
||||
|
||||
- Added limit of 1e9 for additionalMsec property of HGWOptions (@d0sboots)
|
||||
- ns.share effect is now boosted by host server core count (@TheAimMan)
|
||||
- Fix a bug with HGWOptions that caused the default value to be 1 thread even for scripts running multiple threads (@DJMatch3000)
|
||||
- (Singularity) ns.singularity.applyToCompany now returns the JobName if a job was obtained, or null otherwise - previously was boolean (@jjclark1982)
|
||||
- (Singularity) ns.singularity.getCurrentWork now requires access to the singularity API (@TheAimMan)
|
||||
- (Singularity) Added ns.singularity.getFactionInviteRequirements (@jjclark1982)
|
||||
- (Stanek) ns.stanek.chargeFragment is now boosted by host server core count (@TheAimMan)
|
||||
|
||||
### BUGFIX
|
||||
|
||||
- (Bladeburner) Operation team size modal now handles keyboard submission correctly (@Snarling)
|
||||
- (Corporation) Fixed an issue with Warehouse size being out of sync following prduct sale (@Kelenius)
|
||||
- (Factions) Fixed some display order issues, and possible multiple entries for a faction (@jjclark1982)
|
||||
- (Factions) Fixed an issue with certain factions not becoming "known" when joining them (@jjclark1982)
|
||||
- (Grafting) Entropy now has the correct negative effect on hacknet multipliers (@TheAimMan)
|
||||
- (Hashnet) Fixed an issue where the SF9.3 reward server had an incorrect number of cores (@cigarmemr)
|
||||
- (Terminal) Fixed a bug with script autocompletion when the script is inside a subdirectory (@draughtnyan)
|
||||
|
||||
### MISC
|
||||
|
||||
- Added basic protection for certain global values that could cause a recovery screen if reassigned (@Snarling)
|
||||
- Fixed conditions for an easter egg message (@cigarmemr)
|
||||
- (Bitverse) Changed listed difficulty for BN3 to "hard"
|
||||
- (CodingContract) Reduce incidence of $0 coding contract rewards in circumstances where the reward would be $0 (@trambelus)
|
||||
- (Corporation) Added better accounting of funds transactions (@jjclark1982)
|
||||
- (Corporation) Remove cooldown on starting over corporation, but maintain remaining cooldown for selling shares (@jjclark1982)
|
||||
- (Corporation) Removed some legacy code that was not doing anything (@catloversg)
|
||||
- (DevMenu) Added the ability to add/remove sleeves from the dev menu (@Sphyxis, @Snarling)
|
||||
- (Docs) Fixed various typos in documentation (@tdpeuter)
|
||||
- (Factions) Added a documentation page for faction join requirements (@jjclark1982)
|
||||
- (Formulas) Added clarification for the unit of time returned by hackTime, growTime, and weakenTime functions (@d0sboots)
|
||||
- (Ports) Promises from port.nextWrite resolve in the same order they were created, instead of reverse order (@LJNeon)
|
||||
- (Sleeve) Add task counters for Crime and Bladeburner tasks (@TheAimMan)
|
||||
- (Stock) Add some randomization to timing for stockmarket forecast change events (@Caldwell-74)
|
||||
- (Terminal) Added the --all option for unalias, to allow removing all aliases (@Sphyxis)
|
||||
- Nerf noodle bar (various contributors)
|
||||
|
||||
### UI
|
||||
|
||||
- Message for buying TOR router no longer implies the need to connect to darkweb (@Kelenius)
|
||||
- (Company) Rework of the job location details (@jjclark1982)
|
||||
- (Company) Added previous/next buttons for job location if the player has multiple jobs (@Kelenius)
|
||||
- (Factions) Only show warning about enemy factions for factions with enemies (@jjclark1982)
|
||||
- (Stanek) Improved the display of the Stanek grid (@Kelenius)
|
||||
- Added the ns.go API, which allows interaction with the new IPvGO mechanic. While this is in development, the API may undergo changes. (@ficocelliguy)
|
||||
`,
|
||||
};
|
||||
|
13
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
13
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -1,7 +1,5 @@
|
||||
/** All netscript definitions */
|
||||
|
||||
import { opponents } from "../Go/boardState/goConstants";
|
||||
|
||||
/** @public */
|
||||
interface HP {
|
||||
current: number;
|
||||
@ -1043,6 +1041,9 @@ export type SleeveTask =
|
||||
| SleeveSupportTask
|
||||
| SleeveSynchroTask;
|
||||
|
||||
/** @public */
|
||||
type GoOpponent = "Netburners" | "Slum Snakes" | "The Black Hand" | "Tetrads" | "Daedalus" | "Illuminati";
|
||||
|
||||
/** Object representing a port. A port is a serialized queue.
|
||||
* @public */
|
||||
export interface NetscriptPort {
|
||||
@ -3882,9 +3883,8 @@ export interface Go {
|
||||
|
||||
/**
|
||||
* Returns the name of the opponent faction in the current subnet.
|
||||
* "Netburners" | "Slum Snakes" | "The Black Hand" | "Tetrads" | "Daedalus" | "Illuminati"
|
||||
*/
|
||||
getOpponent(): opponents;
|
||||
getOpponent(): GoOpponent | "No AI" | "????????????";
|
||||
|
||||
/**
|
||||
* Gets new IPvGO subnet with the specified size owned by the listed faction, ready for the player to make a move.
|
||||
@ -3900,10 +3900,7 @@ export interface Go {
|
||||
* @remarks
|
||||
* RAM cost: 0 GB
|
||||
*/
|
||||
resetBoardState(
|
||||
opponent: "Netburners" | "Slum Snakes" | "The Black Hand" | "Tetrads" | "Daedalus" | "Illuminati",
|
||||
boardSize: 5 | 7 | 9 | 13,
|
||||
): string[] | undefined;
|
||||
resetBoardState(opponent: GoOpponent, boardSize: 5 | 7 | 9 | 13): string[] | undefined;
|
||||
|
||||
/**
|
||||
* Tools to analyze the IPvGO subnet.
|
||||
|
Loading…
Reference in New Issue
Block a user