-
Notifications
You must be signed in to change notification settings - Fork 0
/
flower.nml
103 lines (102 loc) · 2.54 KB
/
flower.nml
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
grf {
grfid: "BBFL";
name: string(NAME);
desc: string(DESC);
url: string(URL);
version: 1;
min_compatible_version: 1;
param {
param_grid {
type: bool;
def_value: 0;
bit: 2;
name: string(DO_GRID);
}
param_alpine {
type: bool;
def_value: 0;
name: string(DO_ALPINE);
}
}
}
grid = param_grid;
alpine = param_alpine;
opengfx_check = (grf_current_status("\FFOT\01") == 1);
if (opengfx_check == 1) {
if (climate == CLIMATE_ARCTIC) {
if (grid == 0) {
if (alpine == 1) {
replace flowers_plus_temp_alt_1(4000, "gfx/flower+.png") {
[1, 1, 64, 31, -31, 0]
}
replace flowers_plus_temp_alt_2(4019, "gfx/flower+.png") {
[1, 1, 64, 31, -31, 0]
[1, 1, 64, 31, -31, 0]
[1, 1, 64, 31, -31, 0, "gfx/mushroom+.png"]
[1, 1, 64, 31, -31, 0]
}
} else {
replace flowers_plus_arct1(4000, "gfx/flowerartic+.png") {
[1, 1, 64, 31, -31, 0]
}
replace flowers_plus_arct2(4019, "gfx/flowerartic+.png") {
[1, 1, 64, 31, -31, 0]
[1, 1, 64, 31, -31, 0]
[1, 1, 64, 31, -31, 0, "gfx/mushroomartic+.png"]
[1, 1, 64, 31, -31, 0]
}
}
} else {
if (alpine == 1) {
replace flowers_temp_alt_1(4000, "gfx/flower.png") {
[1, 1, 64, 31, -31, 0]
}
replace flowers_temp_alt_2(4019, "gfx/flower.png") {
[1, 1, 64, 31, -31, 0]
[1, 1, 64, 31, -31, 0]
[1, 1, 64, 31, -31, 0]
[1, 1, 64, 31, -31, 0]
}
} else {
replace flowers_arct1(4000, "gfx/flowerartic.png") {
[1, 1, 64, 31, -31, 0]
}
replace flowers_arct2(4019, "gfx/flowerartic.png") {
[1, 1, 64, 31, -31, 0]
[1, 1, 64, 31, -31, 0]
[1, 1, 64, 31, -31, 0, "gfx/mushroomartic.png"]
[1, 1, 64, 31, -31, 0]
}
}
}
}
else if (climate == CLIMATE_TROPICAL) {
error (NOTICE, string(Tropical));
}
else if (climate == CLIMATE_TOYLAND) {
error (NOTICE, string(Toyland));
}
else {
if (grid == 0) {
replace flowers_temp1(4000, "gfx/flower+.png") {
[1, 1, 64, 31, -31, 0]
}
replace flowers_temp2(4019, "gfx/flower+.png") {
[1, 1, 64, 31, -31, 0]
[1, 1, 64, 31, -31, 0]
[1, 1, 64, 31, -31, 0, "gfx/mushroom+.png"]
[1, 1, 64, 31, -31, 0]
}
} else {
replace flowers_plus_temp1(4000, "gfx/flower.png") {
[1, 1, 64, 31, -31, 0]
}
replace flowers_plus_temp2(4019, "gfx/flower.png") {
[1, 1, 64, 31, -31, 0]
[1, 1, 64, 31, -31, 0]
[1, 1, 64, 31, -31, 0, "gfx/mushroom.png"]
[1, 1, 64, 31, -31, 0]
}
}
}
}