Use global difficulty.
This commit is contained in:
committed by
abcdefg30
parent
58b105f0d4
commit
d42edfc0b9
@@ -246,9 +246,8 @@ ActivateAI = function()
|
||||
InitAIUnits()
|
||||
ProtectHarvester(Harvester)
|
||||
|
||||
local difficulty = Map.LobbyOption("difficulty")
|
||||
AttackDelay = AttackDelays[difficulty]
|
||||
AttackGroupSize = AttackGroupSizes[difficulty]
|
||||
AttackDelay = AttackDelays[Difficulty]
|
||||
AttackGroupSize = AttackGroupSizes[Difficulty]
|
||||
Trigger.AfterDelay(DateTime.Seconds(10), function()
|
||||
ProduceInfantry()
|
||||
ProduceVehicles()
|
||||
|
||||
@@ -65,7 +65,7 @@ Paradrop = function()
|
||||
end)
|
||||
|
||||
Paradropped = Paradropped + 1
|
||||
if Paradropped <= ParadropWaves[Map.LobbyOption("difficulty")] then
|
||||
if Paradropped <= ParadropWaves[Difficulty] then
|
||||
Paradrop()
|
||||
end
|
||||
end)
|
||||
@@ -114,7 +114,7 @@ SendConvoys = function()
|
||||
Trigger.RemoveFootprintTrigger(id)
|
||||
|
||||
ConvoysSent = ConvoysSent + 1
|
||||
if ConvoysSent <= Convoys[Map.LobbyOption("difficulty")] then
|
||||
if ConvoysSent <= Convoys[Difficulty] then
|
||||
SendConvoys()
|
||||
else
|
||||
player.MarkCompletedObjective(DestroyConvoys)
|
||||
@@ -173,9 +173,8 @@ WorldLoaded = function()
|
||||
|
||||
InitObjectives()
|
||||
|
||||
local difficulty = Map.LobbyOption("difficulty")
|
||||
ConvoyDelay = ConvoyDelays[difficulty]
|
||||
ParadropDelay = ParadropDelays[difficulty]
|
||||
ConvoyDelay = ConvoyDelays[Difficulty]
|
||||
ParadropDelay = ParadropDelays[Difficulty]
|
||||
PowerProxy = Actor.Create("powerproxy.paratroopers", false, { Owner = ussr })
|
||||
Paradrop()
|
||||
SendConvoys()
|
||||
|
||||
Reference in New Issue
Block a user