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

View File

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

View File

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