From e74d6107c9687480ec91b2f159a7e23084175ff3 Mon Sep 17 00:00:00 2001 From: jjayeon Date: Mon, 28 Feb 2022 07:04:47 -0500 Subject: [PATCH 1/2] add box showing remaining augments per faction --- src/Faction/ui/FactionsRoot.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Faction/ui/FactionsRoot.tsx b/src/Faction/ui/FactionsRoot.tsx index 8ec03138e..26bb52f86 100644 --- a/src/Faction/ui/FactionsRoot.tsx +++ b/src/Faction/ui/FactionsRoot.tsx @@ -75,6 +75,15 @@ export function FactionsRoot(props: IProps): React.ReactElement { + + + Augmentations Left: {Factions[faction] + .augmentations + .filter((augmentation: string) => + !props.player.hasAugmentation(augmentation)) + .length} + + ))} From ef230b8265e73979c7fa71387212978098f62c08 Mon Sep 17 00:00:00 2001 From: autumn Date: Mon, 28 Feb 2022 21:20:58 -0500 Subject: [PATCH 2/2] Update FactionsRoot.tsx --- src/Faction/ui/FactionsRoot.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Faction/ui/FactionsRoot.tsx b/src/Faction/ui/FactionsRoot.tsx index 26bb52f86..4d052912a 100644 --- a/src/Faction/ui/FactionsRoot.tsx +++ b/src/Faction/ui/FactionsRoot.tsx @@ -76,7 +76,7 @@ export function FactionsRoot(props: IProps): React.ReactElement { - + Augmentations Left: {Factions[faction] .augmentations .filter((augmentation: string) =>