-
Notifications
You must be signed in to change notification settings - Fork 10
/
images_medals.js
212 lines (188 loc) · 6.14 KB
/
images_medals.js
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
/*
Ethereal Farm
Copyright (C) 2020-2024 Lode Vandevenne
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/*
The generic medal images are for when no specific icon for it exists. The
generic ones come in tiers of better and better metals for higher level
medals.
The 12 tier materials in increasing level are:
-0: zinc: dark gray
-1: bronze: brown
-2: silver: medium gray
-3: electrum: yellow-green
-4: gold: yellow
-5: platinum: light gray
-6: rhodium: rose
-7: amethyst: purple
-8: sapphire: blue
-9: emerald: green
-10: ruby: red
-11: diamond: white
*/
// These tiers are also used for other things than medals, e.g. fruits and some of the tree images.
// There are in addition also the metalheader0, 1, ... definitions for images in images.js, and stem_metal_header[0..11] in images_tree.js.
var tierNames = ['zinc', 'bronze', 'silver', 'electrum', 'gold', 'platinum', 'rhodium', 'amethyst', 'sapphire', 'emerald', 'ruby', 'diamond'];
var tierColors = ['#444', '#840', '#888', '#af5', '#ff0', '#ddd', '#fdd', '#b6f', '#00f', '#0c4', '#f00', '#fff'];
var tierColors_BG = ['#000', '#420', '#666', '#7a3', '#bb0', '#aaa', '#a88', '#95a', '#00a', '#092', '#a00', '#eee'];
// medals, too, get more saturation
var medalimageheader = 'l0:#c22 l1:#d44 l2:#e66 l3:#f88';
var hiddenmedalimageheader = 'l0:#8558 l1:#a778 l2:#c998 l3:#fcc8';
// there are also metalheader[0..11] in images.js
var medalheader0 = ' hm:#999'; // zinc
var medalheader1 = ' hm:#c70'; // bronze
var medalheader2 = ' hm:#fff'; // silver
var medalheader3 = ' hm:#dfb'; // electrum
var medalheader4 = ' hm:#ff0'; // gold
var medalheader5 = ' N:#fff M:#eee m:#ddd n:#ccc'; // platinum
var medalheader6 = ' N:#fee M:#ecc m:#dbb n:#caa'; // rhodium
var medalheader7 = ' hm:#95f'; // amethyst
var medalheader8 = ' hm:#00f'; // sapphire
var medalheader9 = ' hm:#0f0'; // emerald
var medalheader10 = ' hm:#f00'; // ruby
var medalheader11 = ' N:#fff M:#eee m:#ddd n:#ccc'; // diamond
var medalgenericmetal = `
................
......rrr.......
.....R...r......
.....R...r......
......R.r.......
......R.r.......
.......R........
.......R........
......NNN.......
.....NMMMN......
....NMMMmmn.....
....NMMmmmn.....
....NMmmmmn.....
.....Nmmmn......
......nnn.......
................
`;
var medalgenericgem = `
................
......ggg.......
.....G...g......
.....G...g......
......G.g.......
......G.g.......
.......G........
.......G........
......ZZZ.......
.....ZZNZZ......
....ZZNNmYY.....
....ZNNMmmY.....
....ZZmnnYY.....
.....ZYnYY......
......YYY.......
................
`;
var medalgeneric = [
generateAndSetupImage(medalimageheader + medalheader0 + medalgenericmetal),
generateAndSetupImage(medalimageheader + medalheader1 + medalgenericmetal),
generateAndSetupImage(medalimageheader + medalheader2 + medalgenericmetal),
generateAndSetupImage(medalimageheader + medalheader3 + medalgenericmetal),
generateAndSetupImage(medalimageheader + medalheader4 + medalgenericmetal),
generateAndSetupImage(medalimageheader + medalheader5 + medalgenericmetal),
generateAndSetupImage(medalimageheader + medalheader6 + medalgenericmetal),
generateAndSetupImage(medalimageheader + medalheader7 + medalgenericgem),
generateAndSetupImage(medalimageheader + medalheader8 + medalgenericgem),
generateAndSetupImage(medalimageheader + medalheader9 + medalgenericgem),
generateAndSetupImage(medalimageheader + medalheader10 + medalgenericgem),
];
var medalhiddenmetal = `
................
................
................
................
.......mm.......
......m..m......
......m..m......
........m.......
........m.......
................
........m.......
................
................
................
................
................
`;
var medalhiddengem = `
................
................
................
................
.......YY.......
......Y..Y......
......Y..Y......
........Y.......
........Y.......
................
........m.......
................
................
................
................
................
`;
var medalhidden = [
generateAndSetupImage(hiddenmedalimageheader + medalheader0 + medalhiddenmetal),
generateAndSetupImage(hiddenmedalimageheader + medalheader1 + medalhiddenmetal),
generateAndSetupImage(hiddenmedalimageheader + medalheader2 + medalhiddenmetal),
generateAndSetupImage(hiddenmedalimageheader + medalheader3 + medalhiddenmetal),
generateAndSetupImage(hiddenmedalimageheader + medalheader4 + medalhiddenmetal),
generateAndSetupImage(hiddenmedalimageheader + medalheader5 + medalhiddenmetal),
generateAndSetupImage(hiddenmedalimageheader + medalheader6 + medalhiddenmetal),
generateAndSetupImage(hiddenmedalimageheader + medalheader7 + medalhiddengem),
generateAndSetupImage(hiddenmedalimageheader + medalheader8 + medalhiddengem),
generateAndSetupImage(hiddenmedalimageheader + medalheader9 + medalhiddengem),
generateAndSetupImage(hiddenmedalimageheader + medalheader10 + medalhiddengem),
generateAndSetupImage(hiddenmedalimageheader + medalheader11 + medalhiddengem),
];
var image_medaltranscend = generateAndSetupImage(`
................
................
.ZZZZZZZZZZZZZZ.
.ZXXXXXXXXXXXrZ.
.ZXOOOOOOOOOOrZ.
.ZXOOOOOOOOOOrZ.
.ZXrrrrOOrrrrrZ.
.ZZZZZXOOrZZZZZ.
.....ZXOOrZ.....
.....ZXOOrZ.....
.....ZXOOrZ.....
.....ZXOOrZ.....
.....ZXOOrZ.....
.....ZrrrrZ.....
.....ZZZZZZ.....
................
`);
var image_medal_icy_tower = generateAndSetupImage(`
................
........cc......
.......c))c.....
..cc...c)c(.....
.c))c..c)c(.....
c)))cc.c)c(..cc.
c)c)c(.c)(..c)cc
cc.cc(.cc(.c)c((
...cc(..(..cc(.(
...c(...(..c(...
................
.cccccccccc((((.
..cCCCCCccccc(..
...ccccccc(((...
..cCCCCCCcccc(..
.cccccccccc((((.
`);