1#textdomain wesnoth-multiplayer
2
3#define RANDOM_SIDE
4    [multiplayer_side]
5        id=Random
6        name= _"Random"
7        image="units/random-dice.png"
8        random_faction=yes
9    [/multiplayer_side]
10#enddef
11
12#define QUICK_4MP_LEADERS
13    # This makes all leaders with 4 MP receive the quick trait, except ones with
14    # unit.variables.dont_make_me_quick=yes (boolean)
15
16    [event]
17        name=prestart
18        [lua]
19            code = << wesnoth.require("multiplayer/eras.lua").quick_4mp_leaders(...) >>
20            [args]
21                {TRAIT_QUICK}
22            [/args]
23        [/lua]
24    [/event]
25#enddef
26
27#define TURNS_OVER_ADVANTAGE
28    [event]
29        name=time over
30        [lua]
31            code = << wesnoth.require("multiplayer/eras.lua").turns_over_advantage() >>
32        [/lua]
33    [/event]
34#enddef
35
36# These macros make things easier for UMC eras which are additions to or modifications of the default eras.
37# If anything gets changed or added to the default eras, please do it in the code included in these macros.
38#define ERA_DEFAULT
39    {RANDOM_SIDE}
40    {multiplayer/factions/loyalists-default.cfg}
41    {multiplayer/factions/rebels-default.cfg}
42    {multiplayer/factions/northerners-default.cfg}
43    {multiplayer/factions/undead-default.cfg}
44    {multiplayer/factions/knalgans-default.cfg}
45    {multiplayer/factions/drakes-default.cfg}
46
47    {QUICK_4MP_LEADERS}
48    {TURNS_OVER_ADVANTAGE}
49#enddef
50
51[era]
52    id=era_default
53    name= _ "Default"
54    description=_ "The standard era for Wesnoth multiplayer. Consists of six factions and is generally balanced."
55    type=hybrid
56
57    {ERA_DEFAULT}
58[/era]
59
60#define ERA_HEROES
61    {RANDOM_SIDE}
62    {multiplayer/factions/loyalists-aoh.cfg}
63    {multiplayer/factions/rebels-aoh.cfg}
64    {multiplayer/factions/northerners-aoh.cfg}
65    {multiplayer/factions/undead-aoh.cfg}
66    {multiplayer/factions/knalgans-aoh.cfg}
67    {multiplayer/factions/drakes-aoh.cfg}
68
69    {QUICK_4MP_LEADERS}
70    {TURNS_OVER_ADVANTAGE}
71#enddef
72
73[era]
74    id=era_heroes
75    name= _ "Age of Heroes"
76    description= _"An era with higher level units: level three leaders, with level one and two units available for recruit. Consists of six factions. Not considered balanced."
77
78    {ERA_HEROES}
79[/era]
80
81[era]
82    id=era_dunefolk
83    name= _ "Default + Dunefolk"
84    description= _ "An era featuring an additional faction besides the six factions from Default Era. Dunefolk units rely on careful use of terrain and coordinated strikes around dusk or dawn.
85
86This era is still under development, so please be sure to report any problems that arise."
87
88    {ERA_DEFAULT}
89    {multiplayer/factions/dunefolk-default.cfg}
90[/era]
91
92[era]
93    id=era_dunefolk_heroes
94    name= _ "Age of Heroes + Dunefolk"
95    description= _ "An era featuring an additional faction besides the six factions from Age of Heroes Era. Dunefolk units rely on careful use of terrain and coordinated strikes around dusk or dawn.
96
97This era is still under development, so please be sure to report any problems that arise."
98
99    {ERA_HEROES}
100    {multiplayer/factions/dunefolk-aoh.cfg}
101[/era]
102