Standardize usage of AddObjective in RA missions

This commit is contained in:
Smittytron
2021-03-27 12:05:09 -05:00
committed by abcdefg30
parent 26fbcf6076
commit 0d3c624bbc
33 changed files with 148 additions and 148 deletions

View File

@@ -119,11 +119,11 @@ InitObjectives = function()
Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective")
end)
KillBridges = player.AddPrimaryObjective("Destroy all bridges.")
TanyaSurvive = player.AddPrimaryObjective("Tanya must survive.")
KillUSSR = player.AddSecondaryObjective("Destroy all Soviet oil pumps.")
FreePrisoners = player.AddSecondaryObjective("Free all Allied soldiers and keep them alive.")
ussr.AddPrimaryObjective("Bridges must not be destroyed.")
KillBridges = player.AddObjective("Destroy all bridges.")
TanyaSurvive = player.AddObjective("Tanya must survive.")
KillUSSR = player.AddObjective("Destroy all Soviet oil pumps.", "Secondary", false)
FreePrisoners = player.AddObjective("Free all Allied soldiers and keep them alive.", "Secondary", false)
ussr.AddObjective("Bridges must not be destroyed.")
Trigger.OnObjectiveCompleted(player, function(p, id)
Media.DisplayMessage(p.GetObjectiveDescription(id), "Objective completed")