From 2b26b21295122162b417225e75f766beefa13ed3 Mon Sep 17 00:00:00 2001 From: Cromha <87318892+OcelotWalrus@users.noreply.github.com> Date: Wed, 1 Jan 2025 15:25:00 +0100 Subject: [PATCH] feature[minor] - display travel time for harbor tickets --- source/zone_handling.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/zone_handling.py b/source/zone_handling.py index 6a14f08..6ab487f 100644 --- a/source/zone_handling.py +++ b/source/zone_handling.py @@ -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: