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