File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -35,19 +35,23 @@ let private placesWithSpecialProperties state =
3535 Map.merge rentedPlaces scheduledConcert
3636
3737
38- let private placeWithOpenInfo ( city : City ) ( place : Place ) specialProperties =
38+ let private placeWithInfo ( city : City ) ( place : Place ) specialProperties =
3939 let state = State.get ()
4040
4141 let currentlyOpen = Queries.World.placeCurrentlyOpen' state place
4242
4343 let placeSpecialProperties = specialProperties |> Map.tryFind place.Id
4444
45+ let zone = Queries.World.zoneInCityById city.Id place.ZoneId
46+ let zonePrefix = $" {zone.Name |> Styles.place},"
47+
4548 let placeDetails =
4649 match placeSpecialProperties with
47- | Some Rented -> $""" {place.Name} ({"Rented" |> Styles.highlight})"""
50+ | Some Rented ->
51+ $""" {zonePrefix} {place.Name} ({"Rented" |> Styles.highlight})"""
4852 | Some ConcertScheduled ->
49- $""" {place.Name} ({"Concert scheduled" |> Styles.highlight})"""
50- | None -> place.Name
53+ $""" {zonePrefix} { place.Name} ({"Concert scheduled" |> Styles.highlight})"""
54+ | None -> $ " {zonePrefix} { place.Name} "
5155
5256 World.placeNameWithOpeningInfo placeDetails currentlyOpen
5357
@@ -58,7 +62,7 @@ let private showPlaceChoice city placesInCity places =
5862 showCancellableChoicePrompt
5963 Command.mapChoosePlace
6064 Generic.back
61- ( fun place -> placeWithOpenInfo city place specialProperties)
65+ ( fun place -> placeWithInfo city place specialProperties)
6266 places
6367
6468 match selectedPlace with
You can’t perform that action at this time.
0 commit comments