that's better
authorTheSaminator <thesaminator@users.noreply.github.com>
Mon, 4 Jul 2022 23:06:39 +0000 (19:06 -0400)
committerTheSaminator <thesaminator@users.noreply.github.com>
Mon, 4 Jul 2022 23:06:39 +0000 (19:06 -0400)
src/jsMain/kotlin/net/starshipfights/campaign/campaign_ui.kt

index 883e238d1d509a16aa72362cd002684abfbd4b23..0c3fa159efd131efa9dee08592783dbb782ca181 100644 (file)
@@ -231,12 +231,12 @@ object CampaignUI {
                                                val planets = system.bodies.values.filterIsInstance<CelestialObject.Planet>()
                                                val habitablePlanets = planets.filter { it.type == PlanetType.TERRESTRIAL }
                                                +" with "
-                                               if (habitablePlanets.size == planets.size)
-                                                       +"${planets.size} habitable planets"
+                                               +if (habitablePlanets.size == planets.size)
+                                                       "${planets.size} habitable planets"
                                                else if (habitablePlanets.isEmpty())
-                                                       +"${planets.size} non-habitable planets"
+                                                       "${planets.size} non-habitable planets"
                                                else
-                                                       +"${planets.size} planets, ${habitablePlanets.size} of them habitable"
+                                                       "${planets.size} planets, ${habitablePlanets.size} of them habitable"
                                        }
                                        p {
                                                style = "text-align:center"