Use global difficulty.
This commit is contained in:
committed by
abcdefg30
parent
58b105f0d4
commit
d42edfc0b9
@@ -28,7 +28,7 @@ CheckForSPen = function()
|
||||
end
|
||||
|
||||
RunInitialActivities = function()
|
||||
if Map.LobbyOption("difficulty") == "hard" then
|
||||
if Difficulty == "hard" then
|
||||
Expand()
|
||||
ExpansionCheck = true
|
||||
else
|
||||
@@ -65,7 +65,7 @@ RunInitialActivities = function()
|
||||
ProduceInfantry()
|
||||
Trigger.AfterDelay(DateTime.Minutes(2), ProduceShips)
|
||||
|
||||
if Map.LobbyOption("difficulty") == "hard" or Map.LobbyOption("difficulty") == "normal" then
|
||||
if Difficulty == "hard" or Difficulty == "normal" then
|
||||
Trigger.AfterDelay(DateTime.Seconds(25), ReinfInf)
|
||||
end
|
||||
Trigger.AfterDelay(DateTime.Minutes(2), ReinfInf)
|
||||
@@ -171,9 +171,9 @@ Tick = function()
|
||||
|
||||
if not RCheck then
|
||||
RCheck = true
|
||||
if Map.LobbyOption("difficulty") == "easy" and ReinfCheck then
|
||||
if Difficulty == "easy" and ReinfCheck then
|
||||
Trigger.AfterDelay(DateTime.Minutes(6), ReinfArmor)
|
||||
elseif Map.LobbyOption("difficulty") == "normal" then
|
||||
elseif Difficulty == "normal" then
|
||||
Trigger.AfterDelay(DateTime.Minutes(4), ReinfArmor)
|
||||
else
|
||||
Trigger.AfterDelay(DateTime.Minutes(3), ReinfArmor)
|
||||
@@ -226,7 +226,7 @@ WorldLoaded = function()
|
||||
HoldObjective = player.AddObjective("Defend the Radar Dome.")
|
||||
player.MarkCompletedObjective(CaptureObjective)
|
||||
Beacon.New(player, MCVDeploy.CenterPosition)
|
||||
if Map.LobbyOption("difficulty") == "easy" then
|
||||
if Difficulty == "easy" then
|
||||
Actor.Create("camera", true, { Owner = player, Location = MCVDeploy.Location })
|
||||
Media.DisplayMessage("Movement of an Allied expansion base discovered.")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user