From 48b5a2a95671dd201cf8c3e80b91e474ed2de7d1 Mon Sep 17 00:00:00 2001 From: Armin Kretschmer Date: Mon, 6 Jan 2025 13:19:01 +0100 Subject: [PATCH] Show the remaining mission time more precisely --- data/lang/ui-core/en.json | 2 +- data/pigui/modules/info-view/04-missions.lua | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/data/lang/ui-core/en.json b/data/lang/ui-core/en.json index 75c62398d6..75ad23e4e7 100644 --- a/data/lang/ui-core/en.json +++ b/data/lang/ui-core/en.json @@ -505,7 +505,7 @@ }, "D_DAYS_LEFT": { "description": "", - "message": "Days left: %d" + "message": "Time left:" }, "ECONOMY_TRADE": { "description": "", diff --git a/data/pigui/modules/info-view/04-missions.lua b/data/pigui/modules/info-view/04-missions.lua index 55d5801ba1..6c258c99a5 100644 --- a/data/pigui/modules/info-view/04-missions.lua +++ b/data/pigui/modules/info-view/04-missions.lua @@ -102,7 +102,6 @@ local function makeMissionRows() end local playerSystem = Game.system or Game.player:GetHyperspaceTarget():GetStarSystem() - local days = math.max(0, (mission.due - Game.time) / (24*60*60)) -- Use AU for interplanetary, LY for interstellar distances local dist, dist_display @@ -123,7 +122,7 @@ local function makeMissionRows() mission:GetTypeDescription(), mission.client.name, locationName .. dist_display, - ui.Format.Date(mission.due) .."\n".. string.format(l.D_DAYS_LEFT, days), + ui.Format.Date(mission.due) .."\n".. l.D_DAYS_LEFT .." ".. ui.Format.Duration(mission.due - Game.time, 2), ui.Format.Money(mission.reward), }