public override string ToString() { StringBuilder output = new StringBuilder(); output.Append($"{sysNum}: \""); if (planets.Count() == 0) { if (anomaly.HasFlag(Anomaly.Asteroids)) { output.Append("Asteroid Field"); } else if (anomaly.HasFlag(Anomaly.Nova)) { output.Append("Supernova"); } else if (anomaly.HasFlag(Anomaly.Nebula)) { output.Append("Nebula"); } else if (anomaly.HasFlag(Anomaly.Rift)) { output.Append("Gravity Rift"); } else if (wormholes != Wormhole.None) { output.Append($"{wormholes.ToString()} wormhole"); } else if (sysNum > 0) { output.Append("Empty Space"); } } for (int i = 0; i < planets.Count; i++) { output.Append(planets[i].ToString()); if (i != planets.Count - 1) { output.Append(" / "); } } return(output.ToString()); }