Fallback to normal difficulty when none is set.

This commit is contained in:
Matthias Mailänder
2022-09-10 21:36:05 +02:00
committed by Gustas
parent b30285e38d
commit 0fb5853b7a
4 changed files with 15 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
information, see COPYING.
]]
Difficulty = Map.LobbyOption("difficulty")
Difficulty = Map.LobbyOptionOrDefault("difficulty", "normal")
InitObjectives = function(player)
Trigger.OnObjectiveCompleted(player, function(p, id)

View File

@@ -7,7 +7,7 @@
information, see COPYING.
]]
Difficulty = Map.LobbyOption("difficulty")
Difficulty = Map.LobbyOptionOrDefault("difficulty", "normal")
InitObjectives = function(player)
Trigger.OnObjectiveCompleted(player, function(p, id)

View File

@@ -7,7 +7,7 @@
information, see COPYING.
]]
Difficulty = Map.LobbyOption("difficulty")
Difficulty = Map.LobbyOptionOrDefault("difficulty", "normal")
InitObjectives = function(player)
Trigger.OnObjectiveCompleted(player, function(p, id)