mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 00:32:51 +02:00
BITNODE: IPvGO territory control strategy game (#934)
This commit is contained in:
committed by
GitHub
parent
c6141f2adf
commit
7ef12a0323
@@ -66,6 +66,7 @@ import { convertTimeMsToTimeElapsedString } from "./utils/StringHelperFunctions"
|
||||
import { LogBoxEvents, LogBoxCloserEvents } from "./ui/React/LogBoxManager";
|
||||
import { arrayToString } from "./utils/helpers/ArrayHelpers";
|
||||
import { NetscriptGang } from "./NetscriptFunctions/Gang";
|
||||
import { NetscriptGo } from "./NetscriptFunctions/Go";
|
||||
import { NetscriptSleeve } from "./NetscriptFunctions/Sleeve";
|
||||
import { NetscriptExtra } from "./NetscriptFunctions/Extra";
|
||||
import { NetscriptHacknet } from "./NetscriptFunctions/Hacknet";
|
||||
@@ -126,6 +127,7 @@ export type NSFull = Readonly<Omit<NS & INetscriptExtra, "pid" | "args" | "enums
|
||||
export const ns: InternalAPI<NSFull> = {
|
||||
singularity: NetscriptSingularity(),
|
||||
gang: NetscriptGang(),
|
||||
go: NetscriptGo(),
|
||||
bladeburner: NetscriptBladeburner(),
|
||||
codingcontract: NetscriptCodingContract(),
|
||||
sleeve: NetscriptSleeve(),
|
||||
@@ -956,7 +958,7 @@ export const ns: InternalAPI<NSFull> = {
|
||||
throw helpers.makeRuntimeErrorMsg(ctx, "Requires Source-File 5 to run.");
|
||||
const n = Math.round(helpers.number(ctx, "n", _n));
|
||||
const lvl = Math.round(helpers.number(ctx, "lvl", _lvl));
|
||||
if (n < 1 || n > 13) throw new Error("n must be between 1 and 13");
|
||||
if (n < 1 || n > 14) throw new Error("n must be between 1 and 14");
|
||||
if (lvl < 1) throw new Error("lvl must be >= 1");
|
||||
|
||||
return Object.assign({}, getBitNodeMultipliers(n, lvl));
|
||||
|
||||
Reference in New Issue
Block a user