From e966e78b72b3a34e947f0f255cb839f11d6387e3 Mon Sep 17 00:00:00 2001 From: TheAimMan <147098375+TheAimMan@users.noreply.github.com> Date: Sat, 10 Feb 2024 04:14:11 -0500 Subject: [PATCH] MISC: Add an option to run b1t_flume with a "quick" option (#1072) --- src/Programs/Programs.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Programs/Programs.ts b/src/Programs/Programs.ts index c963a2e5e..715c05961 100644 --- a/src/Programs/Programs.ts +++ b/src/Programs/Programs.ts @@ -11,6 +11,8 @@ import { currentNodeMults } from "../BitNode/BitNodeMultipliers"; import { BitFlumeEvent } from "../BitNode/ui/BitFlumeModal"; import { calculateHackingTime, calculateGrowTime, calculateWeakenTime } from "../Hacking"; import { CompletedProgramName, FactionName } from "@enums"; +import { Router } from "../ui/GameRoot"; +import { Page } from "../ui/Router"; function requireHackingLevel(lvl: number) { return function () { @@ -278,8 +280,14 @@ export const Programs: Record = { req: bitFlumeRequirements(), time: CONSTANTS.MillisecondsPerFiveMinutes / 20, }, - run: (): void => { - BitFlumeEvent.emit(); + run: (args: string[]): void => { + if (args.length == 1) { + if (args[0] == "-q") { + Router.toPage(Page.BitVerse, { flume: true, quick: true }); + } + } else { + BitFlumeEvent.emit(); + } }, }), [CompletedProgramName.flight]: new Program({