map.yaml cleanup

This commit is contained in:
abcdefg30
2014-12-24 10:09:26 +01:00
parent 366be4585a
commit e577f3d7f8
2 changed files with 38 additions and 204 deletions

View File

@@ -34,7 +34,6 @@ WorldLoaded = function()
player = Player.GetPlayer("USSR")
france = Player.GetPlayer("France")
germany = Player.GetPlayer("Germany")
turkey = Player.GetPlayer("Turkey")
Trigger.OnObjectiveAdded(player, function(p, id)
Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective")
@@ -62,11 +61,11 @@ WorldLoaded = function()
end
Tick = function()
if france.HasNoRequiredUnits() and germany.HasNoRequiredUnits() and turkey.HasNoRequiredUnits() then
if france.HasNoRequiredUnits() and germany.HasNoRequiredUnits() then
player.MarkCompletedObjective(VillageRaidObjective)
end
if player.HasNoRequiredUnits() then
france.MarkCompletedObjective(CivilProtectionObjective)
end
end
end