disable turn over advantage for campaigns by default
For campaigns (sp and mp) which are usually coop campaigns you usually don't want the turns over advantage message. So we disable it by default for campaigns. It is still possible to (de-)activate is manually by setting the wml variable show_turns_over_advantage to yes/no
This commit is contained in:
parent
c2071fca13
commit
219bb24b30
1 changed files with 7 additions and 0 deletions
|
@ -83,6 +83,13 @@
|
|||
[lua]
|
||||
# wmllint: markcheck off
|
||||
code=<<
|
||||
local show_turns_over_advantage = wesnoth.get_variable("show_turns_over_advantage")
|
||||
if show_turns_over_advantage == nil then
|
||||
show_turns_over_advantage = wesnoth.game_config.mp_settings and (wesnoth.game_config.mp_settings.mp_campaign == "")
|
||||
end
|
||||
if not show_turns_over_advantage then
|
||||
return
|
||||
end
|
||||
local _ = wesnoth.textdomain "wesnoth-multiplayer"
|
||||
local function all_sides()
|
||||
local function f(s, i)
|
||||
|
|
Loading…
Add table
Reference in a new issue