From: TheSaminator Date: Mon, 4 Jul 2022 23:06:39 +0000 (-0400) Subject: that's better X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=a56717be36fd9de7a530dfea5cbafa0cee1f7f2f;p=starship-fights that's better --- diff --git a/src/jsMain/kotlin/net/starshipfights/campaign/campaign_ui.kt b/src/jsMain/kotlin/net/starshipfights/campaign/campaign_ui.kt index 883e238..0c3fa15 100644 --- a/src/jsMain/kotlin/net/starshipfights/campaign/campaign_ui.kt +++ b/src/jsMain/kotlin/net/starshipfights/campaign/campaign_ui.kt @@ -231,12 +231,12 @@ object CampaignUI { val planets = system.bodies.values.filterIsInstance() 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"