… | |
… | |
64 | char *buf3; |
64 | char *buf3; |
65 | } attackmess_t; |
65 | } attackmess_t; |
66 | |
66 | |
67 | EXTERN attackmess_t attack_mess[NROFATTACKMESS][MAXATTACKMESS]; |
67 | EXTERN attackmess_t attack_mess[NROFATTACKMESS][MAXATTACKMESS]; |
68 | |
68 | |
69 | enum { |
69 | enum |
|
|
70 | { |
70 | # define def(uc, lc, name, plus, change) ATNR_ ## uc, |
71 | # define def(uc, lc, name, plus, change) ATNR_ ## uc, |
71 | # include "attackinc.h" |
72 | # include "attackinc.h" |
72 | # undef def |
73 | # undef def |
73 | NROFATTACKS |
74 | NROFATTACKS |
74 | }; |
75 | }; |
75 | |
76 | |
76 | enum { |
77 | enum |
|
|
78 | { |
77 | # define def(uc, lc, name, plus, change) AT_ ## uc = 1UL << ATNR_ ## uc, |
79 | # define def(uc, lc, name, plus, change) AT_ ## uc = 1UL << ATNR_ ## uc, |
78 | # include "attackinc.h" |
80 | # include "attackinc.h" |
79 | # undef def |
81 | # undef def |
80 | }; |
82 | }; |
81 | |
83 | |
|
|
84 | /* lowercase attacktype identifiers */ |
|
|
85 | extern const char* const attacktype_name[NROFATTACKS]; |
|
|
86 | |
82 | /* Short description of names of the attacktypes */ |
87 | /* short description of names of the attacktypes */ |
83 | extern const char* const attacktype_desc[NROFATTACKS]; |
88 | extern const char* const attacktype_desc[NROFATTACKS]; |
84 | |
89 | |
85 | /* Note that internal should not ever be referenced in the last two |
90 | /* Note that internal should not ever be referenced in the last two |
86 | * tables. however, other resisttypes may be added, and if through some |
91 | * tables. however, other resisttypes may be added, and if through some |
87 | * bug these do get used somehow, might as well make it more easier to notice |
92 | * bug these do get used somehow, might as well make it more easier to notice |