ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/attack.h
(Generate patch)

Comparing deliantra/server/include/attack.h (file contents):
Revision 1.1 by root, Fri Feb 3 07:12:47 2006 UTC vs.
Revision 1.3 by root, Tue Aug 29 08:01:36 2006 UTC

1/* 1/*
2 * static char *rcsid_attack_h = 2 * static char *rcsid_attack_h =
3 * "$Id: attack.h,v 1.1 2006/02/03 07:12:47 root Exp $"; 3 * "$Id: attack.h,v 1.3 2006/08/29 08:01:36 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
124#define AT_GODPOWER 0x00100000 /* 1048576 peterm@soda.berkeley.edu */ 124#define AT_GODPOWER 0x00100000 /* 1048576 peterm@soda.berkeley.edu */
125#define AT_HOLYWORD 0x00200000 /* 2097152 race selective attack thomas@astro.psu.edu */ 125#define AT_HOLYWORD 0x00200000 /* 2097152 race selective attack thomas@astro.psu.edu */
126#define AT_BLIND 0x00400000 /* 4194304 thomas@astro.psu.edu */ 126#define AT_BLIND 0x00400000 /* 4194304 thomas@astro.psu.edu */
127#define AT_INTERNAL 0x00800000 /* Only used for internal calculations */ 127#define AT_INTERNAL 0x00800000 /* Only used for internal calculations */
128#define AT_LIFE_STEALING \ 128#define AT_LIFE_STEALING \
129 0x01000000 /* 16777216 for hp drain */ 129 0x01000000 /* 16777216 for hp drain */
130#define AT_DISEASE 0x02000000 /* 33554432 disease attacktypes */ 130#define AT_DISEASE 0x02000000 /* 33554432 disease attacktypes */
131 131
132/* attacktypes_load is suffixed to resist_ when saving objects. 132/* attacktypes_load is suffixed to resist_ when saving objects.
133 * (so the line may be 'resist_fire' 20 for example). These are never 133 * (so the line may be 'resist_fire' 20 for example). These are never
134 * seen by the player. loader.l uses the same names, but it doesn't look 134 * seen by the player. loader.l uses the same names, but it doesn't look
160 160
161/* Beware, names require an _ if there is a space, else they will be read 161/* Beware, names require an _ if there is a space, else they will be read
162 * as for example: resist_life stealing 50! 162 * as for example: resist_life stealing 50!
163 */ 163 */
164#else 164#else
165EXTERN char *resist_save[NROFATTACKS] = { 165EXTERN const char* resist_save[NROFATTACKS] = {
166"physical ", "magic ", "fire ", "electricity ", "cold ", "confusion ", "acid ", 166"physical ", "magic ", "fire ", "electricity ", "cold ", "confusion ", "acid ",
167"drain ", "weaponmagic ", "ghosthit ", "poison ", "slow ", "paralyze ", 167"drain ", "weaponmagic ", "ghosthit ", "poison ", "slow ", "paralyze ",
168"turn_undead ", "fear ", "cancellation ", "deplete ", "death ", "chaos ", 168"turn_undead ", "fear ", "cancellation ", "deplete ", "death ", "chaos ",
169"counterspell ", "godpower ", "holyword ", "blind " , "internal ", "life_stealing ", 169"counterspell ", "godpower ", "holyword ", "blind " , "internal ", "life_stealing ",
170"disease " 170"disease "
171}; 171};
172 172
173/* Short description of names of the attacktypes */ 173/* Short description of names of the attacktypes */
174EXTERN char *attacktype_desc[NROFATTACKS] = { 174EXTERN const char* attacktype_desc[NROFATTACKS] = {
175"physical", "magic", "fire", "electricity", "cold", "confusion", "acid", 175"physical", "magic", "fire", "electricity", "cold", "confusion", "acid",
176"drain", "weapon magic", "ghost hit", "poison", "slow", "paralyze", 176"drain", "weapon magic", "ghost hit", "poison", "slow", "paralyze",
177"turn undead", "fear", "cancellation", "deplete", "death", "chaos", 177"turn undead", "fear", "cancellation", "deplete", "death", "chaos",
178"counterspell", "god power", "holy word", "blind" , "internal", "life stealing", 178"counterspell", "god power", "holy word", "blind" , "internal", "life stealing",
179"disease" 179"disease"
180}; 180};
181 181
182/* This is the array that is what the player sees. */ 182/* This is the array that is what the player sees. */
183 183
184EXTERN char *resist_plus[NROFATTACKS] = { 184EXTERN const char* resist_plus[NROFATTACKS] = {
185"armour", "resist magic", "resist fire", "resist electricity", "resist cold", 185"armour", "resist magic", "resist fire", "resist electricity", "resist cold",
186"resist confusion", "resist acid", "resist drain", 186"resist confusion", "resist acid", "resist drain",
187"resist weaponmagic", "resist ghosthit", "resist poison", "resist slow", 187"resist weaponmagic", "resist ghosthit", "resist poison", "resist slow",
188"resist paralyzation", "resist turn undead", "resist fear", 188"resist paralyzation", "resist turn undead", "resist fear",
189"resist cancellation", "resist depletion", "resist death", "resist chaos", 189"resist cancellation", "resist depletion", "resist death", "resist chaos",
193}; 193};
194 194
195/* These are the descriptions of the resistances displayed when a 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. 196 * player puts on/takes off an item. See change_abil() in living.c.
197 */ 197 */
198EXTERN char *change_resist_msg[NROFATTACKS] = { 198EXTERN const char* change_resist_msg[NROFATTACKS] = {
199"physical", "magic", "fire", "electricity", "cold", "confusion", "acid", 199"physical", "magic", "fire", "electricity", "cold", "confusion", "acid",
200"draining", "weapon magic", "ghosts", "poison", "slow", "paralyze", 200"draining", "weapon magic", "ghosts", "poison", "slow", "paralyze",
201"turn undead", "fear", "cancellation", "depletion", "death attacks", "chaos", 201"turn undead", "fear", "cancellation", "depletion", "death attacks", "chaos",
202"counterspell", "god power", "holy word", "blinding attacks", "internal", 202"counterspell", "god power", "holy word", "blinding attacks", "internal",
203"life stealing", "disease" 203"life stealing", "disease"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines