1 | |
|
|
2 | /* |
|
|
3 | * static char *rcsid_init_c = |
|
|
4 | * "$Id: init.C,v 1.10 2006/09/10 16:00:23 root Exp $"; |
|
|
5 | */ |
|
|
6 | |
|
|
7 | /* |
1 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
9 | |
3 | |
10 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
4 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
11 | Copyright (C) 1992 Frank Tore Johansen |
5 | Copyright (C) 1992 Frank Tore Johansen |
… | |
… | |
31 | |
25 | |
32 | #include <global.h> |
26 | #include <global.h> |
33 | #include <object.h> |
27 | #include <object.h> |
34 | |
28 | |
35 | extern const char *const attacktype_desc[NROFATTACKS] = { |
29 | extern const char *const attacktype_desc[NROFATTACKS] = { |
36 | #define def(uc, lc, name, plus, change) # name, |
30 | # define def(uc, lc, name, plus, change) # name, |
37 | #include "attackinc.h" |
31 | # include "attackinc.h" |
38 | #undef def |
32 | # undef def |
39 | }; |
33 | }; |
40 | |
34 | |
41 | extern const keyword resist_save[NROFATTACKS] = { |
35 | extern const keyword resist_save[NROFATTACKS] = { |
42 | #define def(uc, lc, name, plus, change) KW_resist_ ## lc, |
36 | # define def(uc, lc, name, plus, change) KW_resist_ ## lc, |
43 | #include "attackinc.h" |
37 | # include "attackinc.h" |
44 | #undef def |
38 | # undef def |
45 | }; |
39 | }; |
46 | |
40 | |
47 | extern const char *const resist_plus[NROFATTACKS] = { |
41 | extern const char *const resist_plus[NROFATTACKS] = { |
48 | #define def(uc, lc, name, plus, change) # plus, |
42 | # define def(uc, lc, name, plus, change) # plus, |
49 | #include "attackinc.h" |
43 | # include "attackinc.h" |
50 | #undef def |
44 | # undef def |
51 | }; |
45 | }; |
52 | |
46 | |
53 | extern const char *const change_resist_msg[NROFATTACKS] = { |
47 | extern const char *const change_resist_msg[NROFATTACKS] = { |
54 | #define def(uc, lc, name, plus, change) # change, |
48 | # define def(uc, lc, name, plus, change) # change, |
55 | #include "attackinc.h" |
49 | # include "attackinc.h" |
56 | #undef def |
50 | # undef def |
57 | }; |
51 | }; |
58 | |
52 | |
59 | int resist_table[NROFATTACKS] = { |
53 | int resist_table[NROFATTACKS] = { |
60 | #define def(uc, lc, name, plus, change) ATNR_ ## uc, |
54 | # define def(uc, lc, name, plus, change) ATNR_ ## uc, |
61 | #include "attackinc.h" |
55 | # include "attackinc.h" |
62 | #undef def |
56 | # undef def |
63 | }; |
57 | }; |
64 | |
58 | |
65 | /* You unforunately need to looking in include/global.h to see what these |
59 | /* You unforunately need to looking in include/global.h to see what these |
66 | * correspond to. |
60 | * correspond to. |
67 | */ |
61 | */ |