diff --git a/src/Gang/ui/TerritorySubpage.tsx b/src/Gang/ui/TerritorySubpage.tsx index 0c64ad6f0..ea58ccbfa 100644 --- a/src/Gang/ui/TerritorySubpage.tsx +++ b/src/Gang/ui/TerritorySubpage.tsx @@ -85,9 +85,15 @@ export function TerritorySubpage(): React.ReactElement { - {gangNames.map((name) => ( - - ))} + {gangNames + .sort((a, b) => { + if (AllGangs[a].territory <= 0 && AllGangs[b].territory > 0) return 1; + if (AllGangs[a].territory > 0 && AllGangs[b].territory <= 0) return -1; + return 0; + }) + .map((name) => ( + + ))} setInfoOpen(false)} /> @@ -114,14 +120,16 @@ function OtherGangTerritory(props: ITerritoryProps): React.ReactElement { const playerPower = AllGangs[gang.facName].power; const power = AllGangs[props.name].power; const clashVictoryChance = playerPower / (power + playerPower); + const territory = AllGangs[props.name].territory; + const opacity = territory ? 1 : 0.75; return ( - + {props.name} Power: {formatNumber(power, 3)}
- Territory: {formatTerritory(AllGangs[props.name].territory)}%
+ Territory: {formatTerritory(territory)}%
Clash Win Chance: {numeralWrapper.formatPercentage(clashVictoryChance, 3)}