-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacros.cfg
84 lines (73 loc) · 1.51 KB
/
macros.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#define MY_UNIT_TEST NAME CONTENT
{GENERIC_UNIT_TEST {NAME} (
[lua]
code = << wesnoth.dofile '~add-ons/scaling_mod/main.lua' >>
[/lua]
[lua]
code = <<
helper = wesnoth.require "helper"
on_event = wesnoth.require "lua/on_event.lua"
test = wesnoth.require "~add-ons/scaling_mod/lua/test_base.lua"
>>
[/lua]
{CONTENT}
)}
#enddef
#define PRESTART_WITH_DUMMY_UNIT ID CONTENT
[event]
name = prestart
[unit]
id={ID}
type=dummy_unit
random_traits=no
placement=map,leader
{CONTENT}
[/unit]
[/event]
#enddef
#define PRESTART_WITH_UNIT TYPE ID CONTENT
[event]
name = prestart
[unit]
id={ID}
type={TYPE}
random_traits=no
placement=map,leader
{CONTENT}
[/unit]
[/event]
#enddef
# Copy of the private macro NEW:VILLAGE_TOD (core/terrain-graphics/new-macros.cfg)
#define _NEW:VILLAGE_TOD_ TERRAINLIST IMAGESTEM
#arg PROB
100#endarg
#arg VARIATIONS
;2;3;4;5;6;7#endarg
#arg TIME
first_watch,dusk,dusk1,dusk2,short_dark,long_dark1,underground#endarg
[terrain_graphics]
map="
, *
* , *
, 1
* , *
, *"
[tile]
pos=1
type={TERRAINLIST}
set_no_flag=village
[/tile]
probability={PROB}
[image]
name={IMAGESTEM}@V.png
variations={VARIATIONS}
layer=0
base=90,144
center=90,144
[variant]
tod={TIME}
name={IMAGESTEM}@V-night.png
[/variant]
[/image]
[/terrain_graphics]
#enddef