Skip to content

Commit

Permalink
feature[minor] - display travel time for harbor tickets
Browse files Browse the repository at this point in the history
  • Loading branch information
OcelotWalrus authored Jan 1, 2025
1 parent 82f969e commit 2b26b21
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions source/zone_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,15 @@ def print_harbor_information(map_zone, zone, map, player):
for travel in current_harbor["travels"]:
destination = map[f"point{current_harbor['travels'][travel]['destination']}"]
destination = f"({COLOR_GREEN}{destination['x']} {COLOR_RESET_ALL},{COLOR_GREEN}{destination['y']}{COLOR_RESET_ALL})"
travels += [
time = str(
str(round(
time_handling.return_game_day_from_seconds(current_harbor['travels'][travel]['travel time'], 1) * 24, 1
)) + "hrs"
)
travels += [
f" -{list(current_harbor['travels'])[count]} {destination}" +
f" {COLOR_YELLOW}{get_cost(round(current_harbor['travels'][travel]['cost'], 2), dropoff)}{COLOR_RESET_ALL}"
f" {COLOR_YELLOW}{get_cost(round(current_harbor['travels'][travel]['cost'], 2), dropoff)}{COLOR_RESET_ALL}" +
f" - {COLOR_CYAN}{time}{COLOR_RESET_ALL}"
]
count += 1
for travel in travels:
Expand Down

0 comments on commit 2b26b21

Please sign in to comment.