mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
TYPESAFETY: Strict internal typing for AugmentationName (#608)
This commit is contained in:
@@ -7,7 +7,7 @@ import { Player } from "@player";
|
||||
import { convertTimeMsToTimeElapsedString } from "../utils/StringHelperFunctions";
|
||||
import { GetServer } from "../Server/AllServers";
|
||||
import { formatMoney } from "../ui/formatNumber";
|
||||
import { BitNodeMultipliers } from "../BitNode/BitNodeMultipliers";
|
||||
import { currentNodeMults } from "../BitNode/BitNodeMultipliers";
|
||||
import { BitFlumeEvent } from "../BitNode/ui/BitFlumeModal";
|
||||
import { calculateHackingTime, calculateGrowTime, calculateWeakenTime } from "../Hacking";
|
||||
import { CompletedProgramName, FactionName } from "@enums";
|
||||
@@ -286,7 +286,7 @@ export const Programs: Record<CompletedProgramName, Program> = {
|
||||
name: CompletedProgramName.flight,
|
||||
create: null,
|
||||
run: (): void => {
|
||||
const numAugReq = BitNodeMultipliers.DaedalusAugsRequirement;
|
||||
const numAugReq = currentNodeMults.DaedalusAugsRequirement;
|
||||
const fulfilled =
|
||||
Player.augmentations.length >= numAugReq && Player.money > 1e11 && Player.skills.hacking >= 2500;
|
||||
if (!fulfilled) {
|
||||
|
||||
Reference in New Issue
Block a user