change whitespace-only lines to empty lines in Lua scripts

This commit is contained in:
Taryn Hill
2020-08-14 07:44:47 -05:00
committed by abcdefg30
parent a847f3eafa
commit 8a74f6ea18
3 changed files with 15 additions and 15 deletions

View File

@@ -101,7 +101,7 @@ SetupTriggers = function()
end)
Trigger.OnKilled(BioLab, function()
if not LabInfiltrated then
if not LabInfiltrated then
USSR.MarkFailedObjective(InfiltrateLab)
end
end)
@@ -159,11 +159,11 @@ end
WorldLoaded = function()
USSR = Player.GetPlayer("USSR")
Turkey = Player.GetPlayer("Turkey")
Trigger.OnObjectiveAdded(USSR, function(p, id)
Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective")
end)
LaunchMissles = Turkey.AddObjective("Survive until time expires.")
KillPower = USSR.AddObjective("Bring the base to low power. Volkov will arrive\nonce the defenses are down.")
InfiltrateLab = USSR.AddObjective("Infiltrate the bio-weapons lab with the scientist.")

View File

@@ -8,7 +8,7 @@
]]
AlliedScouts = { Jeep1, Jeep2, Rifle1, Rifle2, Rifle3, Rifle4 }
SovReinforcements =
SovReinforcements =
{
one =
{
@@ -118,15 +118,15 @@ WorldLoaded = function()
USSR = Player.GetPlayer("USSR")
Germany = Player.GetPlayer("Germany")
Greece = Player.GetPlayer("Greece")
Trigger.OnObjectiveAdded(USSR, function(p, id)
Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective")
end)
KillAll = USSR.AddObjective("Destroy all Allied units and structures.")
DestroyVillageObjective = USSR.AddObjective("Destroy the village of Allied sympathizers.", "Secondary", false)
BeatUSSR = Greece.AddObjective("Defeat the Soviet forces.")
Trigger.OnObjectiveCompleted(USSR, function(p, id)
Media.DisplayMessage(p.GetObjectiveDescription(id), "Objective completed")
end)
@@ -149,15 +149,15 @@ WorldLoaded = function()
SecondReinforcementTrigger()
AddParadropReinforcementTrigger()
AddRetreatTrigger()
ScriptedDrop = Actor.Create("scripteddrop", false, { Owner = USSR })
OnAnyDamaged(Village, ChurchAmbushTrigger)
Trigger.OnAllRemovedFromWorld(Village, DestroyVillage)
Camera.Position = SovietBase.CenterPosition
Trigger.AfterDelay(ActivateAIDelay, ActivateAI)
Trigger.AfterDelay(DateTime.Minutes(2), function() BoatAttack(Gunboat1) end)
Trigger.AfterDelay(DateTime.Minutes(5), function() BoatAttack(Gunboat2) end)

View File

@@ -76,14 +76,14 @@ WorldLoaded = function()
USSR = Player.GetPlayer("USSR")
Germany = Player.GetPlayer("Germany")
Greece = Player.GetPlayer("Greece")
Trigger.OnObjectiveAdded(USSR, function(p, id)
Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective")
end)
DestroyTruck = USSR.AddObjective("Destroy the stolen convoy truck.\nDo not let it escape.")
DefendCommand = USSR.AddObjective("Defend our forward command center.")
Trigger.OnObjectiveCompleted(USSR, function(p, id)
Media.DisplayMessage(p.GetObjectiveDescription(id), "Objective completed")
end)