move multiplayer macros to proper folder (#7647)
This commit is contained in:
parent
41202b9bc5
commit
9dfd434cdd
2 changed files with 62 additions and 61 deletions
62
data/core/macros/multiplayer.cfg
Normal file
62
data/core/macros/multiplayer.cfg
Normal file
|
@ -0,0 +1,62 @@
|
|||
#textdomain wesnoth-multiplayer
|
||||
|
||||
#define RANDOM_SIDE
|
||||
[multiplayer_side]
|
||||
id=Random
|
||||
name= _"Random"
|
||||
image="units/random-dice.png"
|
||||
random_faction=yes
|
||||
[/multiplayer_side]
|
||||
#enddef
|
||||
|
||||
#define QUICK_4MP_LEADERS
|
||||
# This makes all leaders with 4 MP receive the quick trait, except ones with
|
||||
# unit.variables.dont_make_me_quick=yes (boolean)
|
||||
|
||||
[event]
|
||||
name=prestart
|
||||
[lua]
|
||||
code = << wesnoth.require("multiplayer/eras.lua").quick_4mp_leaders(...) >>
|
||||
[args]
|
||||
{TRAIT_QUICK}
|
||||
[/args]
|
||||
[/lua]
|
||||
[/event]
|
||||
#enddef
|
||||
|
||||
#define TURNS_OVER_ADVANTAGE
|
||||
[event]
|
||||
name=time over
|
||||
[lua]
|
||||
code = << wesnoth.require("multiplayer/eras.lua").turns_over_advantage() >>
|
||||
[/lua]
|
||||
[/event]
|
||||
#enddef
|
||||
|
||||
# These macros make things easier for UMC eras which are additions to or modifications of the default eras.
|
||||
# If anything gets changed or added to the default eras, please do it in the code included in these macros.
|
||||
#define ERA_DEFAULT
|
||||
{RANDOM_SIDE}
|
||||
{multiplayer/factions/loyalists-default.cfg}
|
||||
{multiplayer/factions/rebels-default.cfg}
|
||||
{multiplayer/factions/northerners-default.cfg}
|
||||
{multiplayer/factions/undead-default.cfg}
|
||||
{multiplayer/factions/knalgans-default.cfg}
|
||||
{multiplayer/factions/drakes-default.cfg}
|
||||
|
||||
{QUICK_4MP_LEADERS}
|
||||
{TURNS_OVER_ADVANTAGE}
|
||||
#enddef
|
||||
|
||||
#define ERA_HEROES
|
||||
{RANDOM_SIDE}
|
||||
{multiplayer/factions/loyalists-aoh.cfg}
|
||||
{multiplayer/factions/rebels-aoh.cfg}
|
||||
{multiplayer/factions/northerners-aoh.cfg}
|
||||
{multiplayer/factions/undead-aoh.cfg}
|
||||
{multiplayer/factions/knalgans-aoh.cfg}
|
||||
{multiplayer/factions/drakes-aoh.cfg}
|
||||
|
||||
{QUICK_4MP_LEADERS}
|
||||
{TURNS_OVER_ADVANTAGE}
|
||||
#enddef
|
|
@ -1,53 +1,5 @@
|
|||
#textdomain wesnoth-multiplayer
|
||||
|
||||
#define RANDOM_SIDE
|
||||
[multiplayer_side]
|
||||
id=Random
|
||||
name= _"Random"
|
||||
image="units/random-dice.png"
|
||||
random_faction=yes
|
||||
[/multiplayer_side]
|
||||
#enddef
|
||||
|
||||
#define QUICK_4MP_LEADERS
|
||||
# This makes all leaders with 4 MP receive the quick trait, except ones with
|
||||
# unit.variables.dont_make_me_quick=yes (boolean)
|
||||
|
||||
[event]
|
||||
name=prestart
|
||||
[lua]
|
||||
code = << wesnoth.require("multiplayer/eras.lua").quick_4mp_leaders(...) >>
|
||||
[args]
|
||||
{TRAIT_QUICK}
|
||||
[/args]
|
||||
[/lua]
|
||||
[/event]
|
||||
#enddef
|
||||
|
||||
#define TURNS_OVER_ADVANTAGE
|
||||
[event]
|
||||
name=time over
|
||||
[lua]
|
||||
code = << wesnoth.require("multiplayer/eras.lua").turns_over_advantage() >>
|
||||
[/lua]
|
||||
[/event]
|
||||
#enddef
|
||||
|
||||
# These macros make things easier for UMC eras which are additions to or modifications of the default eras.
|
||||
# If anything gets changed or added to the default eras, please do it in the code included in these macros.
|
||||
#define ERA_DEFAULT
|
||||
{RANDOM_SIDE}
|
||||
{multiplayer/factions/loyalists-default.cfg}
|
||||
{multiplayer/factions/rebels-default.cfg}
|
||||
{multiplayer/factions/northerners-default.cfg}
|
||||
{multiplayer/factions/undead-default.cfg}
|
||||
{multiplayer/factions/knalgans-default.cfg}
|
||||
{multiplayer/factions/drakes-default.cfg}
|
||||
|
||||
{QUICK_4MP_LEADERS}
|
||||
{TURNS_OVER_ADVANTAGE}
|
||||
#enddef
|
||||
|
||||
[era]
|
||||
id=era_default
|
||||
name= _ "Default"
|
||||
|
@ -57,19 +9,6 @@
|
|||
{ERA_DEFAULT}
|
||||
[/era]
|
||||
|
||||
#define ERA_HEROES
|
||||
{RANDOM_SIDE}
|
||||
{multiplayer/factions/loyalists-aoh.cfg}
|
||||
{multiplayer/factions/rebels-aoh.cfg}
|
||||
{multiplayer/factions/northerners-aoh.cfg}
|
||||
{multiplayer/factions/undead-aoh.cfg}
|
||||
{multiplayer/factions/knalgans-aoh.cfg}
|
||||
{multiplayer/factions/drakes-aoh.cfg}
|
||||
|
||||
{QUICK_4MP_LEADERS}
|
||||
{TURNS_OVER_ADVANTAGE}
|
||||
#enddef
|
||||
|
||||
[era]
|
||||
id=era_heroes
|
||||
name= _ "Age of Heroes"
|
||||
|
|
Loading…
Add table
Reference in a new issue