Add troops stat to ship stat page
authorTheSaminator <TheSaminator@users.noreply.github.com>
Sat, 4 Jun 2022 22:14:13 +0000 (18:14 -0400)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Sat, 4 Jun 2022 22:14:13 +0000 (18:14 -0400)
src/jvmMain/kotlin/starshipfights/info/views_ships.kt

index 3d875602a933a628c5fe99727ffefd86224ce572..b162d9a107802a6f599eee026a552eae123d2616 100644 (file)
@@ -78,6 +78,8 @@ suspend fun ApplicationCall.shipPage(shipType: ShipType): HTML.() -> Unit = page
                                }
                                td {
                                        +"${shipType.weightClass.durability.maxHullPoints} impacts"
+                                       br
+                                       +"${shipType.weightClass.durability.troopsDefense} troops"
                                }
                                td {
                                        when (val durability = shipType.weightClass.durability) {