Remove trailing white-space from lua files

This commit is contained in:
Ivaylo Draganov
2020-05-22 23:05:10 +03:00
committed by abcdefg30
parent 6d26f60904
commit 150d02ac0d
23 changed files with 58 additions and 58 deletions

View File

@@ -14,7 +14,7 @@ BGAttackGroupSize = 8
SovietAircraftType = { "yak" }
Yaks = { }
SovietInfantry = { "e1", "e2", "e4" }
SovietVehicles =
SovietVehicles =
{
hard = { "3tnk", "3tnk", "v2rl" },
normal = { "3tnk" },

View File

@@ -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 }
@@ -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

View File

@@ -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 }
@@ -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

View File

@@ -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
@@ -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
@@ -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

View File

@@ -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)

View File

@@ -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 }
}

View File

@@ -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()

View File

@@ -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()

View File

@@ -8,7 +8,7 @@
]]
alliedScouts = { Actor189, Actor216, Actor217, Actor218, Actor219 }
ussrReinforcements =
ussrReinforcements =
{
east =
{
@@ -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.AddPrimaryObjective("Destroy all Allied units and structures.")
DestroyVillageObjective = ussr.AddSecondaryObjective("Destroy the village of Allied sympathizers.")
BeatUSSR = greece.AddPrimaryObjective("Defeat the Soviet forces.")
Trigger.OnObjectiveCompleted(ussr, function(p, id)
Media.DisplayMessage(p.GetObjectiveDescription(id), "Objective completed")
end)
@@ -147,15 +147,15 @@ WorldLoaded = function()
AddReinforcmentTriggers()
AddRetreatTrigger()
scripteddrop = Actor.Create("scripteddrop", false, { Owner = ussr })
OnAnyDamaged(Obj2ActorTriggerActivator, ChurchAmbushTrigger)
Trigger.OnAllRemovedFromWorld(Obj2ActorTriggerActivator, Obj2TriggerFunction)
Camera.Position = SovietBase.CenterPosition
Trigger.AfterDelay(ActivateAIDelay, ActivateAI)
end

View File

@@ -86,7 +86,7 @@ ProduceArmor = function()
Utils.Do(AlliedWarFact, function(fact) fact.RallyPoint = Rally.Location end)
greece.Build(toBuild, function(unit)
ArmorAttack[#ArmorAttack + 1] = unit[1]
if #ArmorAttack >= ArmorAttackNumbers[Map.LobbyOption("difficulty")] then
SendAttackToBase(ArmorAttack)
ArmorAttack = { }