import * as React from "react"; import { formatNumber, convertTimeMsToTimeElapsedString, } from "../../../utils/StringHelperFunctions"; import { ActionTypes } from "../data/ActionTypes"; import { createProgressBarText } from "../../../utils/helpers/createProgressBarText"; import { stealthIcon, killIcon } from "../data/Icons"; import { BlackOperations } from "../BlackOperations"; import { BlackOperation } from "../BlackOperation"; import { BlackOpElem } from "./BlackOpElem"; interface IProps { bladeburner: any; } export function BlackOpList(props: IProps): React.ReactElement { let blackops: BlackOperation[] = []; for (const blackopName in BlackOperations) { if (BlackOperations.hasOwnProperty(blackopName)) { blackops.push(BlackOperations[blackopName]); } } blackops.sort(function(a, b) { return (a.reqdRank - b.reqdRank); }); blackops = blackops.filter((blackop: BlackOperation, i: number) => !(props.bladeburner.blackops[blackops[i].name] == null && i !== 0 && props.bladeburner.blackops[blackops[i-1].name] == null)); blackops = blackops.reverse(); return (<> {blackops.map((blackop: BlackOperation) =>
  • )} ); }