From 123b3f054ff23a57f63ec614867cda4c890895ec Mon Sep 17 00:00:00 2001 From: Smittytron Date: Sat, 20 Apr 2019 11:25:35 -0500 Subject: [PATCH] Remove cash steal objectives from Allies 06a and 06b --- mods/ra/maps/allies-06a/allies06a.lua | 16 ---------------- mods/ra/maps/allies-06b/allies06b.lua | 16 ---------------- 2 files changed, 32 deletions(-) diff --git a/mods/ra/maps/allies-06a/allies06a.lua b/mods/ra/maps/allies-06a/allies06a.lua index edb88db9fb..9d5aeaf1a6 100644 --- a/mods/ra/maps/allies-06a/allies06a.lua +++ b/mods/ra/maps/allies-06a/allies06a.lua @@ -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 diff --git a/mods/ra/maps/allies-06b/allies06b.lua b/mods/ra/maps/allies-06b/allies06b.lua index bd375ee434..5aa305f9ee 100644 --- a/mods/ra/maps/allies-06b/allies06b.lua +++ b/mods/ra/maps/allies-06b/allies06b.lua @@ -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