Rework D2k campaign scripts:
- Add InitialProductionDelay - Different attacksDelays for early game and late game - Adjust T3 unit production for selected missions - Implement InitialAttackDelay, TimeBetweenAttacks - Implement routines for idle units - Emergency mode - Airstrike rework
This commit is contained in:
@@ -32,6 +32,7 @@ HarkonnenReinforcements =
|
||||
}
|
||||
|
||||
HarkonnenEntryWaypoints = { HarkonnenWaypoint1.Location, HarkonnenWaypoint2.Location, HarkonnenWaypoint3.Location, HarkonnenWaypoint4.Location }
|
||||
|
||||
HarkonnenAttackDelay = DateTime.Seconds(30)
|
||||
|
||||
HarkonnenAttackWaves =
|
||||
@@ -49,6 +50,7 @@ ToHarvest =
|
||||
}
|
||||
|
||||
OrdosReinforcements = { "light_inf", "light_inf", "light_inf", "light_inf", "raider" }
|
||||
|
||||
OrdosEntryPath = { OrdosWaypoint.Location, OrdosRally.Location }
|
||||
|
||||
Messages =
|
||||
@@ -118,14 +120,10 @@ WorldLoaded = function()
|
||||
end
|
||||
|
||||
Trigger.OnRemovedFromWorld(OrdosConyard, function()
|
||||
|
||||
-- Mission already failed, no need to check the other conditions as well
|
||||
if checkResourceCapacity() then
|
||||
return
|
||||
end
|
||||
if checkResourceCapacity() then return end
|
||||
|
||||
local refs = Utils.Where(Map.ActorsInWorld, function(actor) return actor.Type == "refinery" and actor.Owner == Ordos end)
|
||||
|
||||
if #refs == 0 then
|
||||
Harkonnen.MarkCompletedObjective(KillOrdos)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user