Skip to content

Commit

Permalink
Remove trailing white-space from lua files
Browse files Browse the repository at this point in the history
  • Loading branch information
dragunoff authored and abcdefg30 committed May 23, 2020
1 parent 6d26f60 commit 150d02a
Show file tree
Hide file tree
Showing 23 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion mods/cnc/maps/gdi08a/gdi08a.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Auto1 = { units = { ['e1'] = 2, ['e2'] = 2 }, waypoints = WaypointGroup5, delay
Auto2 = { units = { ['e3'] = 3, ['e4'] = 2 }, waypoints = WaypointGroup3, delay = 50 }
Auto3 = { units = { ['ltnk'] = 1, ['bggy'] = 1 }, waypoints = WaypointGroup3, delay = 50 }
Auto4 = { units = { ['bggy'] = 2 }, waypoints = WaypointGroup7, delay = 50 }
Auto5 = { units = { ['ltnk'] = 1 }, waypoints = WaypointGroup6, delay = 50 }
Auto5 = { units = { ['ltnk'] = 1 }, waypoints = WaypointGroup6, delay = 50 }
Auto6 = { units = { ['arty'] = 1 }, waypoints = WaypointGroup4, delay = 50 }
Auto7 = { units = { ['e3'] = 3, ['e4'] = 2 }, waypoints = WaypointGroup6, delay = 50 }

Expand Down
4 changes: 2 additions & 2 deletions mods/d2k/maps/harkonnen-03b/harkonnen03b.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ AtreidesAttackWaves =
hard = 9
}

AtreidesHunters =
AtreidesHunters =
{
{ "trooper", "trooper", "trooper" },
{ "trike", "light_inf", "light_inf", "light_inf", "light_inf" },
Expand All @@ -78,7 +78,7 @@ AtreidesPaths =
{ AtreidesEntry8.Location, AtreidesRally8.Location }
}

AtreidesHunterPaths =
AtreidesHunterPaths =
{
{ AtreidesEntry6.Location, AtreidesRally6.Location },
{ AtreidesEntry5.Location, AtreidesRally5.Location },
Expand Down
6 changes: 3 additions & 3 deletions mods/d2k/maps/harkonnen-04/harkonnen04.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ FremenAttackWaves =

AtreidesHunters = { "trooper", "trooper", "trooper", "trooper", "trooper", "trooper", "trooper", "trooper", "trooper", "trooper" }

FremenHunters =
FremenHunters =
{
{ "fremen", "fremen", "fremen" },
{ "combat_tank_a", "combat_tank_a", "combat_tank_a" },
{ "missile_tank", "missile_tank", "missile_tank" }
}

InitialAtreidesReinforcements =
{
{
{ "trooper", "trooper", "trooper", "trooper", "light_inf", "light_inf", "light_inf", "light_inf" },
{ "combat_tank_a", "combat_tank_a", "quad", "trike" }
}
Expand All @@ -98,7 +98,7 @@ FremenPaths =
{ FremenEntry6.Location, FremenRally6.Location }
}

FremenHunterPaths =
FremenHunterPaths =
{
{ FremenEntry1.Location, FremenRally1.Location },
{ FremenEntry2.Location, FremenRally2.Location },
Expand Down
10 changes: 5 additions & 5 deletions mods/d2k/maps/harkonnen-05/harkonnen05.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ OrdosAttackWaves =
hard = 8
}

OrdosHunters =
OrdosHunters =
{
{ "combat_tank_o", "combat_tank_o" },
{ "missile_tank" }
}

InitialOrdosReinforcements =
{
{
{ "trooper", "trooper", "trooper", "trooper", "light_inf", "light_inf", "light_inf", "light_inf", "light_inf", "light_inf" },
{ "combat_tank_o", "combat_tank_o", "quad", "quad", "raider", "raider" }
}
Expand Down Expand Up @@ -117,13 +117,13 @@ OrdosHunterPaths =
{ OrdosEntry12.Location, OrdosEntry12.Location },
}

HarkonnenReinforcements =
HarkonnenReinforcements =
{
{ "trooper", "trooper", "trooper", "trooper" },
{ "combat_tank_h", "combat_tank_h", "combat_tank_h", "combat_tank_h" }
}

HarkonnenPaths =
HarkonnenPaths =
{
{ HarkonnenEntry1.Location, HarkonnenRally1.Location },
{ HarkonnenEntry2.Location, HarkonnenRally2.Location }
Expand Down Expand Up @@ -172,7 +172,7 @@ OrdosReinforcementNotification = function(currentWave, totalWaves)
end

Media.DisplayMessage("Enemy carryall drop detected!", "Mentat")

OrdosReinforcementNotification(currentWave, totalWaves)
end)
end
Expand Down
6 changes: 3 additions & 3 deletions mods/d2k/maps/harkonnen-06a/harkonnen06a.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ OrdosAttackWaves =
}

InitialOrdosReinforcements =
{
{
{ "trooper", "trooper", "trooper", "trooper", "light_inf", "light_inf", "light_inf", "light_inf", "light_inf", "light_inf" },
{ "combat_tank_o", "combat_tank_o", "quad", "quad", "raider", "raider" }
}
Expand All @@ -101,13 +101,13 @@ InitialOrdosPaths =
{ OrdosEntry10.Location, OrdosRally10.Location }
}

HarkonnenReinforcements =
HarkonnenReinforcements =
{
{ "combat_tank_h", "combat_tank_h" },
{ "missile_tank", "missile_tank" }
}

HarkonnenPaths =
HarkonnenPaths =
{
{ HarkonnenEntry1.Location, HarkonnenRally1.Location },
{ HarkonnenEntry2.Location, HarkonnenRally2.Location }
Expand Down
2 changes: 1 addition & 1 deletion mods/d2k/maps/harkonnen-06b/harkonnen06b.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ OrdosAttackWaves =
}

InitialOrdosReinforcements =
{
{
{ "trooper", "trooper", "trooper", "trooper", "light_inf", "light_inf", "light_inf", "light_inf", "light_inf", "light_inf" },
{ "combat_tank_o", "combat_tank_o", "quad", "quad", "raider", "raider" }
}
Expand Down
4 changes: 2 additions & 2 deletions mods/d2k/maps/harkonnen-09a/harkonnen09a.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ FremenGroupSize =
}

InitialAtreidesReinforcements =
{
{
{ "trooper", "trooper", "light_inf", "light_inf", "light_inf", "light_inf", "light_inf", "light_inf" },
{ "trooper", "trooper", "trooper", "combat_tank_a", "combat_tank_a" },
{ "combat_tank_a", "combat_tank_a", "quad", "quad", "trike" },
Expand Down Expand Up @@ -140,7 +140,7 @@ SendStarportReinforcements = function()
if CStarport.IsDead or CStarport.Owner ~= corrino_main then
return
end

reinforcements = Utils.Random(CorrinoStarportReinforcements[Difficulty])

local units = Reinforcements.ReinforceWithTransport(corrino_main, "frigate", reinforcements, { CorrinoStarportEntry.Location, CStarport.Location + CVec.New(1, 1) }, { CorrinoStarportExit.Location })[2]
Expand Down
4 changes: 2 additions & 2 deletions mods/d2k/maps/harkonnen-09b/harkonnen09b.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ FremenGroupSize =
}

InitialAtreidesReinforcements =
{
{
{ "combat_tank_a", "combat_tank_a", "quad", "trike" },
{ "trooper", "trooper", "trooper", "trooper", "trooper", "combat_tank_a" },
{ "combat_tank_a", "combat_tank_a", "quad", "quad", "trike" }
Expand Down Expand Up @@ -146,7 +146,7 @@ SendStarportReinforcements = function()
if CStarport.IsDead or CStarport.Owner ~= corrino_small then
return
end

reinforcements = Utils.Random(CorrinoStarportReinforcements[Difficulty])

local units = Reinforcements.ReinforceWithTransport(corrino_small, "frigate", reinforcements, { CorrinoStarportEntry.Location, CStarport.Location + CVec.New(1, 1) }, { CorrinoStarportExit.Location })[2]
Expand Down
2 changes: 1 addition & 1 deletion mods/d2k/maps/ordos-03b/ordos03b.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ HarkonnenHunters = {
{ "trike", "trike" }
}

HarkonnenHunterPaths =
HarkonnenHunterPaths =
{
{ HarkonnenEntry1.Location, HarkonnenRally1.Location },
{ HarkonnenEntry2.Location, HarkonnenRally2.Location },
Expand Down
4 changes: 2 additions & 2 deletions mods/d2k/maps/ordos-04/ordos04.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
information, see COPYING.
]]

Base =
Base =
{
Harkonnen = { HConyard, HRefinery, HHeavyFactory, HLightFactory, HGunTurret1, HGunTurret2, HGunTurret3, HGunTurret4, HGunTurret5, HBarracks, HPower1, HPower2, HPower3, HPower4 },
Smugglers = { SOutpost, SHeavyFactory, SLightFactory, SGunTurret1, SGunTurret2, SGunTurret3, SGunTurret4, SBarracks, SPower1, SPower2, SPower3 }
Expand All @@ -27,7 +27,7 @@ HarkonnenAttackDelay =
hard = DateTime.Minutes(1) + DateTime.Seconds(30)
}

InitialReinforcements =
InitialReinforcements =
{
Harkonnen = { "combat_tank_h", "combat_tank_h", "trike", "quad" },
Smugglers = { "light_inf", "light_inf", "light_inf", "light_inf", "trooper", "trooper", "trooper" }
Expand Down
4 changes: 2 additions & 2 deletions mods/d2k/maps/ordos-05/ordos05-AI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ ActivateAIProduction = function()
local vehiclesToBuild = function() return { Utils.Random(EnemyVehicleTypes) } end
local tanksToBuild = function() return EnemyTankType end
local attackTresholdSize = AttackGroupSize[Difficulty] * 2.5

ProduceUnits(atreides_main, ABarracks1, delay, infantryToBuild, AttackGroupSize[Difficulty], attackTresholdSize)
ProduceUnits(atreides_main, ALightFactory, delay, vehiclesToBuild, AttackGroupSize[Difficulty], attackTresholdSize)
ProduceUnits(atreides_main, AHeavyFactory, delay, tanksToBuild, AttackGroupSize[Difficulty], attackTresholdSize)

ProduceUnits(atreides_small_1, ABarracks2, delay, infantryToBuild, AttackGroupSize[Difficulty], attackTresholdSize)

ProduceUnits(atreides_small_2, ABarracks3, delay, infantryToBuild, AttackGroupSize[Difficulty], attackTresholdSize)

AIProductionActivated = true
end

Expand Down
4 changes: 2 additions & 2 deletions mods/d2k/maps/ordos-05/ordos05.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
information, see COPYING.
]]

Base =
Base =
{
AtreidesMainBase = { AConyard, APower1, APower2, APower3, ABarracks1, ARefinery1, ALightFactory, AHeavyFactory, AGunt1, AGunt2, AGunt3, AGunt4, AGunt5 },
AtreidesSmallBase1 = { APower4, APower5, ABarracks2, ARefinery2, AGunt6, AGunt7 },
Expand Down Expand Up @@ -70,7 +70,7 @@ AtreidesPaths =
{ AtreidesEntry8.Location, AtreidesRally8.Location }
}

InitialReinforcements =
InitialReinforcements =
{
AtreidesMainBase = { "combat_tank_a", "combat_tank_a", "quad", "quad", "trike", "light_inf", "light_inf", "light_inf", "light_inf" },
AtreidesSmallBase1 = { "trooper", "trooper", "trooper", "light_inf", "light_inf", "light_inf", "light_inf" },
Expand Down
2 changes: 1 addition & 1 deletion mods/d2k/maps/ordos-06a/ordos06a.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ HarkonnenAttackWaves =
hard = 6
}

InitialReinforcements =
InitialReinforcements =
{
Atreides = { "combat_tank_a", "quad", "quad", "trike", "trike" },
Harkonnen = { "trooper", "trooper", "trooper", "trooper", "trooper", "combat_tank_h" }
Expand Down
2 changes: 1 addition & 1 deletion mods/ra/maps/allies-07/allies07-AI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BGAttackGroupSize = 8
SovietAircraftType = { "yak" }
Yaks = { }
SovietInfantry = { "e1", "e2", "e4" }
SovietVehicles =
SovietVehicles =
{
hard = { "3tnk", "3tnk", "v2rl" },
normal = { "3tnk" },
Expand Down
12 changes: 6 additions & 6 deletions mods/ra/maps/allies-08a/allies08a-AI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ IdleHunt = function(unit) if not unit.IsDead then Trigger.OnIdle(unit, unit.Hunt

GroundWavesUpgradeDelay = DateTime.Minutes(12)
GroundAttackUnitType = "Normal"
GroundAttackUnits =
{
GroundAttackUnits =
{
Normal = { {"4tnk", "3tnk", "e2", "e2", "e2" }, { "3tnk", "v2rl", "e4", "e4", "e4" } },
Upgraded = { {"4tnk", "3tnk", "ftrk", "apc", "apc", "e1", "e1", "e1", "e1", "e1", "e2", "e2", "e2" }, { "3tnk", "v2rl", "ftrk", "apc", "apc", "e1", "e1", "e1", "e1", "e1", "e4", "e4", "e4" } }
}
GroundAttackPaths =
{
GroundAttackPaths =
{
{ SovEntry1.Location, ParaLZ3.Location, AttackChrono.Location },
{ SovEntry2.Location, ParaLZ5.Location, AttackChrono.Location },
{ SovEntry3.Location, ParaLZ5.Location, AttackChrono.Location }
Expand Down Expand Up @@ -209,8 +209,8 @@ SendParabombs = function()
end

local targets = Utils.Where(greece.GetActors(), function(actor)
return
actor.HasProperty("Sell") and
return
actor.HasProperty("Sell") and
actor.Type ~= "brik" and
actor.Type ~= "sbag" or
actor.Type == "pdox" or
Expand Down
12 changes: 6 additions & 6 deletions mods/ra/maps/allies-08b/allies08b-AI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ IdleHunt = function(unit) if not unit.IsDead then Trigger.OnIdle(unit, unit.Hunt

GroundWavesUpgradeDelay = DateTime.Minutes(12)
GroundAttackUnitType = "Normal"
GroundAttackUnits =
{
GroundAttackUnits =
{
Normal = { {"4tnk", "3tnk", "e2", "e2", "e2" }, { "3tnk", "v2rl", "e4", "e4", "e4" } },
Upgraded = { {"4tnk", "3tnk", "ftrk", "apc", "apc", "e1", "e1", "e1", "e1", "e1", "e2", "e2", "e2" }, { "3tnk", "v2rl", "ftrk", "apc", "apc", "e1", "e1", "e1", "e1", "e1", "e4", "e4", "e4" } }
}
GroundAttackPaths =
{
GroundAttackPaths =
{
{ SovEntry1.Location, ParaLZ2.Location, AttackChrono.Location },
{ SovEntry2.Location, ParaLZ2.Location, AttackChrono.Location },
{ SovEntry3.Location, ParaLZ4.Location, AttackChrono.Location }
Expand Down Expand Up @@ -209,8 +209,8 @@ SendParabombs = function()
end

local targets = Utils.Where(greece.GetActors(), function(actor)
return
actor.HasProperty("Sell") and
return
actor.HasProperty("Sell") and
actor.Type ~= "brik" and
actor.Type ~= "sbag" or
actor.Type == "pdox" or
Expand Down
6 changes: 3 additions & 3 deletions mods/ra/maps/ant-01/ant-01.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ AlliedBase = { WarFactory, PillBox1, PillBox2, Refinery, PowerPlant1, PowerPlant
AlliedForces = { "2tnk" , "2tnk", "mcv" }
ChopperTeam = { "e1r1", "e1r1", "e2", "e2", "e1r1" }

SendTanks = function()
SendTanks = function()
Media.PlaySpeechNotification(allies, "ReinforcementsArrived")
Reinforcements.Reinforce(allies, AlliedForces, TankPath, DateTime.Seconds(1))
end
Expand All @@ -52,7 +52,7 @@ end

DiscoveredAlliedBase = function(actor, discoverer)
if (not baseDiscovered and discoverer.Owner == allies) then
baseDiscovered = true
baseDiscovered = true
Media.PlaySpeechNotification(allies, "ObjectiveReached")
Utils.Do(AlliedBase, function(building)
building.Owner = allies
Expand Down Expand Up @@ -106,7 +106,7 @@ GetTicks = function()
return ticks
end

Tick = function()
Tick = function()
if SurviveObjective ~= nil then
if ticks > 0 then
if ticks == DateTime.Minutes(17) then
Expand Down
2 changes: 1 addition & 1 deletion mods/ra/maps/evacuation/evacuation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ SendParatroopers = function()
local proxy = Actor.Create(para.proxy, false, { Owner = soviets })
local target = Map.CenterOfCell(para.drop)
local dir = target - Map.CenterOfCell(para.entry)

local aircraft = proxy.ActivateParatroopers(target, dir.facing)
Utils.Do(aircraft, function(a)
Trigger.OnPassengerExited(a, function(t, p)
Expand Down
4 changes: 2 additions & 2 deletions mods/ra/maps/sarin-gas-1-crackdown/crackdown-AI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ ProductionInterval =
}

GroundAttackUnits = { { "ttnk", "ttnk", "e2", "e2", "e2" }, { "3tnk", "v2rl", "e4", "e4", "e4" } }
GroundAttackPaths =
{
GroundAttackPaths =
{
{ EscapeSouth5.Location, Patrol1.Location },
{ EscapeNorth10.Location, EscapeNorth7.Location }
}
Expand Down
2 changes: 1 addition & 1 deletion mods/ra/maps/sarin-gas-1-crackdown/crackdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ MoveTruckEscapeRoute = function(truck, route)
Utils.Do(route, function(waypoint)
truck.Move(waypoint.Location)
end)

Trigger.OnIdle(truck, function()
if truck.Location == route[#route].Location then
truck.Destroy()
Expand Down
2 changes: 1 addition & 1 deletion mods/ra/maps/soviet-08a/soviet08a-AI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ ActivateAI = function()

Trigger.AfterDelay(DateTime.Minutes(3), WTransWaves)

Trigger.AfterDelay(AlliedVehiclesUpgradeDelay, function() AlliedVehicleType = "Upgraded" end)
Trigger.AfterDelay(AlliedVehiclesUpgradeDelay, function() AlliedVehicleType = "Upgraded" end)

ProduceInfantry()
ProduceVehicles()
Expand Down
Loading

0 comments on commit 150d02a

Please sign in to comment.