author | darkvater |
Mon, 13 Sep 2004 12:28:11 +0000 | |
changeset 233 | dd177a8c9f19 |
parent 193 | 0a7025304867 |
child 240 | f1efbac04112 |
permissions | -rw-r--r-- |
0 | 1 |
#include "stdafx.h" |
2 |
#include "ttd.h" |
|
3 |
||
4 |
||
5 |
#define GETNUM(x, y) (((uint16)(seed >> x) * (y))>>16) |
|
6 |
||
7 |
static void AppendPart(byte **buf, int num, const char *names) |
|
8 |
{ |
|
9 |
byte *s; |
|
10 |
||
11 |
while (--num>=0) { |
|
12 |
do names++; while (names[-1]); |
|
13 |
} |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
14 |
|
0 | 15 |
for(s=*buf; (*s++ = *names++) != 0;) {} |
16 |
*buf = s - 1; |
|
17 |
} |
|
18 |
||
19 |
#define MK(x) x "\x0" |
|
20 |
||
21 |
#define NUM_ENGLISH_1 4 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
22 |
static const char english_1[] = |
0 | 23 |
MK("Great ") |
24 |
MK("Little ") |
|
25 |
MK("New ") |
|
26 |
MK("Fort ") |
|
27 |
; |
|
28 |
||
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
29 |
#define NUM_ENGLISH_2 26 |
0 | 30 |
static const char english_2[] = |
31 |
MK("Wr") |
|
32 |
MK("B") |
|
33 |
MK("C") |
|
34 |
MK("Ch") |
|
35 |
MK("Br") |
|
36 |
MK("D") |
|
37 |
MK("Dr") |
|
38 |
MK("F") |
|
39 |
MK("Fr") |
|
40 |
MK("Fl") |
|
41 |
MK("G") |
|
42 |
MK("Gr") |
|
43 |
MK("H") |
|
44 |
MK("L") |
|
45 |
MK("M") |
|
46 |
MK("N") |
|
47 |
MK("P") |
|
48 |
MK("Pr") |
|
49 |
MK("Pl") |
|
50 |
MK("R") |
|
51 |
MK("S") |
|
52 |
MK("S") |
|
53 |
MK("Sl") |
|
54 |
MK("T") |
|
55 |
MK("Tr") |
|
56 |
MK("W") |
|
57 |
; |
|
58 |
||
59 |
#define NUM_ENGLISH_3 8 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
60 |
static const char english_3[] = |
0 | 61 |
MK("ar") |
62 |
MK("a") |
|
63 |
MK("e") |
|
64 |
MK("in") |
|
65 |
MK("on") |
|
66 |
MK("u") |
|
67 |
MK("un") |
|
68 |
MK("en") |
|
69 |
; |
|
70 |
||
71 |
#define NUM_ENGLISH_4 7 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
72 |
static const char english_4[] = |
0 | 73 |
MK("n") |
74 |
MK("ning") |
|
75 |
MK("ding") |
|
76 |
MK("d") |
|
77 |
MK("") |
|
78 |
MK("t") |
|
79 |
MK("fing") |
|
80 |
; |
|
81 |
||
82 |
#define NUM_ENGLISH_5 23 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
83 |
static const char english_5[] = |
0 | 84 |
MK("ville") |
85 |
MK("ham") |
|
86 |
MK("field") |
|
87 |
MK("ton") |
|
88 |
MK("town") |
|
89 |
MK("bridge") |
|
90 |
MK("bury") |
|
91 |
MK("wood") |
|
92 |
MK("ford") |
|
93 |
MK("hall") |
|
94 |
MK("ston") |
|
95 |
MK("way") |
|
96 |
MK("stone") |
|
97 |
MK("borough") |
|
98 |
MK("ley") |
|
99 |
MK("head") |
|
100 |
MK("bourne") |
|
101 |
MK("pool") |
|
102 |
MK("worth") |
|
103 |
MK("hill") |
|
104 |
MK("well") |
|
105 |
MK("hattan") |
|
106 |
MK("burg") |
|
107 |
; |
|
108 |
||
109 |
#define NUM_ENGLISH_6 9 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
110 |
static const char english_6[] = |
0 | 111 |
MK("-on-sea") |
112 |
MK(" Bay") |
|
113 |
MK(" Market") |
|
114 |
MK(" Cross") |
|
115 |
MK(" Bridge") |
|
116 |
MK(" Falls") |
|
117 |
MK(" City") |
|
118 |
MK(" Ridge") |
|
119 |
MK(" Springs") |
|
120 |
; |
|
111
31c32d936f58
(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one file)
truelight
parents:
109
diff
changeset
|
121 |
|
31c32d936f58
(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one file)
truelight
parents:
109
diff
changeset
|
122 |
#define REPLACE_WORDS(a,b,c,d,e,f,g,h) { if (start[0] == a && start[1] == b && start[2] == c && start[3] == d) { start[0] = e; start[1] = f; start[2] = g; start[3] = h; } } |
0 | 123 |
|
124 |
static byte MakeEnglishTownName(byte *buf, uint32 seed) |
|
125 |
{ |
|
126 |
int i; |
|
127 |
byte result; |
|
128 |
byte *start; |
|
129 |
||
130 |
i = GETNUM(0, 54) - 50; |
|
131 |
if (i >= 0) |
|
132 |
AppendPart(&buf, i, english_1); |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
133 |
|
0 | 134 |
start = buf; |
135 |
||
136 |
AppendPart(&buf, GETNUM(4, NUM_ENGLISH_2), english_2); |
|
137 |
AppendPart(&buf, GETNUM(7, NUM_ENGLISH_3), english_3); |
|
138 |
AppendPart(&buf, GETNUM(10, NUM_ENGLISH_4), english_4); |
|
139 |
AppendPart(&buf, GETNUM(13, NUM_ENGLISH_5), english_5); |
|
140 |
||
141 |
i = GETNUM(15, NUM_ENGLISH_6 + 60) - 60; |
|
142 |
||
143 |
result = 0; |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
144 |
|
0 | 145 |
if (i >= 0) { |
146 |
if (i <= 1) result = NG_EDGE; |
|
147 |
AppendPart(&buf, i, english_6); |
|
148 |
} |
|
149 |
||
150 |
if (start[0]=='C' && (start[1] == 'e' || start[1] == 'i')) |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
151 |
start[0] = 'K'; |
0 | 152 |
|
109
96a76a02e425
(svn r110) Added modified English town name generator
orudge
parents:
65
diff
changeset
|
153 |
/* Replace certain words (routine identical to TTD now) */ |
111
31c32d936f58
(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one file)
truelight
parents:
109
diff
changeset
|
154 |
|
31c32d936f58
(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one file)
truelight
parents:
109
diff
changeset
|
155 |
REPLACE_WORDS('C','u','n','t', 'E','a','s','t'); |
31c32d936f58
(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one file)
truelight
parents:
109
diff
changeset
|
156 |
REPLACE_WORDS('S','l','a','g', 'P','i','t','s'); |
31c32d936f58
(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one file)
truelight
parents:
109
diff
changeset
|
157 |
REPLACE_WORDS('S','l','u','t', 'E','d','i','n'); |
31c32d936f58
(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one file)
truelight
parents:
109
diff
changeset
|
158 |
// REPLACE_WORDS('F','a','r','t', 'B','o','o','t'); |
31c32d936f58
(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one file)
truelight
parents:
109
diff
changeset
|
159 |
REPLACE_WORDS('D','r','a','r', 'Q','u','a','r'); |
31c32d936f58
(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one file)
truelight
parents:
109
diff
changeset
|
160 |
REPLACE_WORDS('D','r','e','h', 'B','a','s','h'); |
31c32d936f58
(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one file)
truelight
parents:
109
diff
changeset
|
161 |
REPLACE_WORDS('F','r','a','r', 'S','h','o','r'); |
31c32d936f58
(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one file)
truelight
parents:
109
diff
changeset
|
162 |
REPLACE_WORDS('G','r','a','r', 'A','b','e','r'); |
31c32d936f58
(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one file)
truelight
parents:
109
diff
changeset
|
163 |
REPLACE_WORDS('B','r','a','r', 'O','v','e','r'); |
31c32d936f58
(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one file)
truelight
parents:
109
diff
changeset
|
164 |
REPLACE_WORDS('W','r','a','r', 'I','n','v','e'); |
0 | 165 |
|
166 |
return result; |
|
167 |
} |
|
168 |
||
169 |
#define NUM_AUSTRIAN_A1 6 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
170 |
static const char austrian_a1[] = |
0 | 171 |
MK("Bad ") |
172 |
MK("Deutsch ") |
|
173 |
MK("Gross ") |
|
174 |
MK("Klein ") |
|
175 |
MK("Markt ") |
|
176 |
MK("Maria ") |
|
177 |
; |
|
178 |
||
179 |
#define NUM_AUSTRIAN_A2 42 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
180 |
static const char austrian_a2[] = |
0 | 181 |
MK("Aus") |
182 |
MK("Alten") |
|
183 |
MK("Braun") |
|
184 |
MK("Vösl") |
|
185 |
MK("Mittern") |
|
186 |
MK("Nuss") |
|
187 |
MK("Neu") |
|
188 |
MK("Walters") |
|
189 |
MK("Breiten") |
|
190 |
MK("Eisen") |
|
191 |
MK("Feld") |
|
192 |
MK("Mittern") |
|
193 |
MK("Gall") |
|
194 |
MK("Obern") |
|
195 |
MK("Grat") |
|
196 |
MK("Heiligen") |
|
197 |
MK("Hof") |
|
198 |
MK("Holla") |
|
199 |
MK("Stein") |
|
200 |
MK("Eber") |
|
201 |
MK("Eggen") |
|
202 |
MK("Enzers") |
|
203 |
MK("Frauen") |
|
204 |
MK("Herren") |
|
205 |
MK("Hof") |
|
206 |
MK("Hütt") |
|
207 |
MK("Kaisers") |
|
208 |
MK("Königs") |
|
209 |
MK("Knittel") |
|
210 |
MK("Lang") |
|
211 |
MK("Ober") |
|
212 |
MK("Ollers") |
|
213 |
MK("Pfaffen") |
|
214 |
MK("Potten") |
|
215 |
MK("Salz") |
|
216 |
MK("Schwarz") |
|
217 |
MK("Stocker") |
|
218 |
MK("Unter") |
|
219 |
MK("Utten") |
|
220 |
MK("Vösen") |
|
221 |
MK("Vill") |
|
222 |
MK("Weissen") |
|
223 |
; |
|
224 |
||
225 |
#define NUM_AUSTRIAN_A3 16 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
226 |
static const char austrian_a3[] = |
0 | 227 |
MK("see") |
228 |
MK("bach") |
|
229 |
MK("dorf") |
|
230 |
MK("ach") |
|
231 |
MK("stein") |
|
232 |
MK("hofen") |
|
233 |
MK("au") |
|
234 |
MK("ach") |
|
235 |
MK("kirch") |
|
236 |
MK("kirchen") |
|
237 |
MK("kreuz") |
|
238 |
MK("brunn") |
|
239 |
MK("siedl") |
|
240 |
MK("markt") |
|
241 |
MK("wang") |
|
242 |
MK("haag") |
|
243 |
; |
|
244 |
||
245 |
#define NUM_AUSTRIAN_A4 12 |
|
246 |
static const char austrian_a4[] = |
|
247 |
MK("Bruck") |
|
248 |
MK("Brunn") |
|
249 |
MK("Gams") |
|
250 |
MK("Grein") |
|
251 |
MK("Ried") |
|
252 |
MK("Faak") |
|
253 |
MK("Zell") |
|
254 |
MK("Spital") |
|
255 |
MK("Kirchberg") |
|
256 |
MK("Saal") |
|
257 |
MK("Taferl") |
|
258 |
MK("Wald") |
|
259 |
; |
|
260 |
||
261 |
#define NUM_AUSTRIAN_A5 2 |
|
262 |
static const char austrian_a5[] = |
|
263 |
MK("St. ") |
|
264 |
MK("Sankt ") |
|
265 |
; |
|
266 |
||
267 |
#define NUM_AUSTRIAN_A6 20 |
|
268 |
static const char austrian_a6[] = |
|
269 |
MK("Aegyd") |
|
270 |
MK("Andrä") |
|
271 |
MK("Georgen") |
|
272 |
MK("Jakob") |
|
273 |
MK("Johann") |
|
274 |
MK("Leonhard") |
|
275 |
MK("Marein") |
|
276 |
MK("Lorenzen") |
|
277 |
MK("Margarethen") |
|
278 |
MK("Martin") |
|
279 |
MK("Michael") |
|
280 |
MK("Nikolai") |
|
281 |
MK("Oswald") |
|
282 |
MK("Peter") |
|
283 |
MK("Pölten") |
|
284 |
MK("Stefan") |
|
285 |
MK("Stephan") |
|
286 |
MK("Thomas") |
|
287 |
MK("Veit") |
|
288 |
MK("Wolfgang") |
|
289 |
; |
|
290 |
||
291 |
#define NUM_AUSTRIAN_F1 2 |
|
292 |
static const char austrian_f1[] = |
|
293 |
MK(" an der ") |
|
294 |
MK(" ob der ") |
|
295 |
; |
|
296 |
||
297 |
#define NUM_AUSTRIAN_F2 13 |
|
298 |
static const char austrian_f2[] = |
|
299 |
MK("Donau") |
|
300 |
MK("Steyr") |
|
301 |
MK("Lafnitz") |
|
302 |
MK("Leitha") |
|
303 |
MK("Thaya") |
|
304 |
MK("Gail") |
|
305 |
MK("Drau") |
|
306 |
MK("Salzach") |
|
307 |
MK("Ybbs") |
|
308 |
MK("Traisen") |
|
309 |
MK("Enns") |
|
310 |
MK("Mur") |
|
311 |
MK("Ill") |
|
312 |
; |
|
313 |
||
314 |
#define NUM_AUSTRIAN_B1 1 |
|
315 |
static const char austrian_b1[] = |
|
316 |
MK(" am ") |
|
317 |
; |
|
318 |
||
319 |
#define NUM_AUSTRIAN_B2 10 |
|
320 |
static const char austrian_b2[] = |
|
321 |
MK("Brenner") |
|
322 |
MK("Dachstein") |
|
323 |
MK("Gebirge") |
|
324 |
MK("Grossglockner") |
|
325 |
MK("Hausruck") |
|
326 |
MK("Semmering") |
|
327 |
MK("Wagram") |
|
328 |
MK("Wechsel") |
|
329 |
MK("Wilden Kaiser") |
|
330 |
MK("Ziller") |
|
331 |
; |
|
332 |
||
333 |
static byte MakeAustrianTownName(byte *buf, uint32 seed) |
|
334 |
{ |
|
335 |
int i, j=0; |
|
336 |
||
337 |
// Bad, Maria, Gross, ... |
|
338 |
i = GETNUM(0, NUM_AUSTRIAN_A1 + 15) - 15; |
|
339 |
if (i >= 0) AppendPart(&buf, i, austrian_a1); |
|
340 |
||
341 |
i = GETNUM(4, 6); |
|
342 |
if(i >= 4) { |
|
343 |
// Kaisers-kirchen |
|
344 |
AppendPart(&buf, GETNUM( 7, NUM_AUSTRIAN_A2), austrian_a2); |
|
345 |
AppendPart(&buf, GETNUM(13, NUM_AUSTRIAN_A3), austrian_a3); |
|
346 |
} |
|
347 |
else if(i >= 2) { |
|
348 |
// St. Johann |
|
349 |
AppendPart(&buf, GETNUM( 7, NUM_AUSTRIAN_A5), austrian_a5); |
|
350 |
AppendPart(&buf, GETNUM( 9, NUM_AUSTRIAN_A6), austrian_a6); |
|
351 |
j=1; // More likely to have a " an der " or " am " |
|
352 |
} |
|
353 |
else { |
|
354 |
// Zell |
|
355 |
AppendPart(&buf, GETNUM( 7, NUM_AUSTRIAN_A4), austrian_a4); |
|
356 |
} |
|
357 |
||
358 |
i = GETNUM(1, 6); |
|
359 |
if(i >= 4-j) { |
|
360 |
// an der Donau (rivers) |
|
361 |
AppendPart(&buf, GETNUM(4, NUM_AUSTRIAN_F1), austrian_f1); |
|
362 |
AppendPart(&buf, GETNUM(5, NUM_AUSTRIAN_F2), austrian_f2); |
|
363 |
} |
|
364 |
else if(i >= 2-j) { |
|
365 |
// am Dachstein (mountains) |
|
366 |
AppendPart(&buf, GETNUM(4, NUM_AUSTRIAN_B1), austrian_b1); |
|
367 |
AppendPart(&buf, GETNUM(5, NUM_AUSTRIAN_B2), austrian_b2); |
|
368 |
} |
|
369 |
||
370 |
return 0; |
|
371 |
} |
|
372 |
||
373 |
#define NUM_GERMAN_1 114 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
374 |
#define NUM_GERMAN_1_HARDCODED 21 |
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
375 |
static const char german_1[] = |
0 | 376 |
/* hardcoded names */ |
377 |
MK("Berlin") |
|
378 |
MK("Bonn") |
|
379 |
MK("Bremen") |
|
380 |
MK("Cottbus") |
|
381 |
MK("Chemnitz") |
|
382 |
MK("Dortmund") |
|
383 |
MK("Dresden") |
|
384 |
MK("Erfurt") |
|
385 |
MK("Erlangen") |
|
386 |
MK("Essen") |
|
387 |
MK("Fulda") |
|
388 |
MK("Gera") |
|
389 |
MK("Kassel") |
|
390 |
MK("Kiel") |
|
391 |
MK("Köln") |
|
392 |
MK("Lübeck") |
|
393 |
MK("Magdeburg") |
|
394 |
MK("München") |
|
395 |
MK("Potsdam") |
|
396 |
MK("Stuttgart") |
|
397 |
MK("Wiesbaden") |
|
398 |
/* randomizer names */ |
|
399 |
MK("Alb") |
|
400 |
MK("Als") |
|
401 |
MK("Ander") |
|
402 |
MK("Arns") |
|
403 |
MK("Bruns") |
|
404 |
MK("Bam") |
|
405 |
MK("Biele") |
|
406 |
MK("Cloppen") |
|
407 |
MK("Co") |
|
408 |
MK("Duis") |
|
409 |
MK("Düssel") |
|
410 |
MK("Dannen") |
|
411 |
MK("Elb") |
|
412 |
MK("Els") |
|
413 |
MK("Elster") |
|
414 |
MK("Eichen") |
|
415 |
MK("Ems") |
|
416 |
MK("Fahr") |
|
417 |
MK("Falken") |
|
418 |
MK("Flens") |
|
419 |
MK("Frank") |
|
420 |
MK("Frei") |
|
421 |
MK("Freuden") |
|
422 |
MK("Fried") |
|
423 |
MK("Fürsten") |
|
424 |
MK("Hahn") |
|
425 |
MK("Ham") |
|
426 |
MK("Harz") |
|
427 |
MK("Heidel") |
|
428 |
MK("Hers") |
|
429 |
MK("Herz") |
|
430 |
MK("Holz") |
|
431 |
MK("Hildes") |
|
432 |
MK("Inns") |
|
433 |
MK("Ilsen") |
|
434 |
MK("Ingols") |
|
435 |
MK("Kel") |
|
436 |
MK("Kies") |
|
437 |
MK("Korn") |
|
438 |
MK("Kor") |
|
439 |
MK("Kreuz") |
|
440 |
MK("Kulm") |
|
441 |
MK("Langen") |
|
442 |
MK("Lim") |
|
443 |
MK("Lohr") |
|
444 |
MK("Lüne") |
|
445 |
MK("Mel") |
|
446 |
MK("Michels") |
|
447 |
MK("Mühl") |
|
448 |
MK("Naum") |
|
449 |
MK("Nest") |
|
450 |
MK("Nord") |
|
451 |
MK("Nort") |
|
452 |
MK("Nien") |
|
453 |
MK("Nidda") |
|
454 |
MK("Nieder") |
|
455 |
MK("Nürn") |
|
456 |
MK("Ober") |
|
457 |
MK("Offen") |
|
458 |
MK("Osna") |
|
459 |
MK("Olden") |
|
460 |
MK("Ols") |
|
461 |
MK("Oranien") |
|
462 |
MK("Pader") |
|
463 |
MK("Quedlin") |
|
464 |
MK("Quer") |
|
465 |
MK("Ravens") |
|
466 |
MK("Regens") |
|
467 |
MK("Rott") |
|
468 |
MK("Ros") |
|
469 |
MK("Rüssels") |
|
470 |
MK("Saal") |
|
471 |
MK("Saar") |
|
472 |
MK("Salz") |
|
473 |
MK("Schöne") |
|
474 |
MK("Schwein") |
|
475 |
MK("Sonder") |
|
476 |
MK("Sonnen") |
|
477 |
MK("Stein") |
|
478 |
MK("Strals") |
|
479 |
MK("Straus") |
|
480 |
MK("Süd") |
|
481 |
MK("Ton") |
|
482 |
MK("Unter") |
|
483 |
MK("Ur") |
|
484 |
MK("Vor") |
|
485 |
MK("Wald") |
|
486 |
MK("War") |
|
487 |
MK("Wert") |
|
488 |
MK("Wester") |
|
489 |
MK("Witten") |
|
490 |
MK("Wolfs") |
|
491 |
MK("Würz") |
|
492 |
; |
|
493 |
||
494 |
#define NUM_GERMAN_2 16 |
|
495 |
static const char german_2[] = |
|
496 |
MK("bach") |
|
497 |
MK("berg") |
|
498 |
MK("brück") |
|
499 |
MK("brücken") |
|
500 |
MK("burg") |
|
501 |
MK("dorf") |
|
502 |
MK("feld") |
|
503 |
MK("furt") |
|
504 |
MK("hausen") |
|
505 |
MK("haven") |
|
506 |
MK("heim") |
|
507 |
MK("horst") |
|
508 |
MK("mund") |
|
509 |
MK("münster") |
|
510 |
MK("stadt") |
|
511 |
MK("wald") |
|
512 |
; |
|
513 |
||
514 |
#define NUM_GERMAN_3 5 |
|
515 |
static const char german_3[] = |
|
516 |
MK(" an der ") |
|
517 |
MK(" am ") |
|
518 |
MK("Bad ") |
|
519 |
MK("Klein ") |
|
520 |
MK("Neu ") |
|
521 |
; |
|
522 |
||
523 |
#define NUM_GERMAN_4 6 |
|
524 |
#define NUM_GERMAN_4_PRECHANGE 5 |
|
525 |
static const char german_4[] = |
|
526 |
/* use "an der" */ |
|
527 |
MK("Oder") |
|
528 |
MK("Spree") |
|
529 |
MK("Donau") |
|
530 |
MK("Saale") |
|
531 |
MK("Elbe") |
|
532 |
/* use "am" */ |
|
533 |
MK("Main") |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
534 |
|
0 | 535 |
; |
536 |
||
537 |
static byte MakeGermanTownName(byte *buf, uint32 seed) |
|
538 |
{ |
|
539 |
int i; |
|
540 |
int ext; |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
541 |
|
0 | 542 |
ext=GETNUM(7, 28); /* Extension - Prefix / Suffix */ |
543 |
||
544 |
if ((ext==12) || (ext==19)) { |
|
545 |
i=GETNUM(2,NUM_GERMAN_3-2); |
|
546 |
AppendPart(&buf, 2+i, german_3); |
|
4
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
547 |
} |
0 | 548 |
|
549 |
||
550 |
i=GETNUM(3,NUM_GERMAN_1); |
|
551 |
||
552 |
AppendPart(&buf, i, german_1); |
|
553 |
||
554 |
if (i>NUM_GERMAN_1_HARDCODED-1) { |
|
555 |
AppendPart(&buf, GETNUM(5, NUM_GERMAN_2), german_2); |
|
4
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
556 |
} |
0 | 557 |
|
558 |
if (ext==24) { |
|
559 |
i=GETNUM(9,NUM_GERMAN_4); |
|
560 |
||
561 |
if (i<=NUM_GERMAN_4_PRECHANGE-1) { |
|
562 |
AppendPart(&buf, 0, german_3); |
|
563 |
AppendPart(&buf, i, german_4); |
|
4
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
564 |
} else { |
0 | 565 |
AppendPart(&buf, 1, german_3); |
566 |
AppendPart(&buf, i, german_4); |
|
567 |
} |
|
4
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
568 |
} |
0 | 569 |
|
570 |
return 0; |
|
571 |
} |
|
572 |
||
573 |
#define NUM_SPANISH_1 86 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
574 |
static const char spanish_1[] = |
0 | 575 |
MK("Caracas") |
576 |
MK("Maracay") |
|
577 |
MK("Maracaibo") |
|
578 |
MK("Velencia") |
|
579 |
MK("El Dorado") |
|
580 |
MK("Morrocoy") |
|
581 |
MK("Cata") |
|
582 |
MK("Cataito") |
|
583 |
MK("Ciudad Bolivar") |
|
584 |
MK("Barquisimeto") |
|
585 |
MK("Merida") |
|
586 |
MK("Puerto Ordaz") |
|
587 |
MK("Santa Elena") |
|
588 |
MK("San Juan") |
|
589 |
MK("San Luis") |
|
590 |
MK("San Rafael") |
|
591 |
MK("Santiago") |
|
592 |
MK("Barcelona") |
|
593 |
MK("Barinas") |
|
594 |
MK("San Cristobal") |
|
595 |
MK("San Fransisco") |
|
596 |
MK("San Martin") |
|
597 |
MK("Guayana") |
|
598 |
MK("San Carlos") |
|
599 |
MK("El Limon") |
|
600 |
MK("Coro") |
|
601 |
MK("Corocoro") |
|
602 |
MK("Puerto Ayacucho") |
|
603 |
MK("Elorza") |
|
604 |
MK("Arismendi") |
|
605 |
MK("Trujillo") |
|
606 |
MK("Carupano") |
|
607 |
MK("Anaco") |
|
608 |
MK("Lima") |
|
609 |
MK("Cuzco") |
|
610 |
MK("Iquitos") |
|
611 |
MK("Callao") |
|
612 |
MK("Huacho") |
|
613 |
MK("Camana") |
|
614 |
MK("Puerto Chala") |
|
615 |
MK("Santa Cruz") |
|
616 |
MK("Quito") |
|
617 |
MK("Cuenca") |
|
618 |
MK("Huacho") |
|
619 |
MK("Tulcan") |
|
620 |
MK("Esmereldas") |
|
621 |
MK("Ibarra") |
|
622 |
MK("San Lorenzo") |
|
623 |
MK("Macas") |
|
624 |
MK("Morana") |
|
625 |
MK("Machala") |
|
626 |
MK("Zamora") |
|
627 |
MK("Latacunga") |
|
628 |
MK("Tena") |
|
629 |
MK("Cochabamba") |
|
630 |
MK("Ascencion") |
|
631 |
MK("Magdalena") |
|
632 |
MK("Santa Ana") |
|
633 |
MK("Manoa") |
|
634 |
MK("Sucre") |
|
635 |
MK("Oruro") |
|
636 |
MK("Uyuni") |
|
637 |
MK("Potosi") |
|
638 |
MK("Tupiza") |
|
639 |
MK("La Quiaca") |
|
640 |
MK("Yacuiba") |
|
641 |
MK("San Borja") |
|
642 |
MK("Fuerte Olimpio") |
|
643 |
MK("Fortin Esteros") |
|
644 |
MK("Campo Grande") |
|
645 |
MK("Bogota") |
|
646 |
MK("El Banco") |
|
647 |
MK("Zaragosa") |
|
648 |
MK("Neiva") |
|
649 |
MK("Mariano") |
|
650 |
MK("Cali") |
|
651 |
MK("La Palma") |
|
652 |
MK("Andoas") |
|
653 |
MK("Barranca") |
|
654 |
MK("Montevideo") |
|
655 |
MK("Valdivia") |
|
656 |
MK("Arica") |
|
657 |
MK("Temuco") |
|
658 |
MK("Tocopilla") |
|
659 |
MK("Mendoza") |
|
660 |
MK("Santa Rosa"); |
|
661 |
||
662 |
static byte MakeSpanishTownName(byte *buf, uint32 seed) |
|
663 |
{ |
|
664 |
AppendPart(&buf, GETNUM(0, NUM_SPANISH_1), spanish_1); |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
665 |
return 0; |
0 | 666 |
} |
667 |
||
668 |
#define NUM_FRENCH_1 70 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
669 |
static const char french_1[] = |
0 | 670 |
MK("Agincourt") |
671 |
MK("Lille") |
|
672 |
MK("Dinan") |
|
673 |
MK("Aubusson") |
|
674 |
MK("Rodez") |
|
675 |
MK("Bergerac") |
|
676 |
MK("Bordeaux") |
|
677 |
MK("Bayonne") |
|
678 |
MK("Montpellier") |
|
679 |
MK("Montelimar") |
|
680 |
MK("Valence") |
|
681 |
MK("Digne") |
|
682 |
MK("Nice") |
|
683 |
MK("Cannes") |
|
684 |
MK("St. Tropez") |
|
685 |
MK("Marseilles") |
|
686 |
MK("Narbonne") |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
687 |
MK("Sčte") |
0 | 688 |
MK("Aurillac") |
689 |
MK("Gueret") |
|
690 |
MK("Le Creusot") |
|
691 |
MK("Nevers") |
|
692 |
MK("Auxerre") |
|
693 |
MK("Versailles") |
|
694 |
MK("Meaux") |
|
695 |
MK("Châlons") |
|
696 |
MK("Compičgne") |
|
697 |
MK("Metz") |
|
698 |
MK("Chaumont") |
|
699 |
MK("Langres") |
|
700 |
MK("Bourg") |
|
701 |
MK("Lyons") |
|
702 |
MK("Vienne") |
|
703 |
MK("Grenoble") |
|
704 |
MK("Toulon") |
|
705 |
MK("Rennes") |
|
706 |
MK("Le Mans") |
|
707 |
MK("Angers") |
|
708 |
MK("Nantes") |
|
709 |
MK("Châteauroux") |
|
710 |
MK("Orléans") |
|
711 |
MK("Lisieux") |
|
712 |
MK("Cherbourg") |
|
713 |
MK("Morlaix") |
|
714 |
MK("Cognac") |
|
715 |
MK("Agen") |
|
716 |
MK("Tulle") |
|
717 |
MK("Blois") |
|
718 |
MK("Troyes") |
|
719 |
MK("Charolles") |
|
720 |
MK("Grenoble") |
|
721 |
MK("Chambéry") |
|
722 |
MK("Tours") |
|
723 |
MK("St. Brieuc") |
|
724 |
MK("St. Malo") |
|
725 |
MK("La Rochelle") |
|
726 |
MK("St. Flour") |
|
727 |
MK("Le Puy") |
|
728 |
MK("Vichy") |
|
729 |
MK("St. Valery") |
|
730 |
MK("Beaujolais") |
|
731 |
MK("Narbonne") |
|
732 |
MK("Albi") |
|
733 |
MK("St. Valery") |
|
734 |
MK("Biarritz") |
|
735 |
MK("Béziers") |
|
736 |
MK("Nîmes") |
|
737 |
MK("Chamonix") |
|
738 |
MK("Angoulčme") |
|
739 |
MK("Alençon"); |
|
740 |
||
741 |
static byte MakeFrenchTownName(byte *buf, uint32 seed) |
|
742 |
{ |
|
743 |
AppendPart(&buf, GETNUM(0, NUM_FRENCH_1), french_1); |
|
744 |
return 0; |
|
745 |
} |
|
746 |
||
747 |
static byte MakeAmericanTownName(byte *buf, uint32 seed) |
|
748 |
{ |
|
749 |
// make american town names equal to english for now. |
|
750 |
return MakeEnglishTownName(buf, seed); |
|
751 |
} |
|
752 |
||
753 |
#define NUM_SILLY_1 88 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
754 |
static const char silly_1[] = |
0 | 755 |
MK("Binky") |
756 |
MK("Blubber") |
|
757 |
MK("Bumble") |
|
758 |
MK("Crinkle") |
|
759 |
MK("Crusty") |
|
760 |
MK("Dangle") |
|
761 |
MK("Dribble") |
|
762 |
MK("Flippety") |
|
763 |
MK("Google") |
|
764 |
MK("Muffin") |
|
765 |
||
766 |
MK("Nosey") |
|
767 |
MK("Pinker") |
|
768 |
MK("Quack") |
|
769 |
MK("Rumble") |
|
770 |
MK("Sleepy") |
|
771 |
MK("Sliggles") |
|
772 |
MK("Snooze") |
|
773 |
MK("Teddy") |
|
774 |
MK("Tinkle") |
|
775 |
MK("Twister") |
|
776 |
||
777 |
MK("Pinker") |
|
778 |
MK("Hippo") |
|
779 |
MK("Itchy") |
|
780 |
MK("Jelly") |
|
781 |
MK("Jingle") |
|
782 |
MK("Jolly") |
|
783 |
MK("Kipper") |
|
784 |
MK("Lazy") |
|
785 |
MK("Frogs") |
|
786 |
MK("Mouse") |
|
787 |
||
788 |
MK("Quack") |
|
789 |
MK("Cheeky") |
|
790 |
MK("Lumpy") |
|
791 |
MK("Grumpy") |
|
792 |
MK("Mangle") |
|
793 |
MK("Fiddle") |
|
794 |
MK("Slugs") |
|
795 |
MK("Noodles") |
|
796 |
MK("Poodles") |
|
797 |
MK("Shiver") |
|
798 |
||
799 |
MK("Rumble") |
|
800 |
MK("Pixie") |
|
801 |
MK("Puddle") |
|
802 |
MK("Riddle") |
|
803 |
MK("Rattle") |
|
804 |
MK("Rickety") |
|
805 |
MK("Waffle") |
|
806 |
MK("Sagging") |
|
807 |
MK("Sausage") |
|
808 |
MK("Egg") |
|
809 |
||
810 |
MK("Sleepy") |
|
811 |
MK("Scatter") |
|
812 |
MK("Scramble") |
|
813 |
MK("Silly") |
|
814 |
MK("Simple") |
|
4
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
815 |
MK("Trickle") |
0 | 816 |
MK("Slippery") |
817 |
MK("Slimey") |
|
818 |
MK("Slumber") |
|
819 |
MK("Soggy") |
|
820 |
||
821 |
MK("Sliggles") |
|
822 |
MK("Splutter") |
|
823 |
MK("Sulky") |
|
824 |
MK("Swindle") |
|
825 |
MK("Swivel") |
|
826 |
MK("Tasty") |
|
827 |
MK("Tangle") |
|
828 |
MK("Toggle") |
|
829 |
MK("Trotting") |
|
830 |
MK("Tumble") |
|
831 |
||
832 |
MK("Snooze") |
|
833 |
MK("Water") |
|
834 |
MK("Windy") |
|
835 |
MK("Amble") |
|
836 |
MK("Bubble") |
|
837 |
MK("Cheery") |
|
838 |
MK("Cheese") |
|
839 |
MK("Cockle") |
|
840 |
MK("Cracker") |
|
841 |
MK("Crumple") |
|
842 |
||
843 |
MK("Teddy") |
|
844 |
MK("Evil") |
|
845 |
MK("Fairy") |
|
846 |
MK("Falling") |
|
847 |
MK("Fishy") |
|
848 |
MK("Fizzle") |
|
849 |
MK("Frosty") |
|
850 |
MK("Griddle") |
|
851 |
; |
|
852 |
||
853 |
#define NUM_SILLY_2 15 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
854 |
static const char silly_2[] = |
0 | 855 |
MK("ton") |
856 |
MK("bury") |
|
857 |
MK("bottom") |
|
858 |
MK("ville") |
|
859 |
MK("well") |
|
860 |
MK("weed") |
|
861 |
MK("worth") |
|
862 |
MK("wig") |
|
863 |
MK("wick") |
|
864 |
MK("wood") |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
865 |
|
0 | 866 |
MK("pool") |
867 |
MK("head") |
|
868 |
MK("burg") |
|
869 |
MK("gate") |
|
870 |
MK("bridge") |
|
871 |
; |
|
872 |
||
873 |
||
874 |
static byte MakeSillyTownName(byte *buf, uint32 seed) |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
875 |
{ |
0 | 876 |
AppendPart(&buf, GETNUM(0, NUM_SILLY_1), silly_1); |
877 |
AppendPart(&buf, GETNUM(16, NUM_SILLY_2),silly_2); |
|
878 |
return 0; |
|
879 |
} |
|
880 |
||
881 |
||
882 |
#define NUM_SWEDISH_1 4 |
|
883 |
static const char swedish_1[] = |
|
884 |
MK("Gamla ") |
|
885 |
MK("Lilla ") |
|
886 |
MK("Nya ") |
|
887 |
MK("Stora "); |
|
888 |
||
889 |
#define NUM_SWEDISH_2 38 |
|
890 |
static const char swedish_2[] = |
|
891 |
MK("Boll") |
|
892 |
MK("Bor") |
|
893 |
MK("Ed") |
|
894 |
MK("En") |
|
895 |
MK("Erik") |
|
896 |
MK("Es") |
|
897 |
MK("Fin") |
|
898 |
MK("Fisk") |
|
899 |
MK("Grön") |
|
900 |
MK("Hag") |
|
901 |
MK("Halm") |
|
902 |
MK("Karl") |
|
903 |
MK("Kram") |
|
904 |
MK("Kung") |
|
905 |
MK("Land") |
|
906 |
MK("Lid") |
|
907 |
MK("Lin") |
|
908 |
MK("Mal") |
|
909 |
MK("Malm") |
|
910 |
MK("Marie") |
|
911 |
MK("Ner") |
|
912 |
MK("Norr") |
|
913 |
MK("Oskar") |
|
914 |
MK("Sand") |
|
915 |
MK("Skog") |
|
916 |
MK("Stock") |
|
917 |
MK("Stor") |
|
918 |
MK("Ström") |
|
919 |
MK("Sund") |
|
920 |
MK("Söder") |
|
921 |
MK("Tall") |
|
922 |
MK("Tratt") |
|
923 |
MK("Troll") |
|
924 |
MK("Upp") |
|
925 |
MK("Var") |
|
926 |
MK("Väster") |
|
927 |
MK("Ängel") |
|
928 |
MK("Öster"); |
|
929 |
||
930 |
#define NUM_SWEDISH_2A 42 |
|
931 |
static const char swedish_2a[] = |
|
932 |
MK("B") |
|
933 |
MK("Br") |
|
934 |
MK("D") |
|
935 |
MK("Dr") |
|
936 |
MK("Dv") |
|
937 |
MK("F") |
|
938 |
MK("Fj") |
|
939 |
MK("Fl") |
|
940 |
MK("Fr") |
|
941 |
MK("G") |
|
942 |
MK("Gl") |
|
943 |
MK("Gn") |
|
944 |
MK("Gr") |
|
945 |
MK("H") |
|
946 |
MK("J") |
|
947 |
MK("K") |
|
948 |
MK("Kl") |
|
949 |
MK("Kn") |
|
950 |
MK("Kr") |
|
951 |
MK("Kv") |
|
952 |
MK("L") |
|
953 |
MK("M") |
|
954 |
MK("N") |
|
955 |
MK("P") |
|
956 |
MK("Pl") |
|
957 |
MK("Pr") |
|
958 |
MK("R") |
|
959 |
MK("S") |
|
960 |
MK("Sk") |
|
961 |
MK("Skr") |
|
962 |
MK("Sl") |
|
963 |
MK("Sn") |
|
964 |
MK("Sp") |
|
965 |
MK("Spr") |
|
966 |
MK("St") |
|
967 |
MK("Str") |
|
968 |
MK("Sv") |
|
969 |
MK("T") |
|
970 |
MK("Tr") |
|
971 |
MK("Tv") |
|
972 |
MK("V") |
|
973 |
MK("Vr"); |
|
974 |
||
975 |
#define NUM_SWEDISH_2B 9 |
|
976 |
static const char swedish_2b[] = |
|
977 |
MK("a") |
|
978 |
MK("e") |
|
979 |
MK("i") |
|
980 |
MK("o") |
|
981 |
MK("u") |
|
982 |
MK("y") |
|
983 |
MK("ĺ") |
|
984 |
MK("ä") |
|
985 |
MK("ö"); |
|
986 |
||
987 |
#define NUM_SWEDISH_2C 26 |
|
988 |
static const char swedish_2c[] = |
|
989 |
MK("ck") |
|
990 |
MK("d") |
|
991 |
MK("dd") |
|
992 |
MK("g") |
|
993 |
MK("gg") |
|
994 |
MK("l") |
|
995 |
MK("ld") |
|
996 |
MK("m") |
|
997 |
MK("n") |
|
998 |
MK("nd") |
|
999 |
MK("ng") |
|
1000 |
MK("nn") |
|
1001 |
MK("p") |
|
1002 |
MK("pp") |
|
1003 |
MK("r") |
|
1004 |
MK("rd") |
|
1005 |
MK("rk") |
|
1006 |
MK("rp") |
|
1007 |
MK("rr") |
|
1008 |
MK("rt") |
|
1009 |
MK("s") |
|
1010 |
MK("sk") |
|
1011 |
MK("st") |
|
1012 |
MK("t") |
|
1013 |
MK("tt") |
|
1014 |
MK("v"); |
|
1015 |
||
1016 |
#define NUM_SWEDISH_3 32 |
|
1017 |
static const char swedish_3[] = |
|
1018 |
MK("arp") |
|
1019 |
MK("berg") |
|
1020 |
MK("boda") |
|
1021 |
MK("borg") |
|
1022 |
MK("bro") |
|
1023 |
MK("bukten") |
|
1024 |
MK("by") |
|
1025 |
MK("byn") |
|
1026 |
MK("fors") |
|
1027 |
MK("hammar") |
|
1028 |
MK("hamn") |
|
1029 |
MK("holm") |
|
1030 |
MK("hus") |
|
1031 |
MK("hättan") |
|
1032 |
MK("kulle") |
|
1033 |
MK("köping") |
|
1034 |
MK("lund") |
|
1035 |
MK("löv") |
|
1036 |
MK("sala") |
|
1037 |
MK("skrona") |
|
1038 |
MK("slätt") |
|
1039 |
MK("spĺng") |
|
1040 |
MK("stad") |
|
1041 |
MK("sund") |
|
1042 |
MK("svall") |
|
1043 |
MK("svik") |
|
1044 |
MK("sĺker") |
|
1045 |
MK("udde") |
|
1046 |
MK("valla") |
|
1047 |
MK("viken") |
|
1048 |
MK("älv") |
|
1049 |
MK("ĺs"); |
|
1050 |
||
1051 |
static byte MakeSwedishTownName(byte *buf, uint32 seed) |
|
1052 |
{ |
|
1053 |
int i; |
|
1054 |
||
1055 |
i = GETNUM(0, 50 + NUM_SWEDISH_1) - 50; |
|
1056 |
if (i >= 0) AppendPart(&buf, i, swedish_1); |
|
1057 |
||
1058 |
if (GETNUM(4, 5) >= 3) |
|
1059 |
AppendPart(&buf, GETNUM(7, NUM_SWEDISH_2), swedish_2); |
|
1060 |
else { |
|
1061 |
AppendPart(&buf, GETNUM(7, NUM_SWEDISH_2A), swedish_2a); |
|
1062 |
AppendPart(&buf, GETNUM(10, NUM_SWEDISH_2B), swedish_2b); |
|
1063 |
AppendPart(&buf, GETNUM(13, NUM_SWEDISH_2C), swedish_2c); |
|
1064 |
} |
|
1065 |
||
1066 |
AppendPart(&buf, GETNUM(16, NUM_SWEDISH_3), swedish_3); |
|
1067 |
||
1068 |
return 0; |
|
1069 |
} |
|
1070 |
||
1071 |
||
1072 |
#define NUM_DUTCH_1 8 |
|
1073 |
static const char dutch_1[] = |
|
1074 |
MK("Nieuw ") |
|
1075 |
MK("Oud ") |
|
1076 |
MK("Groot ") |
|
1077 |
MK("Zuid ") |
|
1078 |
MK("Noord ") |
|
1079 |
MK("Oost ") |
|
1080 |
MK("West ") |
|
1081 |
MK("Klein "); |
|
1082 |
||
1083 |
#define NUM_DUTCH_2 57 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1084 |
static const char dutch_2[] = |
0 | 1085 |
MK("Hoog") |
1086 |
MK("Laag") |
|
1087 |
MK("Klein") |
|
1088 |
MK("Groot") |
|
1089 |
MK("Noorder") |
|
1090 |
MK("Noord") |
|
1091 |
MK("Zuider") |
|
1092 |
MK("Zuid") |
|
1093 |
MK("Ooster") |
|
1094 |
MK("Oost") |
|
1095 |
MK("Wester") |
|
1096 |
MK("West") |
|
1097 |
MK("Hoofd") |
|
1098 |
MK("Midden") |
|
1099 |
MK("Eind") |
|
1100 |
MK("Amster") |
|
1101 |
MK("Amstel") |
|
1102 |
MK("Dord") |
|
1103 |
MK("Rotter") |
|
1104 |
MK("Haar") |
|
1105 |
MK("Til") |
|
1106 |
MK("Enk") |
|
1107 |
MK("Dok") |
|
1108 |
MK("Veen") |
|
1109 |
MK("Leidsch") |
|
1110 |
MK("Lely") |
|
1111 |
MK("En") |
|
1112 |
MK("Kaats") |
|
1113 |
MK("U") |
|
1114 |
MK("Maas") |
|
1115 |
MK("Mar") |
|
1116 |
MK("Bla") |
|
1117 |
MK("Al") |
|
1118 |
MK("Alk") |
|
1119 |
MK("Eer") |
|
1120 |
MK("Drie") |
|
1121 |
MK("Ter") |
|
1122 |
MK("Groes") |
|
1123 |
MK("Goes") |
|
1124 |
MK("Soest") |
|
1125 |
MK("Coe") |
|
1126 |
MK("Uit") |
|
1127 |
MK("Zwaag") |
|
1128 |
MK("Hellen") |
|
1129 |
MK("Slie") |
|
1130 |
MK("IJ") |
|
1131 |
MK("Grubben") |
|
1132 |
MK("Groen") |
|
1133 |
MK("Lek") |
|
1134 |
MK("Ridder") |
|
1135 |
MK("Schie") |
|
1136 |
MK("Olde") |
|
1137 |
MK("Roose") |
|
1138 |
MK("Haar") |
|
1139 |
MK("Til") |
|
1140 |
MK("Loos") |
|
1141 |
MK("Hil"); |
|
1142 |
||
1143 |
#define NUM_DUTCH_3 20 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1144 |
static const char dutch_3[] = |
0 | 1145 |
MK("Drog") |
1146 |
MK("Nat") |
|
1147 |
MK("Valk") |
|
1148 |
MK("Bob") |
|
1149 |
MK("Dedem") |
|
1150 |
MK("Kollum") |
|
1151 |
MK("Best") |
|
1152 |
MK("Hoend") |
|
1153 |
MK("Leeuw") |
|
1154 |
MK("Graaf") |
|
1155 |
MK("Uithuis") |
|
1156 |
MK("Purm") |
|
1157 |
MK("Hard") |
|
1158 |
MK("Hell") |
|
1159 |
MK("Werk") |
|
1160 |
MK("Spijk") |
|
1161 |
MK("Vink") |
|
1162 |
MK("Wams") |
|
1163 |
MK("Heerhug") |
|
1164 |
MK("Koning"); |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1165 |
|
0 | 1166 |
|
1167 |
#define NUM_DUTCH_4 6 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1168 |
static const char dutch_4[] = |
0 | 1169 |
MK("e") |
1170 |
MK("er") |
|
1171 |
MK("el") |
|
1172 |
MK("en") |
|
1173 |
MK("o") |
|
1174 |
MK("s"); |
|
1175 |
||
1176 |
#define NUM_DUTCH_5 56 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1177 |
static const char dutch_5[] = |
0 | 1178 |
MK("stad") |
1179 |
MK("vorst") |
|
1180 |
MK("dorp") |
|
1181 |
MK("dam") |
|
1182 |
MK("beek") |
|
1183 |
MK("doorn") |
|
1184 |
MK("zijl") |
|
1185 |
MK("zijlen") |
|
1186 |
MK("lo") |
|
1187 |
MK("muiden") |
|
1188 |
MK("meden") |
|
1189 |
MK("vliet") |
|
1190 |
MK("nisse") |
|
1191 |
MK("daal") |
|
1192 |
MK("vorden") |
|
1193 |
MK("vaart") |
|
1194 |
MK("mond") |
|
1195 |
MK("zaal") |
|
1196 |
MK("water") |
|
1197 |
MK("duinen") |
|
1198 |
MK("heuvel") |
|
1199 |
MK("geest") |
|
1200 |
MK("kerk") |
|
1201 |
MK("meer") |
|
1202 |
MK("maar") |
|
1203 |
MK("hoorn") |
|
1204 |
MK("rade") |
|
1205 |
MK("wijk") |
|
1206 |
MK("berg") |
|
1207 |
MK("heim") |
|
1208 |
MK("sum") |
|
1209 |
MK("richt") |
|
1210 |
MK("burg") |
|
1211 |
MK("recht") |
|
1212 |
MK("drecht") |
|
1213 |
MK("trecht") |
|
1214 |
MK("tricht") |
|
1215 |
MK("dricht") |
|
1216 |
MK("lum") |
|
1217 |
MK("rum") |
|
1218 |
MK("halen") |
|
1219 |
MK("oever") |
|
1220 |
MK("wolde") |
|
1221 |
MK("veen") |
|
1222 |
MK("hoven") |
|
1223 |
MK("gast") |
|
1224 |
MK("kum") |
|
1225 |
MK("hage") |
|
1226 |
MK("dijk") |
|
1227 |
MK("zwaag") |
|
1228 |
MK("pomp") |
|
1229 |
MK("huizen") |
|
1230 |
MK("bergen") |
|
1231 |
MK("schede") |
|
1232 |
MK("mere") |
|
1233 |
MK("end"); |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1234 |
|
0 | 1235 |
static byte MakeDutchTownName(byte *buf, uint32 seed) |
1236 |
{ |
|
1237 |
int i; |
|
1238 |
||
1239 |
i = GETNUM(0, 50 + NUM_DUTCH_1) - 50; |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1240 |
if (i >= 0) |
0 | 1241 |
AppendPart(&buf, i, dutch_1); |
1242 |
||
1243 |
i = GETNUM(6, 9); |
|
1244 |
if(i > 4){ |
|
1245 |
AppendPart(&buf, GETNUM(9, NUM_DUTCH_2), dutch_2); |
|
1246 |
} else { |
|
1247 |
AppendPart(&buf, GETNUM(9, NUM_DUTCH_3), dutch_3); |
|
1248 |
AppendPart(&buf, GETNUM(12, NUM_DUTCH_4), dutch_4); |
|
1249 |
} |
|
1250 |
AppendPart(&buf, GETNUM(15, NUM_DUTCH_5), dutch_5); |
|
1251 |
||
1252 |
return 0; |
|
1253 |
} |
|
1254 |
||
1255 |
#define NUM_FINNISH_1 25 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1256 |
static const char finnish_1[] = |
0 | 1257 |
MK("Aijala") |
1258 |
MK("Kisko") |
|
1259 |
MK("Espoo") |
|
1260 |
MK("Helsinki") |
|
1261 |
MK("Tapiola") |
|
1262 |
MK("Järvelä") |
|
1263 |
MK("Lahti") |
|
1264 |
MK("Kotka") |
|
1265 |
MK("Hamina") |
|
1266 |
MK("Loviisa") |
|
1267 |
MK("Kouvola") |
|
1268 |
MK("Tampere") |
|
1269 |
MK("Kokkola") |
|
1270 |
MK("Oulu") |
|
1271 |
MK("Salo") |
|
1272 |
MK("Malmi") |
|
1273 |
MK("Pelto") |
|
1274 |
MK("Koski") |
|
1275 |
MK("Iisalmi") |
|
1276 |
MK("Raisio") |
|
1277 |
MK("Taavetti") |
|
1278 |
MK("Joensuu") |
|
1279 |
MK("Imatra") |
|
1280 |
MK("Tapanila") |
|
1281 |
MK("Pasila"); |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1282 |
|
0 | 1283 |
#define NUM_FINNISH_2a 26 |
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1284 |
static const char finnish_2a[] = |
0 | 1285 |
MK("Hiekka") |
1286 |
MK("Haapa") |
|
1287 |
MK("Mylly") |
|
1288 |
MK("Kivi") |
|
1289 |
MK("Lappeen") |
|
1290 |
MK("Lohjan") |
|
1291 |
MK("Savon") |
|
1292 |
MK("Sauna") |
|
1293 |
MK("Keri") |
|
1294 |
MK("Uusi") |
|
1295 |
MK("Vanha") |
|
1296 |
MK("Lapin") |
|
1297 |
MK("Kesä") |
|
1298 |
MK("Kuusi") |
|
1299 |
MK("Pelto") |
|
1300 |
MK("Tuomi") |
|
1301 |
MK("Pitäjän") |
|
1302 |
MK("Terva") |
|
1303 |
MK("Olki") |
|
1304 |
MK("Heinä") |
|
1305 |
MK("Kuusan") |
|
1306 |
MK("Seinä") |
|
1307 |
MK("Kemi") |
|
1308 |
MK("Rova") |
|
1309 |
MK("Martin") |
|
1310 |
MK("Koivu"); |
|
1311 |
||
1312 |
#define NUM_FINNISH_2b 18 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1313 |
static const char finnish_2b[] = |
0 | 1314 |
MK("harju") |
1315 |
MK("linna") |
|
1316 |
MK("järvi") |
|
1317 |
MK("kallio") |
|
1318 |
MK("mäki") |
|
1319 |
MK("nummi") |
|
1320 |
MK("joki") |
|
1321 |
MK("kylä") |
|
1322 |
MK("lampi") |
|
1323 |
MK("lahti") |
|
1324 |
MK("metsä") |
|
1325 |
MK("suo") |
|
1326 |
MK("laakso") |
|
1327 |
MK("niitty") |
|
1328 |
MK("luoto") |
|
1329 |
MK("hovi") |
|
1330 |
MK("ranta") |
|
1331 |
MK("koski"); |
|
1332 |
||
1333 |
static byte MakeFinnishTownName(byte *buf, uint32 seed) |
|
1334 |
{ |
|
1335 |
// Select randomly if town name should consists of one or two parts. |
|
1336 |
if (GETNUM(0, 15) >= 10) |
|
1337 |
AppendPart(&buf, GETNUM(2, NUM_FINNISH_1), finnish_1); // One part |
|
1338 |
else { |
|
1339 |
AppendPart(&buf, GETNUM(2, NUM_FINNISH_2a), finnish_2a); // Two parts |
|
1340 |
AppendPart(&buf, GETNUM(10, NUM_FINNISH_2b), finnish_2b); |
|
1341 |
} |
|
1342 |
return 0; |
|
1343 |
} |
|
1344 |
||
1345 |
#define NUM_POLISH_1 11 |
|
1346 |
||
1347 |
static const char polish_1_m[] = |
|
1348 |
MK("Wielki ") |
|
1349 |
MK("Maly ") |
|
1350 |
MK("Zly ") |
|
1351 |
MK("Dobry ") |
|
1352 |
MK("Nowy ") |
|
1353 |
MK("Stary ") |
|
1354 |
MK("Zloty ") |
|
1355 |
MK("Zielony ") |
|
1356 |
MK("Bialy ") |
|
1357 |
MK("Modry ") |
|
1358 |
MK("Debowy ") |
|
1359 |
; |
|
1360 |
||
1361 |
static const char polish_1_f[] = |
|
1362 |
MK("Wielka ") |
|
1363 |
MK("Mala ") |
|
1364 |
MK("Zla ") |
|
1365 |
MK("Dobra ") |
|
1366 |
MK("Nowa ") |
|
1367 |
MK("Stara ") |
|
1368 |
MK("Zlota ") |
|
1369 |
MK("Zielona ") |
|
1370 |
MK("Biala ") |
|
1371 |
MK("Modra ") |
|
1372 |
MK("Debowa ") |
|
1373 |
; |
|
1374 |
||
1375 |
static const char polish_1_n[] = |
|
1376 |
MK("Wielkie ") |
|
1377 |
MK("Male ") |
|
1378 |
MK("Zle ") |
|
1379 |
MK("Dobre ") |
|
1380 |
MK("Nowe ") |
|
1381 |
MK("Stare ") |
|
1382 |
MK("Zlote ") |
|
1383 |
MK("Zielone ") |
|
1384 |
MK("Biale ") |
|
1385 |
MK("Modre ") |
|
1386 |
MK("Debowe ") |
|
1387 |
; |
|
1388 |
||
1389 |
#define NUM_POLISH_2_O 34// single names |
|
1390 |
#define NUM_POLISH_2_M 48// masculine + pref/suf |
|
1391 |
#define NUM_POLISH_2_F 27// feminine + pref/suf |
|
1392 |
#define NUM_POLISH_2_N 29// 'it' + pref/suf |
|
1393 |
||
1394 |
static const char polish_2[] = |
|
1395 |
//static const char polish_2_o[] = |
|
1396 |
MK("Frombork") |
|
1397 |
MK("Gniezno") |
|
1398 |
MK("Olsztyn") |
|
1399 |
MK("Torun") |
|
1400 |
MK("Bydgoszcz") |
|
1401 |
MK("Terespol") |
|
1402 |
MK("Krakow") |
|
1403 |
MK("Poznan") |
|
1404 |
MK("Wroclaw") |
|
1405 |
MK("Katowice") |
|
1406 |
MK("Cieszyn") |
|
1407 |
MK("Bytom") |
|
1408 |
MK("Frombork") |
|
1409 |
MK("Hel") |
|
1410 |
MK("Konin") |
|
1411 |
MK("Lublin") |
|
1412 |
MK("Malbork") |
|
1413 |
MK("Sopot") |
|
1414 |
MK("Sosnowiec") |
|
1415 |
MK("Gdansk") |
|
1416 |
MK("Gdynia") |
|
1417 |
MK("Sieradz") |
|
1418 |
MK("Sandomierz") |
|
1419 |
MK("Szczyrk") |
|
1420 |
MK("Szczytno") |
|
1421 |
MK("Szczecin") |
|
1422 |
MK("Zakopane") |
|
1423 |
MK("Szklarska Poreba") |
|
1424 |
MK("Bochnia") |
|
1425 |
MK("Golub-Dobrzyn") |
|
1426 |
MK("Chojnice") |
|
1427 |
MK("Ostrowiec") |
|
1428 |
MK("Otwock") |
|
1429 |
MK("Wolsztyn") |
|
1430 |
//; |
|
1431 |
||
1432 |
//static const char polish_2_m[] = |
|
1433 |
MK("Jarocin") |
|
1434 |
MK("Gogolin") |
|
1435 |
MK("Tomaszow") |
|
1436 |
MK("Piotrkow") |
|
1437 |
MK("Lidzbark") |
|
1438 |
MK("Rypin") |
|
1439 |
MK("Radzymin") |
|
1440 |
MK("Wolomin") |
|
1441 |
MK("Pruszkow") |
|
1442 |
MK("Olsztynek") |
|
1443 |
MK("Rypin") |
|
1444 |
MK("Cisek") |
|
1445 |
MK("Krotoszyn") |
|
1446 |
MK("Stoczek") |
|
1447 |
MK("Lubin") |
|
1448 |
MK("Lubicz") |
|
1449 |
MK("Milicz") |
|
1450 |
MK("Targ") |
|
1451 |
MK("Ostrow") |
|
1452 |
MK("Ozimek") |
|
1453 |
MK("Puck") |
|
1454 |
MK("Rzepin") |
|
1455 |
MK("Siewierz") |
|
1456 |
MK("Stargard") |
|
1457 |
MK("Starogard") |
|
1458 |
MK("Turek") |
|
1459 |
MK("Tymbark") |
|
1460 |
MK("Wolsztyn") |
|
1461 |
MK("Strzepcz") |
|
1462 |
MK("Strzebielin") |
|
1463 |
MK("Sochaczew") |
|
1464 |
MK("Grebocin") |
|
1465 |
MK("Gniew") |
|
1466 |
MK("Lubliniec") |
|
1467 |
MK("Lubasz") |
|
1468 |
MK("Lutomiersk") |
|
1469 |
MK("Niemodlin") |
|
1470 |
MK("Przeworsk") |
|
1471 |
MK("Ursus") |
|
1472 |
MK("Tyczyn") |
|
1473 |
MK("Sztum") |
|
1474 |
MK("Szczebrzeszyn") |
|
1475 |
MK("Wolin") |
|
1476 |
MK("Wrzeszcz") |
|
1477 |
MK("Zgierz") |
|
1478 |
MK("Zieleniec") |
|
1479 |
MK("Drobin") |
|
1480 |
MK("Garwolin") |
|
1481 |
//; |
|
1482 |
||
1483 |
//static const char polish_2_f[] = |
|
1484 |
MK("Szprotawa") |
|
1485 |
MK("Pogorzelica") |
|
1486 |
MK("Motlawa") |
|
1487 |
MK("Lubawa") |
|
1488 |
MK("Nidzica") |
|
1489 |
MK("Kruszwica") |
|
1490 |
MK("Bierawa") |
|
1491 |
MK("Brodnica") |
|
1492 |
MK("Chojna") |
|
1493 |
MK("Krzepica") |
|
1494 |
MK("Ruda") |
|
1495 |
MK("Rumia") |
|
1496 |
MK("Tuchola") |
|
1497 |
MK("Trzebinia") |
|
1498 |
MK("Ustka") |
|
1499 |
MK("Warszawa") |
|
1500 |
MK("Bobowa") |
|
1501 |
MK("Dukla") |
|
1502 |
MK("Krynica") |
|
1503 |
MK("Murowana") |
|
1504 |
MK("Niemcza") |
|
1505 |
MK("Zaspa") |
|
1506 |
MK("Zawoja") |
|
1507 |
MK("Wola") |
|
1508 |
MK("Limanowa") |
|
1509 |
MK("Rabka") |
|
1510 |
MK("Skawina") |
|
1511 |
MK("Pilawa") |
|
1512 |
//; |
|
1513 |
||
1514 |
//static const char polish_2_n[] = |
|
1515 |
MK("Lipsko") |
|
1516 |
MK("Pilzno") |
|
1517 |
MK("Przodkowo") |
|
1518 |
MK("Strzelno") |
|
1519 |
MK("Susz") |
|
1520 |
MK("Jaworzno") |
|
1521 |
MK("Choszczno") |
|
1522 |
MK("Mogilno") |
|
1523 |
MK("Luzino") |
|
1524 |
MK("Miasto") |
|
1525 |
MK("Dziadowo") |
|
1526 |
MK("Kowalewo") |
|
1527 |
MK("Legionowo") |
|
1528 |
MK("Miastko") |
|
1529 |
MK("Zabrze") |
|
1530 |
MK("Zawiercie") |
|
1531 |
MK("Kochanowo") |
|
1532 |
MK("Miechucino") |
|
1533 |
MK("Mirachowo") |
|
1534 |
MK("Robakowo") |
|
1535 |
MK("Kosakowo") |
|
1536 |
MK("Borne") |
|
1537 |
MK("Braniewo") |
|
1538 |
MK("Sulinowo") |
|
1539 |
MK("Chmielno") |
|
1540 |
MK("Jastrzebie") |
|
1541 |
MK("Gryfino") |
|
1542 |
MK("Koronowo") |
|
1543 |
MK("Lubichowo") |
|
1544 |
MK("Opoczno") |
|
1545 |
; |
|
1546 |
||
1547 |
#define NUM_POLISH_3 29 |
|
1548 |
static const char polish_3_m[] = |
|
1549 |
MK(" Wybudowanie") |
|
1550 |
MK(" Swietokrzyski") |
|
1551 |
MK(" Gorski") |
|
1552 |
MK(" Morski") |
|
1553 |
MK(" Zdroj") |
|
1554 |
MK(" Wody") |
|
1555 |
MK(" Bajoro") |
|
1556 |
MK(" Krajenski") |
|
1557 |
MK(" Slaski") |
|
1558 |
MK(" Mazowiecki") |
|
1559 |
MK(" Pomorski") |
|
1560 |
MK(" Wielki") |
|
1561 |
MK(" Maly") |
|
1562 |
MK(" Warminski") |
|
1563 |
MK(" Mazurski") |
|
1564 |
MK(" Mniejszy") |
|
1565 |
MK(" Wiekszy") |
|
1566 |
MK(" Gorny") |
|
1567 |
MK(" Dolny") |
|
1568 |
MK(" Wielki") |
|
1569 |
MK(" Stary") |
|
1570 |
MK(" Nowy") |
|
1571 |
MK(" Wielkopolski") |
|
1572 |
MK(" Wzgorze") |
|
1573 |
MK(" Mosty") |
|
1574 |
MK(" Kujawski") |
|
1575 |
MK(" Malopolski") |
|
1576 |
MK(" Podlaski") |
|
1577 |
MK(" Lesny") |
|
1578 |
; |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1579 |
static const char polish_3_f[] = |
0 | 1580 |
MK(" Wybudowanie") |
1581 |
MK(" Swietokrzyska") |
|
1582 |
MK(" Gorska") |
|
1583 |
MK(" Morska") |
|
1584 |
MK(" Zdroj") |
|
1585 |
MK(" Woda") |
|
1586 |
MK(" Bajoro") |
|
1587 |
MK(" Krajenska") |
|
1588 |
MK(" Slaska") |
|
1589 |
MK(" Mazowiecka") |
|
1590 |
MK(" Pomorska") |
|
1591 |
MK(" Wielka") |
|
1592 |
MK(" Mala") |
|
1593 |
MK(" Warminska") |
|
1594 |
MK(" Mazurska") |
|
1595 |
MK(" Mniejsza") |
|
1596 |
MK(" Wieksza") |
|
1597 |
MK(" Gorna") |
|
1598 |
MK(" Dolna") |
|
1599 |
MK(" Wielka") |
|
1600 |
MK(" Stara") |
|
1601 |
MK(" Nowa") |
|
1602 |
MK(" Wielkopolska") |
|
1603 |
MK(" Wzgorza") |
|
1604 |
MK(" Mosty") |
|
1605 |
MK(" Kujawska") |
|
1606 |
MK(" Malopolska") |
|
1607 |
MK(" Podlaska") |
|
1608 |
MK(" Lesna") |
|
1609 |
; |
|
1610 |
static const char polish_3_n[] = |
|
1611 |
MK(" Wybudowanie") |
|
1612 |
MK(" Swietokrzyskie") |
|
1613 |
MK(" Gorskie") |
|
1614 |
MK(" Morskie") |
|
1615 |
MK(" Zdroj") |
|
1616 |
MK(" Wody") |
|
1617 |
MK(" Bajoro") |
|
1618 |
MK(" Krajenskie") |
|
1619 |
MK(" Slaskie") |
|
1620 |
MK(" Mazowieckie") |
|
1621 |
MK(" Pomorskie") |
|
1622 |
MK(" Wielkie") |
|
1623 |
MK(" Male") |
|
1624 |
MK(" Warminskie ") |
|
1625 |
MK(" Mazurskie ") |
|
1626 |
MK(" Mniejsze") |
|
1627 |
MK(" Wieksze") |
|
1628 |
MK(" Gorne") |
|
1629 |
MK(" Dolne") |
|
1630 |
MK(" Wielkie") |
|
1631 |
MK(" Stare") |
|
1632 |
MK(" Nowe") |
|
1633 |
MK(" Wielkopolskie") |
|
1634 |
MK(" Wzgorze") |
|
1635 |
MK(" Mosty") |
|
1636 |
MK(" Kujawskie") |
|
1637 |
MK(" Malopolskie") |
|
1638 |
MK(" Podlaskie") |
|
1639 |
MK(" Lesne") |
|
1640 |
; |
|
1641 |
||
1642 |
#define NUM_POLISH_2 NUM_POLISH_2_O + NUM_POLISH_2_M + NUM_POLISH_2_F + NUM_POLISH_2_N |
|
1643 |
||
1644 |
static const char * const _polish_types[3][2] = { |
|
1645 |
{polish_1_m, polish_3_m}, // masculine |
|
1646 |
{polish_1_f, polish_3_f}, // feminine |
|
1647 |
{polish_1_n, polish_3_n}, // neutral |
|
1648 |
}; |
|
1649 |
||
1650 |
static byte MakePolishTownName(byte *buf, uint32 seed) |
|
1651 |
{ |
|
1652 |
uint i, x; |
|
1653 |
const char *const (*t)[2]; |
|
1654 |
||
1655 |
// get a number ranging from 0 to all_towns |
|
1656 |
i = GETNUM(0, NUM_POLISH_2); |
|
1657 |
||
1658 |
// single name |
|
1659 |
if(i < NUM_POLISH_2_O) { |
|
1660 |
AppendPart(&buf, i, polish_2); |
|
1661 |
return 0; |
|
1662 |
} |
|
1663 |
||
1664 |
// a suffix (12/20), a prefix (4/20), or nothing (4/20) |
|
1665 |
x = GETNUM(5, 20); |
|
1666 |
||
1667 |
// no suffix of prefix |
|
1668 |
if(x < 4) { |
|
1669 |
AppendPart(&buf, i-NUM_POLISH_2_O, polish_2); |
|
1670 |
return 0; |
|
1671 |
} |
|
1672 |
||
1673 |
t = _polish_types; |
|
1674 |
if(IS_INT_INSIDE(i, NUM_POLISH_2_O, NUM_POLISH_2_O + NUM_POLISH_2_M)) { |
|
1675 |
// nothing |
|
1676 |
} else if (IS_INT_INSIDE(i, NUM_POLISH_2_O + NUM_POLISH_2_M, NUM_POLISH_2_O + NUM_POLISH_2_M + NUM_POLISH_2_F)) { |
|
1677 |
t += 1; |
|
1678 |
} else { |
|
1679 |
t += 2; |
|
1680 |
} |
|
1681 |
||
1682 |
// suffix or prefix |
|
1683 |
if(x < 8) { |
|
1684 |
AppendPart(&buf, GETNUM(10, NUM_POLISH_1), (*t)[0]); |
|
1685 |
AppendPart(&buf, i, polish_2); |
|
1686 |
} else { |
|
1687 |
AppendPart(&buf, i, polish_2); |
|
1688 |
AppendPart(&buf, GETNUM(10, NUM_POLISH_3), (*t)[1]); |
|
1689 |
} |
|
1690 |
||
1691 |
return 0; |
|
1692 |
} |
|
1693 |
||
124
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1694 |
#define NUM_CZECH_1 82 |
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1695 |
static const char czech_1[] = |
124
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1696 |
MK("As") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1697 |
MK("Benesov") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1698 |
MK("Beroun") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1699 |
MK("Bezdruzice") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1700 |
MK("Blansko") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1701 |
MK("Breclav") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1702 |
MK("Brno") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1703 |
MK("Bruntál") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1704 |
MK("Ceská Lípa") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1705 |
MK("Ceské Budejovice") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1706 |
MK("Ceský Krumlov") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1707 |
MK("Decín") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1708 |
MK("Domazlice") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1709 |
MK("Dubí") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1710 |
MK("Frýdek-Místek") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1711 |
MK("Havlíckuv Brod") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1712 |
MK("Hodonín") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1713 |
MK("Hradec Králové") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1714 |
MK("Humpolec") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1715 |
MK("Cheb") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1716 |
MK("Chomutov") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1717 |
MK("Chrudim") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1718 |
MK("Jablonec nad Nisou") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1719 |
MK("Jeseník") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1720 |
MK("Jicín") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1721 |
MK("Jihlava") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1722 |
MK("Jindrichuv Hradec") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1723 |
MK("Karlovy Vary") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1724 |
MK("Karviná") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1725 |
MK("Kladno") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1726 |
MK("Klatovy") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1727 |
MK("Kolín") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1728 |
MK("Kosmonosy") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1729 |
MK("Kromeríz") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1730 |
MK("Kutná Hora") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1731 |
MK("Liberec") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1732 |
MK("Litomerice") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1733 |
MK("Louny") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1734 |
MK("Manetín") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1735 |
MK("Melník") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1736 |
MK("Mladá Boleslav") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1737 |
MK("Most") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1738 |
MK("Náchod") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1739 |
MK("Nový Jicín") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1740 |
MK("Nymburk") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1741 |
MK("Olomouc") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1742 |
MK("Opava") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1743 |
MK("Orácov") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1744 |
MK("Ostrava") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1745 |
MK("Pardubice") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1746 |
MK("Pelhrimov") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1747 |
MK("Polzice") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1748 |
MK("Písek") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1749 |
MK("Plzen") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1750 |
MK("Praha") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1751 |
MK("Prachatice") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1752 |
MK("Prerov") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1753 |
MK("Príbram") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1754 |
MK("Prostejov") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1755 |
MK("Rakovník") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1756 |
MK("Rokycany") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1757 |
MK("Rudná") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1758 |
MK("Rychnov nad Kneznou") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1759 |
MK("Semily") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1760 |
MK("Sokolov") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1761 |
MK("Strakonice") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1762 |
MK("Stredokluky") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1763 |
MK("Sumperk") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1764 |
MK("Svitavy") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1765 |
MK("Tábor") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1766 |
MK("Tachov") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1767 |
MK("Teplice") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1768 |
MK("Trebíc") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1769 |
MK("Trutnov") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1770 |
MK("Uherské Hradiste") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1771 |
MK("Ústí nad Labem") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1772 |
MK("Ústí nad Orlicí") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1773 |
MK("Vsetín") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1774 |
MK("Vyskov") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1775 |
MK("Zdár nad Sázavou") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1776 |
MK("Zlín") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1777 |
MK("Znojmo") |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1778 |
; |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1779 |
|
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1780 |
static byte MakeCzechTownName(byte *buf, uint32 seed) |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1781 |
{ |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1782 |
AppendPart(&buf, GETNUM(0, NUM_CZECH_1), czech_1); |
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1783 |
return 0; |
124
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1784 |
} |
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1785 |
|
233
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1786 |
#define NUM_ROMANIAN_1 94 |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1787 |
static const char romanian_1[]= |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1788 |
MK("Adjud") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1789 |
MK("Alba Iulia") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1790 |
MK("Alexandria") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1791 |
MK("Babadag") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1792 |
MK("Bacău") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1793 |
MK("Baia Mare") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1794 |
MK("Băile Herculane") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1795 |
MK("Băilesti") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1796 |
MK("Bârlad") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1797 |
MK("Bicaz") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1798 |
MK("Bistrita") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1799 |
MK("Blaj") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1800 |
MK("Borsec") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1801 |
MK("Botosani") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1802 |
MK("Brăila") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1803 |
MK("Brasov") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1804 |
MK("Bucuresti") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1805 |
MK("Buftea") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1806 |
MK("Buzău") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1807 |
MK("Călărasi") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1808 |
MK("Caransebes") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1809 |
MK("Cernavodă") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1810 |
MK("Cluj-Napoca") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1811 |
MK("Constanta") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1812 |
MK("Covasna") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1813 |
MK("Craiova") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1814 |
MK("Dej") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1815 |
MK("Deva") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1816 |
MK("Dorohoi") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1817 |
MK("Dr.-Tr. Severin") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1818 |
MK("Drăgăsani") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1819 |
MK("Făgăras") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1820 |
MK("Fălticeni") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1821 |
MK("Fetesti") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1822 |
MK("Focsani") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1823 |
MK("Galati") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1824 |
MK("Gheorgheni") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1825 |
MK("Giurgiu") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1826 |
MK("Hârsova") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1827 |
MK("Hunedoara") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1828 |
MK("Husi") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1829 |
MK("Iasi") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1830 |
MK("Isaccea") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1831 |
MK("Lugoj") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1832 |
MK("Măcin") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1833 |
MK("Mangalia") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1834 |
MK("Medgidia") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1835 |
MK("Medias") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1836 |
MK("Miercurea Ciuc") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1837 |
MK("Mizil") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1838 |
MK("Motru") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1839 |
MK("Năsăud") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1840 |
MK("Năvodari") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1841 |
MK("Odobesti") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1842 |
MK("Oltenita") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1843 |
MK("Onesti") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1844 |
MK("Oradea") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1845 |
MK("Orsova") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1846 |
MK("Petrosani") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1847 |
MK("Piatra Neamt") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1848 |
MK("Pitesti") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1849 |
MK("Ploiesti") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1850 |
MK("Predeal") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1851 |
MK("Râmnicu Vâlcea") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1852 |
MK("Reghin") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1853 |
MK("Resita") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1854 |
MK("Roman") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1855 |
MK("Rosiorii de Vede") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1856 |
MK("Satu Mare") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1857 |
MK("Sebes") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1858 |
MK("Sfântu Gheorghe") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1859 |
MK("Sibiu") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1860 |
MK("Sighisoara") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1861 |
MK("Sinaia") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1862 |
MK("Slatina") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1863 |
MK("Slobozia") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1864 |
MK("Sovata") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1865 |
MK("Suceava") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1866 |
MK("Sulina") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1867 |
MK("Tăndărei") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1868 |
MK("Târgoviste") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1869 |
MK("Târgu Jiu") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1870 |
MK("Târgu Mures") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1871 |
MK("Tecuci") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1872 |
MK("Timisoara") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1873 |
MK("Tulcea") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1874 |
MK("Turda") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1875 |
MK("Turnu Măgurele") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1876 |
MK("Urziceni") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1877 |
MK("Vaslui") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1878 |
MK("Vatra Dornei") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1879 |
MK("Victoria") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1880 |
MK("Videle") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1881 |
MK("Zalău") |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1882 |
; |
124
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
1883 |
|
233
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1884 |
static byte MakeRomanianTownName(byte *buf, uint32 seed) |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1885 |
{ |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1886 |
AppendPart(&buf, GETNUM(0, NUM_ROMANIAN_1), romanian_1); |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1887 |
return 0; |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1888 |
} |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
1889 |
|
0 | 1890 |
#define NUM_SLOVAKISH_1 87 |
1891 |
static const char slovakish_1[] = |
|
1892 |
MK("Bratislava") |
|
1893 |
MK("Banovce nad Bebravou") |
|
1894 |
MK("Banska Bystrica") |
|
1895 |
MK("Banska Stiavnica") |
|
1896 |
MK("Bardejov") |
|
1897 |
MK("Brezno") |
|
1898 |
MK("Brezova pod Bradlom") |
|
1899 |
MK("Bytca") |
|
1900 |
MK("Cadca") |
|
1901 |
MK("Cierna nad Tisou") |
|
1902 |
MK("Detva") |
|
1903 |
MK("Detva") |
|
1904 |
MK("Dolny Kubin") |
|
1905 |
MK("Dolny Kubin") |
|
1906 |
MK("Dunajska Streda") |
|
1907 |
MK("Gabcikovo") |
|
1908 |
MK("Galanta") |
|
1909 |
MK("Gbely") |
|
1910 |
MK("Gelnica") |
|
1911 |
MK("Handlova") |
|
1912 |
MK("Hlohovec") |
|
1913 |
MK("Holic") |
|
1914 |
MK("Humenne") |
|
1915 |
MK("Hurbanovo") |
|
1916 |
MK("Kezmarok") |
|
1917 |
MK("Komarno") |
|
1918 |
MK("Kosice") |
|
1919 |
MK("Kremnica") |
|
1920 |
MK("Krompachy") |
|
1921 |
MK("Kuty") |
|
1922 |
MK("Leopoldov") |
|
1923 |
MK("Levoca") |
|
1924 |
MK("Liptovsky Mikulas") |
|
1925 |
MK("Lucenec") |
|
1926 |
MK("Malacky") |
|
1927 |
MK("Martin") |
|
1928 |
MK("Medzilaborce") |
|
1929 |
MK("Michalovce") |
|
1930 |
MK("Modra") |
|
1931 |
MK("Myjava") |
|
1932 |
MK("Namestovo") |
|
1933 |
MK("Nitra") |
|
1934 |
MK("Nova Bana") |
|
1935 |
MK("Nove Mesto nad Vahom") |
|
1936 |
MK("Nove Zamky") |
|
1937 |
MK("Partizanske") |
|
1938 |
MK("Pezinok") |
|
1939 |
MK("Piestany") |
|
1940 |
MK("Poltar") |
|
1941 |
MK("Poprad") |
|
1942 |
MK("Povazska Bystrica") |
|
1943 |
MK("Prievidza") |
|
1944 |
MK("Puchov") |
|
1945 |
MK("Revuca") |
|
1946 |
MK("Rimavska Sobota") |
|
1947 |
MK("Roznava") |
|
1948 |
MK("Ruzomberok") |
|
1949 |
MK("Sabinov") |
|
1950 |
MK("Sala") |
|
1951 |
MK("Senec") |
|
1952 |
MK("Senica") |
|
1953 |
MK("Sered") |
|
1954 |
MK("Skalica") |
|
1955 |
MK("Sladkovicovo") |
|
1956 |
MK("Smolenice") |
|
1957 |
MK("Snina") |
|
1958 |
MK("Stara Lubovna") |
|
1959 |
MK("Stara Tura") |
|
1960 |
MK("Strazske") |
|
1961 |
MK("Stropkov") |
|
1962 |
MK("Stupava") |
|
1963 |
MK("Sturovo") |
|
1964 |
MK("Sulekovo") |
|
1965 |
MK("Topolcany") |
|
1966 |
MK("Trebisov") |
|
1967 |
MK("Trencin") |
|
1968 |
MK("Trnava") |
|
1969 |
MK("Turcianske Teplice") |
|
1970 |
MK("Tvrdosin") |
|
1971 |
MK("Vrable") |
|
1972 |
MK("Vranov nad Toplov") |
|
1973 |
MK("Zahorska Bystrica") |
|
1974 |
MK("Zdiar") |
|
1975 |
MK("Ziar nad Hronom") |
|
1976 |
MK("Zilina") |
|
1977 |
MK("Zlate Moravce") |
|
1978 |
MK("Zvolen") |
|
1979 |
; |
|
1980 |
||
1981 |
static byte MakeSlovakishTownName(byte *buf, uint32 seed) |
|
1982 |
{ |
|
1983 |
AppendPart(&buf, GETNUM(0, NUM_SLOVAKISH_1), slovakish_1); |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1984 |
return 0; |
0 | 1985 |
} |
1986 |
||
1987 |
// Modifiers |
|
1988 |
#define NUM_HUNGARIAN_1 5 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1989 |
static const char hungarian_1[] = |
0 | 1990 |
MK("Nagy-") |
1991 |
MK("Kis-") |
|
1992 |
MK("Felső-") |
|
1993 |
MK("Alsó-") |
|
1994 |
MK("Új-") |
|
1995 |
; |
|
1996 |
||
1997 |
#define NUM_HUNGARIAN_2 54 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
1998 |
static const char hungarian_2[] = |
0 | 1999 |
// River modifiers |
2000 |
// 1 - 10 |
|
2001 |
MK("Bodrog") |
|
2002 |
MK("Dráva") |
|
2003 |
MK("Duna") |
|
2004 |
MK("Hejő") |
|
2005 |
MK("Hernád") |
|
2006 |
MK("Rába") |
|
2007 |
MK("Sajó") |
|
2008 |
MK("Szamos") |
|
2009 |
MK("Tisza") |
|
2010 |
MK("Zala") |
|
2011 |
// Lake modifiers |
|
2012 |
// 11 - 12 |
|
2013 |
MK("Balaton") |
|
2014 |
MK("Fertő") |
|
2015 |
// Mountain modifiers |
|
2016 |
// 13 - 14 |
|
2017 |
MK("Bakony") |
|
2018 |
MK("Cserhát") |
|
2019 |
// Country modifiers |
|
2020 |
// 15 - 23 |
|
2021 |
MK("Bihar") |
|
2022 |
MK("Hajdú") |
|
2023 |
MK("Jász") |
|
2024 |
MK("Kun") |
|
2025 |
MK("Magyar") |
|
2026 |
MK("Nógrád") |
|
2027 |
MK("Nyír") |
|
2028 |
MK("Somogy") |
|
2029 |
MK("Székely") |
|
2030 |
// Town modifiers |
|
2031 |
// 24 - 26 |
|
2032 |
MK("Buda") |
|
2033 |
MK("Győr") |
|
2034 |
MK("Pest") |
|
2035 |
// Color modifiers |
|
2036 |
// 27 |
|
2037 |
MK("Fehér") |
|
2038 |
// General terrain modifiers |
|
2039 |
// 28 - 34 |
|
2040 |
MK("Cserép") |
|
2041 |
MK("Erdő") |
|
2042 |
MK("Hegy") |
|
2043 |
MK("Homok") |
|
2044 |
MK("Mező") |
|
2045 |
MK("Puszta") |
|
2046 |
MK("Sár") |
|
2047 |
// Rank modifiers |
|
2048 |
// 35 - 40 |
|
2049 |
MK("Császár") |
|
2050 |
MK("Herceg") |
|
2051 |
MK("Király") |
|
2052 |
MK("Nemes") |
|
2053 |
MK("Püspök") |
|
2054 |
MK("Szent") |
|
2055 |
// Plant modifiers |
|
2056 |
// 41 - 42 |
|
2057 |
MK("Almás") |
|
2058 |
MK("Szilvás") |
|
2059 |
// Standard stuff |
|
2060 |
// 43 - 54 |
|
2061 |
MK("Agg") |
|
2062 |
MK("Aranyos") |
|
2063 |
MK("Békés") |
|
2064 |
MK("Egyházas") |
|
2065 |
MK("Gagy") |
|
2066 |
MK("Heves") |
|
2067 |
MK("Kapos") |
|
2068 |
MK("Tápió") |
|
2069 |
MK("Torna") |
|
2070 |
MK("Vas") |
|
2071 |
MK("Vámos") |
|
2072 |
MK("Vásáros") |
|
2073 |
; |
|
2074 |
||
2075 |
#define NUM_HUNGARIAN_3 16 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
2076 |
static const char hungarian_3[] = |
0 | 2077 |
MK("apáti") |
2078 |
MK("bába") |
|
2079 |
MK("bikk") |
|
2080 |
MK("dob") |
|
2081 |
MK("fa") |
|
2082 |
MK("föld") |
|
2083 |
MK("hegyes") |
|
2084 |
MK("kak") |
|
2085 |
MK("kereszt") |
|
2086 |
MK("kürt") |
|
2087 |
MK("ladány") |
|
2088 |
MK("mérges") |
|
2089 |
MK("szalonta") |
|
2090 |
MK("telek") |
|
2091 |
MK("vas") |
|
2092 |
MK("völgy") |
|
2093 |
; |
|
2094 |
||
2095 |
#define NUM_HUNGARIAN_4 5 |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
2096 |
static const char hungarian_4[] = |
0 | 2097 |
MK("alja") |
2098 |
MK("egyháza") |
|
2099 |
MK("háza") |
|
2100 |
MK("úr") |
|
2101 |
MK("vár") |
|
2102 |
; |
|
2103 |
||
2104 |
#define NUM_HUNGARIAN_REAL 35 |
|
2105 |
static const char hungarian_real[] = |
|
2106 |
MK("Ajka") |
|
2107 |
MK("Aszód") |
|
2108 |
MK("Badacsony") |
|
2109 |
MK("Baja") |
|
2110 |
MK("Budapest") |
|
2111 |
MK("Debrecen") |
|
2112 |
MK("Eger") |
|
2113 |
MK("Fonyód") |
|
2114 |
MK("Gödöllő") |
|
2115 |
MK("Győr") |
|
2116 |
MK("Gyula") |
|
2117 |
MK("Karcag") |
|
2118 |
MK("Kecskemét") |
|
2119 |
MK("Keszthely") |
|
2120 |
MK("Kisköre") |
|
2121 |
MK("Kocsord") |
|
2122 |
MK("Komárom") |
|
2123 |
MK("Kőszeg") |
|
2124 |
MK("Makó") |
|
2125 |
MK("Mohács") |
|
2126 |
MK("Miskolc") |
|
2127 |
MK("Ózd") |
|
2128 |
MK("Paks") |
|
2129 |
MK("Pápa") |
|
2130 |
MK("Pécs") |
|
2131 |
MK("Polgár") |
|
2132 |
MK("Sarkad") |
|
2133 |
MK("Siófok") |
|
2134 |
MK("Szeged") |
|
2135 |
MK("Szentes") |
|
2136 |
MK("Szolnok") |
|
2137 |
MK("Tihany") |
|
2138 |
MK("Tokaj") |
|
2139 |
MK("Vác") |
|
2140 |
MK("Záhony") |
|
2141 |
MK("Zirc") |
|
2142 |
; |
|
2143 |
||
2144 |
static byte MakeHungarianTownName(byte *buf, uint32 seed) |
|
2145 |
{ |
|
2146 |
int i; |
|
2147 |
||
2148 |
if (GETNUM(12, 15) < 3) { |
|
2149 |
/* These are real names.. */ |
|
2150 |
AppendPart(&buf, GETNUM(0, NUM_HUNGARIAN_REAL), hungarian_real); |
|
2151 |
} else { |
|
2152 |
/* These are the generated names.. Some of them exist, LOL */ |
|
2153 |
/* Append the prefix if needed */ |
|
2154 |
i = GETNUM(3, NUM_HUNGARIAN_1 * 3); |
|
2155 |
if (i < NUM_HUNGARIAN_1) AppendPart(&buf, i, hungarian_1); |
|
2156 |
||
2157 |
AppendPart(&buf, GETNUM(3, NUM_HUNGARIAN_2), hungarian_2); |
|
2158 |
AppendPart(&buf, GETNUM(6, NUM_HUNGARIAN_3), hungarian_3); |
|
193
0a7025304867
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
truelight
parents:
124
diff
changeset
|
2159 |
|
0 | 2160 |
i = GETNUM(10, NUM_HUNGARIAN_4 * 3); |
2161 |
if (i < NUM_HUNGARIAN_4) AppendPart(&buf, i, hungarian_4); |
|
2162 |
} |
|
2163 |
return 0; |
|
2164 |
} |
|
2165 |
||
2166 |
TownNameGenerator * const _town_name_generators[] = { |
|
2167 |
MakeEnglishTownName, |
|
2168 |
MakeFrenchTownName, |
|
2169 |
MakeGermanTownName, |
|
2170 |
MakeAmericanTownName, |
|
2171 |
MakeSpanishTownName, |
|
2172 |
MakeSillyTownName, |
|
2173 |
MakeSwedishTownName, |
|
2174 |
MakeDutchTownName, |
|
2175 |
MakeFinnishTownName, |
|
2176 |
MakePolishTownName, |
|
124
3da466676241
(svn r125) Add: [ 1014684 ] Czech town names (supr)
dominik
parents:
111
diff
changeset
|
2177 |
MakeCzechTownName, |
0 | 2178 |
MakeSlovakishTownName, |
2179 |
MakeHungarianTownName, |
|
233
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
2180 |
MakeAustrianTownName, |
dd177a8c9f19
(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile project file
darkvater
parents:
193
diff
changeset
|
2181 |
MakeRomanianTownName |
0 | 2182 |
}; |
4
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2183 |
|
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2184 |
#define FIXNUM(x, y, z) (((((x) << 16) / (y)) + 1) << z) |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2185 |
|
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2186 |
uint32 GetOldTownName(uint32 townnameparts, byte old_town_name_type) |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2187 |
{ |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2188 |
switch (old_town_name_type) { |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2189 |
case 0: case 3: /* English, American */ |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2190 |
/* Already OK */ |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2191 |
return townnameparts; |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2192 |
case 1: /* French */ |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2193 |
/* For some reason 86 needs to be subtracted from townnameparts |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2194 |
* 0000 0000 0000 0000 0000 0000 1111 1111 */ |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2195 |
return FIXNUM(townnameparts - 86, NUM_FRENCH_1, 0); |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2196 |
case 2: /* German */ |
65
f9f866bc609c
(svn r66) -Fix Station list updated on station deletion/station rename
darkvater
parents:
8
diff
changeset
|
2197 |
DEBUG(misc, 0) ("German Townnames are buggy... (%d)", townnameparts); |
4
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2198 |
return townnameparts; |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2199 |
case 4: /* Latin-American */ |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2200 |
/* 0000 0000 0000 0000 0000 0000 1111 1111 */ |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2201 |
return FIXNUM(townnameparts, NUM_SPANISH_1, 0); |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2202 |
case 5: /* Silly */ |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2203 |
/* NUM_SILLY_1 - lower 16 bits |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2204 |
* NUM_SILLY_2 - upper 16 bits without leading 1 (first 8 bytes) |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2205 |
* 1000 0000 2222 2222 0000 0000 1111 1111 */ |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2206 |
return FIXNUM(townnameparts, NUM_SILLY_1, 0) | FIXNUM(((townnameparts >> 16)&0xFF), NUM_SILLY_2, 16); |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2207 |
} |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2208 |
return 0; |
cad62d5f9708
(svn r5) -Fix: townname generation of TTDLX savegames. All work
darkvater
parents:
0
diff
changeset
|
2209 |
} |