mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
14 lines
480 B
TypeScript
14 lines
480 B
TypeScript
// Function that returns the next Company Position in the "ladder"
|
|
// i.e. the next position to get promoted to
|
|
import type { CompanyPosition } from "./CompanyPosition";
|
|
import { CompanyPositions } from "./CompanyPositions";
|
|
|
|
export function getNextCompanyPositionHelper(currPos: CompanyPosition | null): CompanyPosition | null {
|
|
if (!currPos) return null;
|
|
|
|
const nextPosName = currPos.nextPosition;
|
|
if (!nextPosName) return null;
|
|
|
|
return CompanyPositions[nextPosName];
|
|
}
|