mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 01:03:01 +02:00
16 lines
604 B
TypeScript
16 lines
604 B
TypeScript
import { Augmentations } from "../../Augmentation/Augmentations";
|
|
import { AugmentationNames } from "../../Augmentation/data/AugmentationNames";
|
|
import { IPlayer } from "../IPlayer";
|
|
|
|
export const getGraftingAvailableAugs = (player: IPlayer): string[] => {
|
|
const augs: string[] = [];
|
|
|
|
for (const [augName, aug] of Object.entries(Augmentations)) {
|
|
if (augName === AugmentationNames.NeuroFluxGovernor || augName === AugmentationNames.TheRedPill || aug.isSpecial)
|
|
continue;
|
|
augs.push(augName);
|
|
}
|
|
|
|
return augs.filter((augmentation: string) => !player.hasAugmentation(augmentation));
|
|
};
|