Use global difficulty.
This commit is contained in:
committed by
abcdefg30
parent
58b105f0d4
commit
d42edfc0b9
@@ -30,7 +30,7 @@ SubAttackGroupSize =
|
||||
normal = 2,
|
||||
hard = 3
|
||||
}
|
||||
InfantryUnits =
|
||||
InfantryUnits =
|
||||
{
|
||||
hard = { "e1", "e2", "e2", "e4", "e4" },
|
||||
normal = { "e1", "e1", "e2", "e2", "e4" },
|
||||
@@ -180,13 +180,12 @@ Paradrop = function()
|
||||
end
|
||||
|
||||
ActivateAI = function()
|
||||
local difficulty = Map.LobbyOption("difficulty")
|
||||
WTransUnits = WTransUnits[difficulty]
|
||||
WTransDelays = WTransDelays[difficulty]
|
||||
SubAttackGroupSize = SubAttackGroupSize[difficulty]
|
||||
InfantryUnits = InfantryUnits[difficulty]
|
||||
ProductionInterval = ProductionInterval[difficulty]
|
||||
ParadropDelay = ParadropDelay[difficulty]
|
||||
WTransUnits = WTransUnits[Difficulty]
|
||||
WTransDelays = WTransDelays[Difficulty]
|
||||
SubAttackGroupSize = SubAttackGroupSize[Difficulty]
|
||||
InfantryUnits = InfantryUnits[Difficulty]
|
||||
ProductionInterval = ProductionInterval[Difficulty]
|
||||
ParadropDelay = ParadropDelay[Difficulty]
|
||||
PowerProxy = Actor.Create("powerproxy.paratroopers", false, { Owner = USSR })
|
||||
local buildings = Utils.Where(Map.ActorsInWorld, function(self) return self.Owner == USSR and self.HasProperty("StartBuildingRepairs") end)
|
||||
Utils.Do(buildings, function(actor)
|
||||
|
||||
Reference in New Issue
Block a user