Crossfire Server, Branches 1.12  R18729
attack.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  attackmess
 
struct  Chaos_Attacks
 

Macros

#define AT_ACID   0x00000040 /* 64 Things might corrode when hit */
 
#define AT_BLIND   0x00400000 /* 4194304 thomas@astro.psu.edu */
 
#define AT_CANCELLATION   0x00008000 /* 32768 ylitalo@student.docs.uu.se */
 
#define AT_CHAOS   0x00040000 /* 262144 peterm@soda.berkeley.edu*/
 
#define AT_COLD   0x00000010 /* 16 */
 
#define AT_CONFUSION   0x00000020 /* 32 The spell will use this one */
 
#define AT_COUNTERSPELL   0x00080000 /* 524288 peterm@soda.berkeley.edu*/
 
#define AT_DEATH   0x00020000 /* 131072 peterm@soda.berkeley.edu */
 
#define AT_DEPLETE   0x00010000 /* 65536 vick@bern.docs.uu.se */
 
#define AT_DISEASE   0x02000000 /* 33554432 disease attacktypes */
 
#define AT_DRAIN   0x00000080 /* 128 */
 
#define AT_ELECTRICITY   0x00000008 /* 8 */
 
#define AT_FEAR   0x00004000 /* 16384 */
 
#define AT_FIRE   0x00000004 /* 4 */
 
#define AT_GHOSTHIT   0x00000200 /* 512 Attacker dissolves */
 
#define AT_GODPOWER   0x00100000 /* 1048576 peterm@soda.berkeley.edu */
 
#define AT_HOLYWORD   0x00200000 /* 2097152 race selective attack thomas@astro.psu.edu */
 
#define AT_INTERNAL   0x00800000 /* Only used for internal calculations */
 
#define AT_LIFE_STEALING   0x01000000 /* 16777216 for hp drain */
 
#define AT_MAGIC   0x00000002 /* 2 */
 
#define AT_PARALYZE   0x00001000 /* 4096 */
 
#define AT_PHYSICAL   0x00000001 /* 1 */
 
#define AT_POISON   0x00000400 /* 1024 */
 
#define AT_SLOW   0x00000800 /* 2048 */
 
#define AT_TURN_UNDEAD   0x00002000 /* 8192 */
 
#define AT_WEAPONMAGIC   0x00000100 /* 256 Very special, use with care */
 
#define ATM_ARROW   0
 
#define ATM_BASIC   5
 
#define ATM_BLUD   16
 
#define ATM_CLAW   7
 
#define ATM_CLEAVE   11
 
#define ATM_COLD   3
 
#define ATM_CRUSH   15
 
#define ATM_DOOR   17
 
#define ATM_DRAIN   1
 
#define ATM_ELEC   2
 
#define ATM_FIRE   4
 
#define ATM_KARATE   6
 
#define ATM_PIERCE   10
 
#define ATM_PUNCH   8
 
#define ATM_SLASH   9
 
#define ATM_SLICE   12
 
#define ATM_STAB   13
 
#define ATM_SUFFER   18
 
#define ATM_WHIP   14
 
#define ATM_WRAITH_FEED   19
 
#define ATNR_ACID   6
 
#define ATNR_BLIND   22
 
#define ATNR_CANCELLATION   15
 
#define ATNR_CHAOS   18
 
#define ATNR_COLD   4
 
#define ATNR_CONFUSION   5
 
#define ATNR_COUNTERSPELL   19
 
#define ATNR_DEATH   17
 
#define ATNR_DEPLETE   16
 
#define ATNR_DISEASE   25
 
#define ATNR_DRAIN   7
 
#define ATNR_ELECTRICITY   3
 
#define ATNR_FEAR   14
 
#define ATNR_FIRE   2
 
#define ATNR_GHOSTHIT   9
 
#define ATNR_GODPOWER   20
 
#define ATNR_HOLYWORD   21
 
#define ATNR_INTERNAL   23
 
#define ATNR_LIFE_STEALING   24
 
#define ATNR_MAGIC   1
 
#define ATNR_PARALYZE   12
 
#define ATNR_PHYSICAL   0
 
#define ATNR_POISON   10
 
#define ATNR_SLOW   11
 
#define ATNR_TURN_UNDEAD   13
 
#define ATNR_WEAPONMAGIC   8
 
#define MAXATTACKMESS   21
 
#define NROFATTACKMESS   21
 
#define NROFATTACKS   26
 
#define num_resist_table   19
 

Typedefs

typedef struct attackmess attackmess_t
 

Variables

EXTERN attackmess_t attack_mess [NROFATTACKMESS][MAXATTACKMESS]
 
EXTERN Chaos_Attacks ATTACKS [22]
 
EXTERN const char *const attacktype_desc [NROFATTACKS]
 
EXTERN const char *const change_resist_msg [NROFATTACKS]
 
EXTERN const char *const resist_plus [NROFATTACKS]
 
EXTERN const char *const resist_save [NROFATTACKS]
 
EXTERN int resist_table []
 

Detailed Description

Attack-related definitions.

Definition in file attack.h.

Macro Definition Documentation

#define num_resist_table   19

Definition at line 257 of file attack.h.

Referenced by set_ring_bonus().

Typedef Documentation

typedef struct attackmess attackmess_t

Attack messages structure.

Variable Documentation

Definition at line 158 of file attack.h.

EXTERN Chaos_Attacks ATTACKS[22]

Definition at line 161 of file attack.h.

Referenced by hit_player(), and shuffle_attack().

EXTERN const char* const attacktype_desc[NROFATTACKS]

Definition at line 165 of file attack.h.

Referenced by command_resistances(), god_info_msg(), and main().

EXTERN const char* const change_resist_msg[NROFATTACKS]
EXTERN const char* const resist_plus[NROFATTACKS]

Definition at line 164 of file attack.h.

Referenced by describe_monster(), and describe_resistance().

EXTERN const char* const resist_save[NROFATTACKS]

Definition at line 166 of file attack.h.

EXTERN int resist_table[]

Definition at line 162 of file attack.h.

Referenced by set_ring_bonus().