Prettified "mission status report" messages

This commit is contained in:
Ambroise Garel
2025-07-29 14:42:17 +02:00
parent 89e390eaa0
commit b4704f885f
2 changed files with 30 additions and 14 deletions
+17 -1
View File
@@ -111,12 +111,26 @@ do
if missionStatus == TUM.mission.status.NONE then return "" end
local missionSummary = ""
local validObjCount = 1
for i=1,TUM.objectives.getCount() do
local o = TUM.objectives.getObjective(i)
if o then
if not o.completed or not onlyShowIncomplete then
missionSummary = missionSummary.."- Objective "..o.name..": "..Library.tasks[o.taskID].description.short
local bulletCharacter = ""
if validObjCount == 1 then bulletCharacter = ""
elseif validObjCount == 2 then bulletCharacter = ""
elseif validObjCount == 3 then bulletCharacter = ""
elseif validObjCount == 4 then bulletCharacter = ""
elseif validObjCount == 5 then bulletCharacter = ""
elseif validObjCount == 6 then bulletCharacter = ""
elseif validObjCount == 7 then bulletCharacter = ""
elseif validObjCount == 8 then bulletCharacter = ""
elseif validObjCount == 9 then bulletCharacter = ""
elseif validObjCount == 10 then bulletCharacter = ""
end
missionSummary = missionSummary..bulletCharacter.." Objective "..o.name..": "..Library.tasks[o.taskID].description.short
if not o.completed then
missionSummary = missionSummary.." ("..TUM.objectives.getObjectiveProgress(i, doublePercentage)..")"
else
@@ -126,6 +140,8 @@ do
if i < TUM.objectives.getCount() then
missionSummary = missionSummary.."\n"
end
validObjCount = validObjCount + 1
end
end
end