Correct nod-06c capture objective

This commit is contained in:
JovialFeline
2025-01-10 02:45:50 -05:00
committed by Gustas
parent e0d893b736
commit 0baddf46e2
2 changed files with 6 additions and 6 deletions

View File

@@ -105,7 +105,7 @@ destroy-gdi-supporter-houses = Destroy the houses of the GDI supporters
in the village.
## nod06c
infiltrate-barracks-factory-conyard = Infiltrate the barracks, weapons factory and
capture-barracks-factory-conyard = Capture the barracks, weapons factory and
construction yard.
## nod07a

View File

@@ -62,7 +62,7 @@ WorldLoaded = function()
InitObjectives(Nod)
NodObjective1 = AddPrimaryObjective(Nod, "steal-nuclear-detonator")
InfiltrateObjective = AddSecondaryObjective(Nod, "infiltrate-barracks-factory-conyard")
CaptureObjective = AddSecondaryObjective(Nod, "capture-barracks-factory-conyard")
InsertNodUnits()
@@ -111,18 +111,18 @@ WorldLoaded = function()
Trigger.AfterDelay(ProductionDelay, ProdTriggerFunction)
Trigger.OnAnyKilled(BuildingsToCapture, function()
if not Nod.IsObjectiveCompleted(InfiltrateObjective) then
Nod.MarkFailedObjective(InfiltrateObjective)
if not Nod.IsObjectiveCompleted(CaptureObjective) then
Nod.MarkFailedObjective(CaptureObjective)
end
end)
local captured = 0
Utils.Do(BuildingsToCapture, function(building)
local captured = 0
Trigger.OnCapture(building, function()
captured = captured + 1
if captured == 3 then
Nod.MarkCompletedObjective(InfiltrateObjective)
Nod.MarkCompletedObjective(CaptureObjective)
end
end)
end)