mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 04:35:46 +01:00
Changelog + misc minor changes
Recovery textarea no longer spellchecks, fixed some "as" type assertions that were not necessary.
This commit is contained in:
parent
759f86d6e5
commit
4ebfdcc4a8
@ -341,7 +341,7 @@ export const achievements: Record<string, Achievement> = {
|
|||||||
SCRIPT_32GB: {
|
SCRIPT_32GB: {
|
||||||
...achievementData["SCRIPT_32GB"],
|
...achievementData["SCRIPT_32GB"],
|
||||||
Icon: "bigcost",
|
Icon: "bigcost",
|
||||||
Condition: () => Player.getHomeComputer().scripts.some((s) => (s.ramUsage as number) >= 32),
|
Condition: () => Player.getHomeComputer().scripts.some((s) => s.ramUsage ?? 0 >= 32),
|
||||||
},
|
},
|
||||||
FIRST_HACKNET_NODE: {
|
FIRST_HACKNET_NODE: {
|
||||||
...achievementData["FIRST_HACKNET_NODE"],
|
...achievementData["FIRST_HACKNET_NODE"],
|
||||||
|
@ -229,22 +229,32 @@ export const CONSTANTS: {
|
|||||||
|
|
||||||
LatestUpdate: `
|
LatestUpdate: `
|
||||||
v2.3 Dev
|
v2.3 Dev
|
||||||
|
* Monaco script editor updated to a newer version + more config options. (@Snarling)
|
||||||
|
* Revamp of script ram calculation process, should be more reliable now. (@Snarling)
|
||||||
|
* The SF9.3 bonus is also given to the player when inside of BN9. (@Zelow79)
|
||||||
|
* Adjusted the SF1 bonus for hacknet costs (slight nerf), and raised the SF9 bonus to compensate. (@d0sboots)
|
||||||
|
* Sleeve shock recovery now scales with intelligence. (@Tyasuh)
|
||||||
|
* Improve ns.scp filename recognition when leading slash discrepancy (@lucebac)
|
||||||
|
* Fix memory leak when netscript ports were initialized and never used again. (@Snarling)
|
||||||
|
* Fix a bug that could result in an infinite atExit loop if a script killed itself. (@Snarling)
|
||||||
|
* Fix a bug where numeric terminal arguments were not being detected as strings when enclosed in quote marks. (@LiamGeorge1999)
|
||||||
|
* Fix a bug with hackAnalyzeThreads where infinite threads would be indicated any time a single thread would hack less than $1 (@Snarling)
|
||||||
|
* Fix a misspelled moneySourceTracker call for sleeves (@zerbosh)
|
||||||
|
* All Math Expressions contract no longer accepts wrong answers (@Snarling)
|
||||||
|
* Improve Electron's handling of external links (@Snarling)
|
||||||
|
* Documentation improvements (@Mughur, @quacksouls, @Snarling, @AdityaHegde)
|
||||||
|
* Nerf noodle bar
|
||||||
|
|
||||||
Major bugfix (Will backport these changes to 2.2.2 if possible)
|
2.2.2 Hotfixes
|
||||||
* Fix an issue that prevented the Electron API server from communicating with the VSCode plugin. (credit to u/AnyGiraffe4367 on reddit)
|
* Fix an issue that prevented the Electron API server from communicating with the VSCode plugin. (credit to u/AnyGiraffe4367 on reddit)
|
||||||
|
|
||||||
Other changes
|
Other changes
|
||||||
* Monaco script editor updated to a newer version. Also many internal code changes to support this. (@Snarling)
|
|
||||||
* The SF9.3 bonus is also given to the player when inside of BN9. (@Zelow79)
|
|
||||||
* Sleeve shock recovery now scales with intelligence. (@Tyasuh)
|
|
||||||
* Nerf noodle bar
|
|
||||||
|
|
||||||
Planned changes:
|
Planned changes:
|
||||||
* 2.3 will include a large planned rework to corporation. This may cause api breaks for any corporation scripts, and there will be large changes in how the corporation mechanic functions.
|
* 2.3 will include a large planned rework to corporation. This may cause api breaks for any corporation scripts, and there will be large changes in how the corporation mechanic functions.
|
||||||
* Enum changes, potentially causing API break with some enums. Enums will be more usable and there will be more of them.
|
* Enum changes, potentially causing API break with some enums. Enums will be more usable and there will be more of them.
|
||||||
* Constants rework - interenal game constants will be reorganized and will be provided to the player as different categories of constants.
|
* Constants rework - interenal game constants will be reorganized and will be provided to the player as different categories of constants.
|
||||||
* Improve type validation on ns functions.
|
* Improve type validation on ns functions.
|
||||||
* Add more Script Editor configuration options (font family, ligatures, etc).
|
|
||||||
* Further deprecation of ns1. Removal of more documentation, add ingame notice to prompt player to update scripts to .js.
|
* Further deprecation of ns1. Removal of more documentation, add ingame notice to prompt player to update scripts to .js.
|
||||||
* Nerf noodle bar
|
* Nerf noodle bar
|
||||||
`,
|
`,
|
||||||
|
@ -33,7 +33,7 @@ import { BaseServer } from "../Server/BaseServer";
|
|||||||
import { dialogBoxCreate } from "../ui/React/DialogBox";
|
import { dialogBoxCreate } from "../ui/React/DialogBox";
|
||||||
import { checkEnum } from "../utils/helpers/enum";
|
import { checkEnum } from "../utils/helpers/enum";
|
||||||
import { RamCostConstants } from "./RamCostGenerator";
|
import { RamCostConstants } from "./RamCostGenerator";
|
||||||
import { PositiveInteger } from "../types";
|
import { isPositiveInteger, PositiveInteger } from "../types";
|
||||||
|
|
||||||
export const helpers = {
|
export const helpers = {
|
||||||
string,
|
string,
|
||||||
@ -161,10 +161,10 @@ function number(ctx: NetscriptContext, argName: string, v: unknown): number {
|
|||||||
/** Convert provided value v for argument argName to a positive integer, throwing if it looks like something else. */
|
/** Convert provided value v for argument argName to a positive integer, throwing if it looks like something else. */
|
||||||
function positiveInteger(ctx: NetscriptContext, argName: string, v: unknown): PositiveInteger {
|
function positiveInteger(ctx: NetscriptContext, argName: string, v: unknown): PositiveInteger {
|
||||||
const n = number(ctx, argName, v);
|
const n = number(ctx, argName, v);
|
||||||
if (n < 1 || !Number.isInteger(n)) {
|
if (!isPositiveInteger(n)) {
|
||||||
throw makeRuntimeErrorMsg(ctx, `${argName} should be a positive integer, was ${n}`, "TYPE");
|
throw makeRuntimeErrorMsg(ctx, `${argName} should be a positive integer, was ${n}`, "TYPE");
|
||||||
}
|
}
|
||||||
return n as PositiveInteger;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns args back if it is a ScriptArg[]. Throws an error if it is not. */
|
/** Returns args back if it is a ScriptArg[]. Throws an error if it is not. */
|
||||||
|
@ -92,6 +92,7 @@ export function RecoveryRoot({ softReset, errorData, resetError }: IProps): Reac
|
|||||||
multiline
|
multiline
|
||||||
fullWidth
|
fullWidth
|
||||||
rows={12}
|
rows={12}
|
||||||
|
spellCheck={false}
|
||||||
sx={{ "& .MuiOutlinedInput-root": { color: Settings.theme.secondary } }}
|
sx={{ "& .MuiOutlinedInput-root": { color: Settings.theme.secondary } }}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
Loading…
Reference in New Issue
Block a user