diff --git a/src/Gang/ui/TerritorySubpage.tsx b/src/Gang/ui/TerritorySubpage.tsx index 9a9939416..ea58ccbfa 100644 --- a/src/Gang/ui/TerritorySubpage.tsx +++ b/src/Gang/ui/TerritorySubpage.tsx @@ -86,7 +86,11 @@ export function TerritorySubpage(): React.ReactElement { {gangNames - .filter((name) => AllGangs[name].territory > 0) + .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) => ( ))} @@ -116,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)}