Skip to content

Commit

Permalink
change whitespace-only lines to empty lines in Lua scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
phrohdoh authored and abcdefg30 committed Aug 14, 2020
1 parent a847f3e commit 8a74f6e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions mods/ra/maps/situation-critical/situation-critical.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ SetupTriggers = function()
end)

Trigger.OnKilled(BioLab, function()
if not LabInfiltrated then
if not LabInfiltrated then
USSR.MarkFailedObjective(InfiltrateLab)
end
end)
Expand Down Expand Up @@ -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.")
Expand Down
18 changes: 9 additions & 9 deletions mods/ra/maps/soviet-08b/soviet08b.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
]]
AlliedScouts = { Jeep1, Jeep2, Rifle1, Rifle2, Rifle3, Rifle4 }

SovReinforcements =
SovReinforcements =
{
one =
{
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions mods/ra/maps/soviet-09/soviet09.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a74f6e

Please sign in to comment.