mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
CODEBASE: Remove barrel imports in Bladeburner code (#2580)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { Bladeburner } from "../../../src/Bladeburner/Bladeburner";
|
||||
import { PlayerObject } from "../../../src/PersonObjects/Player/PlayerObject";
|
||||
import { Player, setPlayer } from "@player";
|
||||
import { BlackOperation, Contract, GeneralAction, Operation } from "../../../src/Bladeburner/Actions";
|
||||
import { Contract } from "../../../src/Bladeburner/Actions/Contract";
|
||||
import { GeneralAction } from "../../../src/Bladeburner/Actions/GeneralAction";
|
||||
import { Operation } from "../../../src/Bladeburner/Actions/Operation";
|
||||
import {
|
||||
AugmentationName,
|
||||
BladeburnerActionType,
|
||||
@@ -336,7 +338,7 @@ describe("Bladeburner Actions", () => {
|
||||
const action = bb.getActionObject(id);
|
||||
if ("count" in action) action.count = 1;
|
||||
if (action.type === BladeburnerActionType.Operation) action.autoLevel = true;
|
||||
if (id.type === "Black Operations") bb.numBlackOpsComplete = (<BlackOperation>action).n;
|
||||
if (action.type === BladeburnerActionType.BlackOp) bb.numBlackOpsComplete = action.n;
|
||||
bb.startAction(id);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { Bladeburner } from "../../../src/Bladeburner/Bladeburner";
|
||||
import { Player, setPlayer } from "@player";
|
||||
import { PlayerObject } from "../../../src/PersonObjects/Player/PlayerObject";
|
||||
import { BladeburnerContractName } from "@enums";
|
||||
import { Contract } from "../../../src/Bladeburner/Actions";
|
||||
import { Contract } from "../../../src/Bladeburner/Actions/Contract";
|
||||
|
||||
describe("Bladeburner Console", () => {
|
||||
let inst: Bladeburner;
|
||||
|
||||
@@ -2,7 +2,9 @@ import { Player, setPlayer } from "@player";
|
||||
import { FormatsNeedToChange } from "../../../src/ui/formatNumber";
|
||||
import type { ActionIdFor } from "../../../src/Bladeburner/Types";
|
||||
import type { Bladeburner } from "../../../src/Bladeburner/Bladeburner";
|
||||
import { BlackOperation, Contract, Operation } from "../../../src/Bladeburner/Actions";
|
||||
import { BlackOperation } from "../../../src/Bladeburner/Actions/BlackOperation";
|
||||
import { Contract } from "../../../src/Bladeburner/Actions/Contract";
|
||||
import { Operation } from "../../../src/Bladeburner/Actions/Operation";
|
||||
import { SleeveSupportWork } from "../../../src/PersonObjects/Sleeve/Work/SleeveSupportWork";
|
||||
import { BladeburnerBlackOpName, BladeburnerContractName, BladeburnerOperationName } from "@enums";
|
||||
import { PlayerObject } from "../../../src/PersonObjects/Player/PlayerObject";
|
||||
|
||||
Reference in New Issue
Block a user