add a simple test case
This commit is contained in:
@@ -117,6 +117,7 @@ SendUnits = function(entryCell, unitTypes, interval, targetCell)
|
|||||||
SendWave()
|
SendWave()
|
||||||
else
|
else
|
||||||
Trigger.AfterDelay(3000, SovietsRetreating)
|
Trigger.AfterDelay(3000, SovietsRetreating)
|
||||||
|
Media.DisplayMessage("You survived the onslaught!")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -129,6 +130,8 @@ SendWave = function()
|
|||||||
local units = wave[3]
|
local units = wave[3]
|
||||||
local target = Utils.Random(wave[4]).Location
|
local target = Utils.Random(wave[4]).Location
|
||||||
|
|
||||||
|
Media.DisplayMessage("Defend Fort Lonestar at all costs!")
|
||||||
|
|
||||||
print(string.format("Sending wave %i in %i.", Wave, delay))
|
print(string.format("Sending wave %i in %i.", Wave, delay))
|
||||||
Trigger.AfterDelay(delay, function() SendUnits(entry, units, 40, target) end)
|
Trigger.AfterDelay(delay, function() SendUnits(entry, units, 40, target) end)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user