Replace Map.Difficulty with Map.LobbyOption in scripts.
This commit is contained in:
@@ -19,7 +19,7 @@ CheckForSPen = function()
|
||||
end
|
||||
|
||||
RunInitialActivities = function()
|
||||
if Map.Difficulty == "Hard" then
|
||||
if Map.LobbyOption("difficulty") == "hard" then
|
||||
Expand()
|
||||
ExpansionCheck = true
|
||||
else
|
||||
@@ -57,7 +57,7 @@ RunInitialActivities = function()
|
||||
ProduceInfantry()
|
||||
Trigger.AfterDelay(DateTime.Minutes(2), ProduceShips)
|
||||
|
||||
if Map.Difficulty == "Hard" or Map.Difficulty == "Medium" then
|
||||
if Map.LobbyOption("difficulty") == "hard" or Map.LobbyOption("difficulty") == "medium" then
|
||||
Trigger.AfterDelay(DateTime.Seconds(25), ReinfInf)
|
||||
end
|
||||
Trigger.AfterDelay(DateTime.Minutes(2), ReinfInf)
|
||||
@@ -170,9 +170,9 @@ Tick = function()
|
||||
|
||||
if not RCheck then
|
||||
RCheck = true
|
||||
if Map.Difficulty == "Easy" and ReinfCheck then
|
||||
if Map.LobbyOption("difficulty") == "easy" and ReinfCheck then
|
||||
Trigger.AfterDelay(DateTime.Minutes(6), ReinfArmor)
|
||||
elseif Map.Difficulty == "Medium" then
|
||||
elseif Map.LobbyOption("difficulty") == "medium" then
|
||||
Trigger.AfterDelay(DateTime.Minutes(4), ReinfArmor)
|
||||
else
|
||||
Trigger.AfterDelay(DateTime.Minutes(3), ReinfArmor)
|
||||
|
||||
Reference in New Issue
Block a user