mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-08 19:32:31 +01:00
Skip pre-reqs and exclusives in sleeve modal
This commit is contained in:
@ -129,6 +129,8 @@ interface IPurchaseableAugsProps {
|
||||
purchaseAugmentation: (player: IPlayer, aug: Augmentation, showModal: (open: boolean) => void) => void;
|
||||
|
||||
rep?: number;
|
||||
skipPreReqs?: boolean;
|
||||
skipExclusiveIndicator?: boolean;
|
||||
}
|
||||
|
||||
export const PurchaseableAugmentations = (props: IPurchaseableAugsProps): React.ReactElement => {
|
||||
@ -192,10 +194,12 @@ export const PurchaseableAugmentations = (props: IPurchaseableAugsProps): React.
|
||||
{aug.name}
|
||||
{aug.name === AugmentationNames.NeuroFluxGovernor && ` - Level ${getNextNeuroFluxLevel()}`}
|
||||
</Typography>
|
||||
{aug.factions.length === 1 && <Exclusive player={props.player} aug={aug} />}
|
||||
{aug.factions.length === 1 && !props.skipExclusiveIndicator && (
|
||||
<Exclusive player={props.player} aug={aug} />
|
||||
)}
|
||||
</Box>
|
||||
|
||||
{aug.prereqs.length > 0 && <PreReqs player={props.player} aug={aug} />}
|
||||
{aug.prereqs.length > 0 && !props.skipPreReqs && <PreReqs player={props.player} aug={aug} />}
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
|
@ -66,6 +66,8 @@ export function SleeveAugmentationsModal(props: IProps): React.ReactElement {
|
||||
props.sleeve.tryBuyAugmentation(player, aug);
|
||||
rerender();
|
||||
}}
|
||||
skipPreReqs
|
||||
skipExclusiveIndicator
|
||||
/>
|
||||
{/* <Box component={Paper} sx={{ my: 1, p: 1 }}>
|
||||
<Table size="small" padding="none">
|
||||
|
Reference in New Issue
Block a user