From 3f29d725eaac3d4e95e9fd2759e12f3d9aa6ff9d Mon Sep 17 00:00:00 2001 From: lightheel Date: Fri, 6 Mar 2026 15:16:43 -0500 Subject: [PATCH] Updated opponent list to show display name. --- .../com/github/nacabaro/vbhelper/battle/APIBattleCharacter.kt | 3 ++- .../java/com/github/nacabaro/vbhelper/screens/BattlesScreen.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/nacabaro/vbhelper/battle/APIBattleCharacter.kt b/app/src/main/java/com/github/nacabaro/vbhelper/battle/APIBattleCharacter.kt index ddf3102..d2b9330 100644 --- a/app/src/main/java/com/github/nacabaro/vbhelper/battle/APIBattleCharacter.kt +++ b/app/src/main/java/com/github/nacabaro/vbhelper/battle/APIBattleCharacter.kt @@ -9,5 +9,6 @@ data class APIBattleCharacter( val baseHp: Int, val currentHp: Int, val baseBp: Float, - val baseAp: Float + val baseAp: Float, + val displayName: String? = null ) \ No newline at end of file diff --git a/app/src/main/java/com/github/nacabaro/vbhelper/screens/BattlesScreen.kt b/app/src/main/java/com/github/nacabaro/vbhelper/screens/BattlesScreen.kt index b2581c0..dad71ac 100644 --- a/app/src/main/java/com/github/nacabaro/vbhelper/screens/BattlesScreen.kt +++ b/app/src/main/java/com/github/nacabaro/vbhelper/screens/BattlesScreen.kt @@ -2335,7 +2335,7 @@ fun BattlesScreen() { }, modifier = Modifier.fillMaxWidth() ) { - Text("Battle ${opponent.name}") + Text("Battle ${opponent.displayName?.takeIf { it.isNotBlank() } ?: opponent.name}") } } }