From 0200eb0a43ac91015c80f9e36659c64a60067525 Mon Sep 17 00:00:00 2001 From: Garemat <9209350+Garemat@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:54:14 +0100 Subject: [PATCH] fix: sort machination target list by powerPoints not matchPoints matchPoints alone excludes mpAdjustment and inGameMp, which meant players with host-applied point corrections ranked incorrectly. powerPoints is the pre-computed total (VP + vpAdj + MP + mpAdj + igmp). Co-Authored-By: Claude Sonnet 4.6 --- .../io/github/garemat/lunachron/ui/MachinationsPhaseUI.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/io/github/garemat/lunachron/ui/MachinationsPhaseUI.kt b/app/src/main/java/io/github/garemat/lunachron/ui/MachinationsPhaseUI.kt index 39b4c09..a493298 100644 --- a/app/src/main/java/io/github/garemat/lunachron/ui/MachinationsPhaseUI.kt +++ b/app/src/main/java/io/github/garemat/lunachron/ui/MachinationsPhaseUI.kt @@ -78,10 +78,7 @@ internal fun OnlineMachinationsTab( val attacksEnabled = campaign.settings?.attacksEnabled == true val rankedMembers = remember(approvedMembers) { - approvedMembers.sortedWith( - compareByDescending { it.matchPoints } - .thenByDescending { it.victoryPoints } - ) + approvedMembers.sortedByDescending { it.powerPoints } } val rankOf = remember(rankedMembers) { rankedMembers.mapIndexed { i, m -> m.deviceId to i + 1 }.toMap()