Updated opponent list to show display name.

This commit is contained in:
lightheel 2026-03-06 15:16:43 -05:00
parent 977896d296
commit 3f29d725ea
2 changed files with 3 additions and 2 deletions

View File

@ -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
)

View File

@ -2335,7 +2335,7 @@ fun BattlesScreen() {
},
modifier = Modifier.fillMaxWidth()
) {
Text("Battle ${opponent.name}")
Text("Battle ${opponent.displayName?.takeIf { it.isNotBlank() } ?: opponent.name}")
}
}
}