Prevent a second infiltration of warfactory or prison
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
the License, or (at your option) any later version. For more
|
the License, or (at your option) any later version. For more
|
||||||
information, see COPYING.
|
information, see COPYING.
|
||||||
]]
|
]]
|
||||||
|
|
||||||
if Map.LobbyOption("difficulty") == "easy" then
|
if Map.LobbyOption("difficulty") == "easy" then
|
||||||
TanyaType = "e7"
|
TanyaType = "e7"
|
||||||
ReinforceCash = 5000
|
ReinforceCash = 5000
|
||||||
@@ -234,12 +235,20 @@ end
|
|||||||
|
|
||||||
InitTriggers = function()
|
InitTriggers = function()
|
||||||
Trigger.OnInfiltrated(Warfactory, function()
|
Trigger.OnInfiltrated(Warfactory, function()
|
||||||
|
if greece.IsObjectiveCompleted(infWarfactory) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
Trigger.ClearAll(Spy)
|
Trigger.ClearAll(Spy)
|
||||||
greece.MarkCompletedObjective(infWarfactory)
|
greece.MarkCompletedObjective(infWarfactory)
|
||||||
WarfactoryInfiltrated()
|
WarfactoryInfiltrated()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Trigger.OnInfiltrated(Prison, function()
|
Trigger.OnInfiltrated(Prison, function()
|
||||||
|
if greece.IsObjectiveCompleted(mainObj) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if not greece.IsObjectiveCompleted(infWarfactory) then
|
if not greece.IsObjectiveCompleted(infWarfactory) then
|
||||||
Media.DisplayMessage("Good work! But next time skip the heroics!", "Battlefield Control")
|
Media.DisplayMessage("Good work! But next time skip the heroics!", "Battlefield Control")
|
||||||
greece.MarkCompletedObjective(infWarfactory)
|
greece.MarkCompletedObjective(infWarfactory)
|
||||||
|
|||||||
Reference in New Issue
Block a user