1 | /* |
|
|
2 | * static char *rcsid_attack_h = |
|
|
3 | * "$Id: attack.h,v 1.3 2006/08/29 08:01:36 root Exp $"; |
|
|
4 | */ |
|
|
5 | |
|
|
6 | /* |
1 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
8 | |
3 | |
9 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
4 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
10 | Copyright (C) 1992 Frank Tore Johansen |
5 | Copyright (C) 1992 Frank Tore Johansen |
… | |
… | |
149 | char *buf3; |
144 | char *buf3; |
150 | } attackmess_t; |
145 | } attackmess_t; |
151 | |
146 | |
152 | EXTERN attackmess_t attack_mess[NROFATTACKMESS][MAXATTACKMESS]; |
147 | EXTERN attackmess_t attack_mess[NROFATTACKMESS][MAXATTACKMESS]; |
153 | |
148 | |
154 | #ifndef INIT_C |
149 | #ifdef INIT_C |
155 | EXTERN int resist_table[]; |
|
|
156 | EXTERN char *change_resist_msg[NROFATTACKS]; |
|
|
157 | EXTERN char *resist_plus[NROFATTACKS]; |
|
|
158 | EXTERN char *attacktype_desc[NROFATTACKS]; |
|
|
159 | EXTERN char *resist_save[NROFATTACKS]; |
|
|
160 | |
150 | |
161 | /* Beware, names require an _ if there is a space, else they will be read |
|
|
162 | * as for example: resist_life stealing 50! |
|
|
163 | */ |
|
|
164 | #else |
|
|
165 | EXTERN const char* resist_save[NROFATTACKS] = { |
151 | extern const keyword resist_save[NROFATTACKS] = { |
166 | "physical ", "magic ", "fire ", "electricity ", "cold ", "confusion ", "acid ", |
152 | KW_resist_physical, KW_resist_magic, KW_resist_fire, KW_resist_electricity, KW_resist_cold, KW_resist_confusion, KW_resist_acid, |
167 | "drain ", "weaponmagic ", "ghosthit ", "poison ", "slow ", "paralyze ", |
153 | KW_resist_drain, KW_resist_weaponmagic, KW_resist_ghosthit, KW_resist_poison, KW_resist_slow, KW_resist_paralyze, |
168 | "turn_undead ", "fear ", "cancellation ", "deplete ", "death ", "chaos ", |
154 | KW_resist_turn_undead, KW_resist_fear, KW_resist_cancellation, KW_resist_deplete, KW_resist_death, KW_resist_chaos, |
169 | "counterspell ", "godpower ", "holyword ", "blind " , "internal ", "life_stealing ", |
155 | KW_resist_counterspell, KW_resist_godpower, KW_resist_holyword, KW_resist_blind , KW_resist_internal, KW_resist_life_stealing, |
170 | "disease " |
156 | KW_resist_disease, |
171 | }; |
157 | }; |
172 | |
158 | |
173 | /* Short description of names of the attacktypes */ |
|
|
174 | EXTERN const char* attacktype_desc[NROFATTACKS] = { |
159 | extern const char* const attacktype_desc[NROFATTACKS] = { |
175 | "physical", "magic", "fire", "electricity", "cold", "confusion", "acid", |
160 | "physical", "magic", "fire", "electricity", "cold", "confusion", "acid", |
176 | "drain", "weapon magic", "ghost hit", "poison", "slow", "paralyze", |
161 | "drain", "weapon magic", "ghost hit", "poison", "slow", "paralyze", |
177 | "turn undead", "fear", "cancellation", "deplete", "death", "chaos", |
162 | "turn undead", "fear", "cancellation", "deplete", "death", "chaos", |
178 | "counterspell", "god power", "holy word", "blind" , "internal", "life stealing", |
163 | "counterspell", "god power", "holy word", "blind" , "internal", "life stealing", |
179 | "disease" |
164 | "disease" |
180 | }; |
165 | }; |
181 | |
166 | |
182 | /* This is the array that is what the player sees. */ |
|
|
183 | |
|
|
184 | EXTERN const char* resist_plus[NROFATTACKS] = { |
167 | extern const char* const resist_plus[NROFATTACKS] = { |
185 | "armour", "resist magic", "resist fire", "resist electricity", "resist cold", |
168 | "armour", "resist magic", "resist fire", "resist electricity", "resist cold", |
186 | "resist confusion", "resist acid", "resist drain", |
169 | "resist confusion", "resist acid", "resist drain", |
187 | "resist weaponmagic", "resist ghosthit", "resist poison", "resist slow", |
170 | "resist weaponmagic", "resist ghosthit", "resist poison", "resist slow", |
188 | "resist paralyzation", "resist turn undead", "resist fear", |
171 | "resist paralyzation", "resist turn undead", "resist fear", |
189 | "resist cancellation", "resist depletion", "resist death", "resist chaos", |
172 | "resist cancellation", "resist depletion", "resist death", "resist chaos", |
190 | "resist counterspell", "resist god power", "resist holy word", |
173 | "resist counterspell", "resist god power", "resist holy word", |
191 | "resist blindness" , "resist internal", "resist life stealing", |
174 | "resist blindness" , "resist internal", "resist life stealing", |
192 | "resist diseases" |
175 | "resist diseases" |
193 | }; |
176 | }; |
194 | |
177 | |
195 | /* These are the descriptions of the resistances displayed when a |
|
|
196 | * player puts on/takes off an item. See change_abil() in living.c. |
|
|
197 | */ |
|
|
198 | EXTERN const char* change_resist_msg[NROFATTACKS] = { |
178 | extern const char* const change_resist_msg[NROFATTACKS] = { |
199 | "physical", "magic", "fire", "electricity", "cold", "confusion", "acid", |
179 | "physical", "magic", "fire", "electricity", "cold", "confusion", "acid", |
200 | "draining", "weapon magic", "ghosts", "poison", "slow", "paralyze", |
180 | "draining", "weapon magic", "ghosts", "poison", "slow", "paralyze", |
201 | "turn undead", "fear", "cancellation", "depletion", "death attacks", "chaos", |
181 | "turn undead", "fear", "cancellation", "depletion", "death attacks", "chaos", |
202 | "counterspell", "god power", "holy word", "blinding attacks", "internal", |
182 | "counterspell", "god power", "holy word", "blinding attacks", "internal", |
203 | "life stealing", "disease" |
183 | "life stealing", "disease" |
204 | }; |
184 | }; |
205 | |
185 | |
206 | |
|
|
207 | /* If you want to weight things so certain resistances show up more often than |
|
|
208 | * others, just add more entries in the table for the protections you want to |
|
|
209 | * show up. |
|
|
210 | */ |
|
|
211 | EXTERN int resist_table[] = {ATNR_PHYSICAL, ATNR_MAGIC, ATNR_FIRE, |
186 | extern int resist_table[NROFATTACKS] = {ATNR_PHYSICAL, ATNR_MAGIC, ATNR_FIRE, |
212 | ATNR_ELECTRICITY,ATNR_COLD, ATNR_CONFUSION, ATNR_ACID, ATNR_DRAIN, |
187 | ATNR_ELECTRICITY,ATNR_COLD, ATNR_CONFUSION, ATNR_ACID, ATNR_DRAIN, |
213 | ATNR_GHOSTHIT, ATNR_POISON, ATNR_SLOW, ATNR_PARALYZE, ATNR_TURN_UNDEAD, |
188 | ATNR_GHOSTHIT, ATNR_POISON, ATNR_SLOW, ATNR_PARALYZE, ATNR_TURN_UNDEAD, |
214 | ATNR_FEAR, ATNR_DEPLETE, ATNR_DEATH, ATNR_HOLYWORD, ATNR_BLIND, |
189 | ATNR_FEAR, ATNR_DEPLETE, ATNR_DEATH, ATNR_HOLYWORD, ATNR_BLIND, |
215 | ATNR_LIFE_STEALING, ATNR_DISEASE}; |
190 | ATNR_LIFE_STEALING, ATNR_DISEASE}; |
216 | |
191 | |
|
|
192 | #else |
|
|
193 | |
|
|
194 | extern const keyword resist_save[NROFATTACKS]; |
|
|
195 | |
|
|
196 | /* Short description of names of the attacktypes */ |
|
|
197 | extern const char* const attacktype_desc[NROFATTACKS]; |
|
|
198 | |
|
|
199 | /* This is the array that is what the player sees. */ |
|
|
200 | extern const char* const resist_plus[NROFATTACKS]; |
|
|
201 | |
|
|
202 | /* These are the descriptions of the resistances displayed when a |
|
|
203 | * player puts on/takes off an item. See change_abil() in living.c. |
|
|
204 | */ |
|
|
205 | extern const char* const change_resist_msg[NROFATTACKS]; |
|
|
206 | |
|
|
207 | /* If you want to weight things so certain resistances show up more often than |
|
|
208 | * others, just add more entries in the table for the protections you want to |
|
|
209 | * show up. |
|
|
210 | */ |
|
|
211 | extern int resist_table[NROFATTACKS]; |
|
|
212 | |
217 | #endif |
213 | #endif |
218 | |
214 | |
219 | #define num_resist_table 19 |
215 | #define num_resist_table 19 |
220 | |
216 | |
221 | #endif |
217 | #endif |