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

View File

@ -256,21 +256,21 @@ Library.radioMessages = {
commandObjectiveCoordinatesPrecise = "Copy, navigational assist for objective $1.\n\n$2",
commandObjectivesManyLeft = {
"Stay focused, people. We still have work to do.\n$1",
"Our work is not done yet, we have a lot to do.\n$1",
"Flights, you've got a couple of tasks left, keep moving down the list.\n$1",
"Still a few objectives outstanding, don't break until they're complete.\n$1",
"Alright people, keep your focus, more work ahead before you can head home.\n$1",
"All flights, maintain timeline. You've got more boxes to check before RTB.\n$1"
"Stay focused, people. We still have work to do.\n\n$1",
"Our work is not done yet, we have a lot to do.\n\n$1",
"Flights, you've got a couple of tasks left, keep moving down the list.\n\n$1",
"Still a few objectives outstanding, don't break until they're complete.\n\n$1",
"Alright people, keep your focus, more work ahead before you can head home.\n\n$1",
"All flights, maintain timeline. You've got more boxes to check before RTB.\n\n$1"
},
commandObjectivesOneLeft = {
"All flights, you've got one last task before you're done.\n$1",
"Flights, almost home. One objective remaining, then you're RTB.\n$1",
"All flights, you're down to the final push. Complete this and you're done.\n$1",
"All leads, one more on the board. Finish it and head back to base.\n$1",
"Flights, you're not clear yet. One last objective to wrap up.\n$1",
"Come on people, one last push and we're done.\n$1",
"Just one objective to complete and we're done.\n$1"
"All flights, you've got one last task before you're done.\n\n$1",
"Flights, almost home. One objective remaining, then you're RTB.\n\n$1",
"All flights, you're down to the final push. Complete this and you're done.\n\n$1",
"All leads, one more on the board. Finish it and head back to base.\n\n$1",
"Flights, you're not clear yet. One last objective to wrap up.\n\n$1",
"Come on people, one last push and we're done.\n\n$1",
"Just one objective to complete and we're done.\n\n$1"
},
jtacSmokeOK = {

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