Fix and standardize TD mission difficulty dropdowns

This commit is contained in:
Smittytron
2021-05-23 09:08:47 -05:00
committed by abcdefg30
parent 9371cecc00
commit 27562ab88f
17 changed files with 13 additions and 24 deletions

View File

@@ -6,9 +6,6 @@
the License, or (at your option) any later version. For more the License, or (at your option) any later version. For more
information, see COPYING. information, see COPYING.
]] ]]
Difficulty = Map.LobbyOption("difficulty")
IdleHunt = function(actor) IdleHunt = function(actor)
if actor.HasProperty("Hunt") and not actor.IsDead then if actor.HasProperty("Hunt") and not actor.IsDead then
Trigger.OnIdle(actor, actor.Hunt) Trigger.OnIdle(actor, actor.Hunt)

View File

@@ -16,8 +16,7 @@ World:
Values: Values:
easy: Easy easy: Easy
normal: Normal normal: Normal
Default: easy Default: normal
Locked: false
Player: Player:
EnemyWatcher: EnemyWatcher:

View File

@@ -6,6 +6,7 @@
the License, or (at your option) any later version. For more the License, or (at your option) any later version. For more
information, see COPYING. information, see COPYING.
]] ]]
Difficulty = Map.LobbyOption("difficulty")
RepairThreshold = { easy = 0.3, normal = 0.6, hard = 0.9 } RepairThreshold = { easy = 0.3, normal = 0.6, hard = 0.9 }

View File

@@ -33,8 +33,7 @@ World:
easy: Easy easy: Easy
normal: Normal normal: Normal
hard: Hard hard: Hard
Default: easy Default: normal
Locked: false
Player: Player:
EnemyWatcher: EnemyWatcher:

View File

@@ -6,6 +6,7 @@
the License, or (at your option) any later version. For more the License, or (at your option) any later version. For more
information, see COPYING. information, see COPYING.
]] ]]
Difficulty = Map.LobbyOption("difficulty")
IslandSamSites = { SAM01, SAM02 } IslandSamSites = { SAM01, SAM02 }
NodBase = { PowerPlant1, PowerPlant2, PowerPlant3, PowerPlant4, PowerPlant5, Refinery, HandOfNod, Silo1, Silo2, Silo3, Silo4, ConYard, CommCenter } NodBase = { PowerPlant1, PowerPlant2, PowerPlant3, PowerPlant4, PowerPlant5, Refinery, HandOfNod, Silo1, Silo2, Silo3, Silo4, ConYard, CommCenter }

View File

@@ -39,8 +39,7 @@ World:
easy: Easy easy: Easy
normal: Normal normal: Normal
hard: Hard hard: Hard
Default: easy Default: normal
Locked: false
Player: Player:
PlayerResources: PlayerResources:

View File

@@ -6,6 +6,7 @@
the License, or (at your option) any later version. For more the License, or (at your option) any later version. For more
information, see COPYING. information, see COPYING.
]] ]]
Difficulty = Map.LobbyOption("difficulty")
NodStartUnitsRight = NodStartUnitsRight =
{ {

View File

@@ -18,7 +18,6 @@ World:
hard: Hard hard: Hard
tough: Real tough guy tough: Real tough guy
Default: normal Default: normal
Locked: false
Player: Player:
EnemyWatcher: EnemyWatcher:

View File

@@ -6,6 +6,7 @@
the License, or (at your option) any later version. For more the License, or (at your option) any later version. For more
information, see COPYING. information, see COPYING.
]] ]]
Difficulty = Map.LobbyOption("difficulty")
NodUnitsVehicle1 = NodUnitsVehicle1 =
{ {

View File

@@ -18,7 +18,6 @@ World:
hard: Hard hard: Hard
tough: Real tough guy tough: Real tough guy
Default: normal Default: normal
Locked: false
Player: Player:
PlayerResources: PlayerResources:

View File

@@ -6,6 +6,7 @@
the License, or (at your option) any later version. For more the License, or (at your option) any later version. For more
information, see COPYING. information, see COPYING.
]] ]]
Difficulty = Map.LobbyOption("difficulty")
if Difficulty == "easy" then if Difficulty == "easy" then
Rambo = "rmbo.easy" Rambo = "rmbo.easy"

View File

@@ -34,8 +34,7 @@ World:
easy: Easy easy: Easy
normal: Normal normal: Normal
hard: Hard hard: Hard
Default: easy Default: normal
Locked: false
Player: Player:
PlayerResources: PlayerResources:

View File

@@ -6,6 +6,7 @@
the License, or (at your option) any later version. For more the License, or (at your option) any later version. For more
information, see COPYING. information, see COPYING.
]] ]]
Difficulty = Map.LobbyOption("difficulty")
if Difficulty == "easy" then if Difficulty == "easy" then
Rambo = "rmbo.easy" Rambo = "rmbo.easy"

View File

@@ -29,8 +29,7 @@ World:
easy: Easy easy: Easy
normal: Normal normal: Normal
hard: Hard hard: Hard
Default: easy Default: normal
Locked: false
-LegacyBridgeLayer: -LegacyBridgeLayer:
^CivBuilding: ^CivBuilding:

View File

@@ -6,6 +6,7 @@
the License, or (at your option) any later version. For more the License, or (at your option) any later version. For more
information, see COPYING. information, see COPYING.
]] ]]
Difficulty = Map.LobbyOption("difficulty")
if Difficulty == "easy" then if Difficulty == "easy" then
Rambo = "rmbo.easy" Rambo = "rmbo.easy"

View File

@@ -14,8 +14,7 @@ World:
easy: Easy easy: Easy
normal: Normal normal: Normal
hard: Hard hard: Hard
Default: easy Default: normal
Locked: false
-LegacyBridgeLayer: -LegacyBridgeLayer:
Player: Player:

View File

@@ -15,13 +15,6 @@ World:
MapOptions: MapOptions:
ShortGameCheckboxLocked: True ShortGameCheckboxLocked: True
ShortGameCheckboxEnabled: False ShortGameCheckboxEnabled: False
ScriptLobbyDropdown@difficulty:
ID: difficulty
Label: Difficulty
Values:
normal: Normal
Default: normal
Locked: true
Player: Player:
-ConquestVictoryConditions: -ConquestVictoryConditions: