Fixes to text
authorTheSaminator <thesaminator@users.noreply.github.com>
Mon, 4 Jul 2022 23:03:06 +0000 (19:03 -0400)
committerTheSaminator <thesaminator@users.noreply.github.com>
Mon, 4 Jul 2022 23:03:06 +0000 (19:03 -0400)
src/jsMain/kotlin/net/starshipfights/campaign/campaign_ui.kt

index b8f182ce6f893163386525cea06059b71838b114..dcd31dbfc0724fc7553ed0b0693d23f08addf315 100644 (file)
@@ -230,7 +230,13 @@ object CampaignUI {
                                                }
                                                val planets = system.bodies.values.filterIsInstance<CelestialObject.Planet>()
                                                val habitablePlanets = planets.filter { it.type == PlanetType.TERRESTRIAL }
-                                               +" with ${planets.size} planet${if (planets.size == 1) "" else "s"}, ${habitablePlanets.size} of them habitable"
+                                               +" with "
+                                               if (habitablePlanets.size == planets.size)
+                                                       "${planets.size} habitable planets"
+                                               else if (habitablePlanets.isEmpty())
+                                                       +"${planets.size} non-habitable planets"
+                                               else
+                                                       +"${planets.size} planets, ${habitablePlanets.size} of them habitable"
                                        }
                                        p {
                                                style = "text-align:center"
@@ -244,7 +250,7 @@ object CampaignUI {
                                        }
                                        p {
                                                style = "text-align:center"
-                                               +"${system.totalFleetStrength} fleet strength"
+                                               +"${system.totalFleetStrength} fleet strength present"
                                        }
                                        
                                        selectedSystemIndicators[selection.id]?.visible = true