Skip pre-reqs and exclusives in sleeve modal

This commit is contained in:
nickofolas
2022-04-22 17:09:14 -05:00
parent 46e5738f0a
commit bb78326dd9
2 changed files with 8 additions and 2 deletions

View File

@ -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>

View File

@ -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">