drop in Atreides harvester replacements with carryalls

replace Harkonnen base with Emperors outpost
This commit is contained in:
Matthias Mailänder
2014-11-01 20:00:18 +01:00
parent 7c19f710b8
commit c1d9665b3d
3 changed files with 61 additions and 21 deletions

View File

@@ -0,0 +1,19 @@
InitializeHarvester = function(harvester)
harvester.FindResources()
Trigger.OnRemovedFromWorld(harvester, InsertHarvester)
end
InsertHarvester = function()
local harvesters = Reinforcements.ReinforceWithTransport(atreides, "carryalla", { "harvester" },
{ Entry.Location, AtreidesSpiceRefinery.Location + CVec.New(2, 3) }, { Entry.Location })[2]
Utils.Do(harvesters, function(harvester)
Trigger.OnAddedToWorld(harvester, function() InitializeHarvester(harvester) end)
end)
end
WorldLoaded = function()
atreides = Player.GetPlayer("Atreides")
InsertHarvester()
end