Remove cash steal objectives from Allies 06a and 06b
This commit is contained in:
@@ -162,20 +162,6 @@ InfiltrateTechCenter = function()
|
||||
end)
|
||||
end
|
||||
|
||||
InfiltrateRef = function()
|
||||
Trigger.OnInfiltrated(Refinery, function()
|
||||
player.MarkCompletedObjective(InfiltrateRefObj)
|
||||
end)
|
||||
Trigger.OnCapture(Refinery, function()
|
||||
player.MarkCompletedObjective(InfiltrateRefObj)
|
||||
end)
|
||||
Trigger.OnKilled(Refinery, function()
|
||||
if not player.IsObjectiveCompleted(InfiltrateRefObj) then
|
||||
player.MarkFailedObjective(InfiltrateRefObj)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
Tick = function()
|
||||
if DateTime.GameTime > DateTime.Seconds(10) and player.HasNoRequiredUnits() then
|
||||
player.MarkFailedObjective(InfiltrateTechCenterObj)
|
||||
@@ -211,7 +197,6 @@ WorldLoaded = function()
|
||||
|
||||
InfiltrateTechCenterObj = player.AddPrimaryObjective("Infiltrate one of the Soviet tech centers with a spy.")
|
||||
CaptureRadarDomeObj = player.AddSecondaryObjective("Capture the Radar Dome at the shore.")
|
||||
InfiltrateRefObj = player.AddSecondaryObjective("Infiltrate the Refinery for money.")
|
||||
|
||||
Camera.Position = DefaultCameraPosition.CenterPosition
|
||||
|
||||
@@ -234,6 +219,5 @@ WorldLoaded = function()
|
||||
|
||||
CaptureRadarDome()
|
||||
InfiltrateTechCenter()
|
||||
InfiltrateRef()
|
||||
Trigger.AfterDelay(0, ActivateAI)
|
||||
end
|
||||
|
||||
@@ -166,20 +166,6 @@ InfiltrateTechCenter = function()
|
||||
end)
|
||||
end
|
||||
|
||||
InfiltrateRef = function()
|
||||
Trigger.OnInfiltrated(Refinery, function()
|
||||
player.MarkCompletedObjective(InfiltrateRefObj)
|
||||
end)
|
||||
Trigger.OnCapture(Refinery, function()
|
||||
player.MarkCompletedObjective(InfiltrateRefObj)
|
||||
end)
|
||||
Trigger.OnKilled(Refinery, function()
|
||||
if not player.IsObjectiveCompleted(InfiltrateRefObj) then
|
||||
player.MarkFailedObjective(InfiltrateRefObj)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
Tick = function()
|
||||
if player.HasNoRequiredUnits() then
|
||||
player.MarkFailedObjective(InfiltrateTechCenterObj)
|
||||
@@ -215,7 +201,6 @@ WorldLoaded = function()
|
||||
|
||||
InfiltrateTechCenterObj = player.AddPrimaryObjective("Infiltrate one of the Soviet tech centers with a spy.")
|
||||
CaptureRadarDomeObj = player.AddSecondaryObjective("Capture the Radar Dome at the shore.")
|
||||
InfiltrateRefObj = player.AddSecondaryObjective("Infiltrate the Refinery for money.")
|
||||
|
||||
Camera.Position = DefaultCameraPosition.CenterPosition
|
||||
|
||||
@@ -264,6 +249,5 @@ WorldLoaded = function()
|
||||
end)
|
||||
CaptureRadarDome()
|
||||
InfiltrateTechCenter()
|
||||
InfiltrateRef()
|
||||
Trigger.AfterDelay(0, ActivateAI)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user