diff --git a/src/Augmentation/ui/PurchasableAugmentations.tsx b/src/Augmentation/ui/PurchasableAugmentations.tsx index 7872a6e84..37a2f95af 100644 --- a/src/Augmentation/ui/PurchasableAugmentations.tsx +++ b/src/Augmentation/ui/PurchasableAugmentations.tsx @@ -124,8 +124,7 @@ interface IPurchasableAugsProps { purchaseAugmentation: (player: IPlayer, aug: Augmentation, showModal: (open: boolean) => void) => void; rep?: number; - skipPreReqs?: boolean; - skipExclusiveIndicator?: boolean; + sleeveAugs?: boolean; faction?: Faction; } @@ -157,6 +156,8 @@ export function PurchasableAugmentation(props: IPurchasableAugProps): React.Reac const aug = Augmentations[props.augName]; + const cost = props.parent.sleeveAugs ? aug.startingCost : aug.baseCost; + const info = typeof aug.info === "string" ? {aug.info} : aug.info; const description = ( <> @@ -218,12 +219,12 @@ export function PurchasableAugmentation(props: IPurchasableAugProps): React.Reac {aug.name} {aug.name === AugmentationNames.NeuroFluxGovernor && ` - Level ${getNextNeuroFluxLevel()}`} - {aug.factions.length === 1 && !props.parent.skipExclusiveIndicator && ( + {aug.factions.length === 1 && !props.parent.sleeveAugs && ( )} - {aug.prereqs.length > 0 && !props.parent.skipPreReqs && } + {aug.prereqs.length > 0 && !props.parent.sleeveAugs && } @@ -231,8 +232,8 @@ export function PurchasableAugmentation(props: IPurchasableAugProps): React.Reac aug.baseCost} - value={numeralWrapper.formatMoney(aug.baseCost)} + fulfilled={aug.baseCost === 0 || props.parent.player.money > cost} + value={numeralWrapper.formatMoney(cost)} color={Settings.theme.money} /> {props.parent.rep !== undefined && ( diff --git a/src/PersonObjects/Sleeve/ui/SleeveAugmentationsModal.tsx b/src/PersonObjects/Sleeve/ui/SleeveAugmentationsModal.tsx index adb1c2800..a421a2220 100644 --- a/src/PersonObjects/Sleeve/ui/SleeveAugmentationsModal.tsx +++ b/src/PersonObjects/Sleeve/ui/SleeveAugmentationsModal.tsx @@ -58,8 +58,7 @@ export function SleeveAugmentationsModal(props: IProps): React.ReactElement { props.sleeve.tryBuyAugmentation(player, aug); rerender(); }} - skipPreReqs - skipExclusiveIndicator + sleeveAugs /> );