… | |
… | |
27 | #include <global.h> |
27 | #include <global.h> |
28 | #include <object.h> |
28 | #include <object.h> |
29 | |
29 | |
30 | dynbuf_text msg_dynbuf (65536, 65536); |
30 | dynbuf_text msg_dynbuf (65536, 65536); |
31 | |
31 | |
|
|
32 | extern const char *const attacktype_name[NROFATTACKS] = { |
|
|
33 | # define def(uc, lc, desc, plus, change) # lc, |
|
|
34 | # include "attackinc.h" |
|
|
35 | # undef def |
|
|
36 | }; |
|
|
37 | |
32 | extern const char *const attacktype_desc[NROFATTACKS] = { |
38 | extern const char *const attacktype_desc[NROFATTACKS] = { |
33 | # define def(uc, lc, name, plus, change) # name, |
39 | # define def(uc, lc, desc, plus, change) # desc, |
34 | # include "attackinc.h" |
40 | # include "attackinc.h" |
35 | # undef def |
41 | # undef def |
36 | }; |
42 | }; |
37 | |
43 | |
38 | extern const char *const resist_plus[NROFATTACKS] = { |
44 | extern const char *const resist_plus[NROFATTACKS] = { |
39 | # define def(uc, lc, name, plus, change) # plus, |
45 | # define def(uc, lc, desc, plus, change) # plus, |
40 | # include "attackinc.h" |
46 | # include "attackinc.h" |
41 | # undef def |
47 | # undef def |
42 | }; |
48 | }; |
43 | |
49 | |
44 | extern const char *const change_resist_msg[NROFATTACKS] = { |
50 | extern const char *const change_resist_msg[NROFATTACKS] = { |
45 | # define def(uc, lc, name, plus, change) # change, |
51 | # define def(uc, lc, desc, plus, change) # change, |
46 | # include "attackinc.h" |
52 | # include "attackinc.h" |
47 | # undef def |
53 | # undef def |
48 | }; |
54 | }; |
49 | |
55 | |
50 | int resist_table[NROFATTACKS] = { |
56 | int resist_table[NROFATTACKS] = { |
51 | # define def(uc, lc, name, plus, change) ATNR_ ## uc, |
57 | # define def(uc, lc, desc, plus, change) ATNR_ ## uc, |
52 | # include "attackinc.h" |
58 | # include "attackinc.h" |
53 | # undef def |
59 | # undef def |
54 | }; |
60 | }; |
55 | |
61 | |
56 | /* You unforunately need to looking in include/global.h to see what these |
62 | /* You unforunately need to looking in include/global.h to see what these |