Crossfire Server, Branches 1.12  R18729
Attack types

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
 

Detailed Description

Macro Definition Documentation

#define AT_ACID   0x00000040 /* 64 Things might corrode when hit */

Definition at line 110 of file attack.h.

Referenced by attack_ob_simple(), examine_monster(), fix_flesh_item(), and initConstants().

#define AT_BLIND   0x00400000 /* 4194304 thomas@astro.psu.edu */

Definition at line 126 of file attack.h.

Referenced by cast_heal(), did_make_save_item(), and initConstants().

#define AT_CANCELLATION   0x00008000 /* 32768 ylitalo@student.docs.uu.se */

Definition at line 119 of file attack.h.

Referenced by cancellation(), initConstants(), and save_throw_object().

#define AT_CHAOS   0x00040000 /* 262144 peterm@soda.berkeley.edu*/

Definition at line 122 of file attack.h.

Referenced by hit_map(), hit_player(), and initConstants().

#define AT_COLD   0x00000010 /* 16 */

Definition at line 108 of file attack.h.

Referenced by attack_message(), initConstants(), and save_throw_object().

#define AT_CONFUSION   0x00000020 /* 32 The spell will use this one */

Definition at line 109 of file attack.h.

Referenced by cast_heal(), change_abil(), did_make_save_item(), and initConstants().

#define AT_COUNTERSPELL   0x00080000 /* 524288 peterm@soda.berkeley.edu*/

Definition at line 123 of file attack.h.

Referenced by counterspell(), did_make_save_item(), hit_map(), initConstants(), and ok_to_put_more().

#define AT_DEATH   0x00020000 /* 131072 peterm@soda.berkeley.edu */
#define AT_DEPLETE   0x00010000 /* 65536 vick@bern.docs.uu.se */

Definition at line 120 of file attack.h.

Referenced by did_make_save_item(), initConstants(), potion_type_apply(), and START_TEST().

#define AT_DISEASE   0x02000000 /* 33554432 disease attacktypes */

Definition at line 130 of file attack.h.

Referenced by cast_heal(), and initConstants().

#define AT_DRAIN   0x00000080 /* 128 */
#define AT_ELECTRICITY   0x00000008 /* 8 */

Definition at line 107 of file attack.h.

Referenced by attack_message(), initConstants(), and save_throw_object().

#define AT_FEAR   0x00004000 /* 16384 */

Definition at line 118 of file attack.h.

Referenced by cast_cone(), did_make_save_item(), and initConstants().

#define AT_FIRE   0x00000004 /* 4 */
#define AT_GHOSTHIT   0x00000200 /* 512 Attacker dissolves */

Definition at line 113 of file attack.h.

Referenced by did_make_save_item(), fix_summon_pet(), and initConstants().

#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 */

Definition at line 127 of file attack.h.

Referenced by initConstants(), poisoning_type_process(), and spell_failure().

#define AT_LIFE_STEALING   0x01000000 /* 16777216 for hp drain */

Definition at line 128 of file attack.h.

Referenced by did_make_save_item(), and initConstants().

#define AT_PARALYZE   0x00001000 /* 4096 */

Definition at line 116 of file attack.h.

Referenced by did_make_save_item(), hit_player(), and initConstants().

#define AT_POISON   0x00000400 /* 1024 */
#define AT_SLOW   0x00000800 /* 2048 */

Definition at line 115 of file attack.h.

Referenced by did_make_save_item(), hit_player(), and initConstants().

#define AT_TURN_UNDEAD   0x00002000 /* 8192 */

Definition at line 117 of file attack.h.

Referenced by cast_cone(), did_make_save_item(), and initConstants().

#define AT_WEAPONMAGIC   0x00000100 /* 256 Very special, use with care */

Definition at line 112 of file attack.h.

Referenced by initConstants().

#define ATM_ARROW   0

Definition at line 51 of file attack.h.

Referenced by attack_message().

#define ATM_BASIC   5

Definition at line 56 of file attack.h.

Referenced by attack_message().

#define ATM_BLUD   16

Definition at line 67 of file attack.h.

Referenced by attack_message().

#define ATM_CLAW   7

Definition at line 58 of file attack.h.

Referenced by attack_message().

#define ATM_CLEAVE   11

Definition at line 62 of file attack.h.

Referenced by attack_message().

#define ATM_COLD   3

Definition at line 54 of file attack.h.

Referenced by attack_message().

#define ATM_CRUSH   15

Definition at line 66 of file attack.h.

Referenced by attack_message().

#define ATM_DOOR   17

Definition at line 68 of file attack.h.

Referenced by attack_message().

#define ATM_DRAIN   1

Definition at line 52 of file attack.h.

Referenced by attack_message().

#define ATM_ELEC   2

Definition at line 53 of file attack.h.

Referenced by attack_message().

#define ATM_FIRE   4

Definition at line 55 of file attack.h.

Referenced by attack_message().

#define ATM_KARATE   6

Definition at line 57 of file attack.h.

Referenced by attack_message().

#define ATM_PIERCE   10

Definition at line 61 of file attack.h.

Referenced by attack_message().

#define ATM_PUNCH   8

Definition at line 59 of file attack.h.

Referenced by attack_message().

#define ATM_SLASH   9

Definition at line 60 of file attack.h.

Referenced by attack_message().

#define ATM_SLICE   12

Definition at line 63 of file attack.h.

Referenced by attack_message().

#define ATM_STAB   13

Definition at line 64 of file attack.h.

Referenced by attack_message().

#define ATM_SUFFER   18

Definition at line 69 of file attack.h.

Referenced by attack_message().

#define ATM_WHIP   14

Definition at line 65 of file attack.h.

Referenced by attack_message().

#define ATM_WRAITH_FEED   19

Definition at line 70 of file attack.h.

Referenced by attack_message().

#define ATNR_ACID   6

Definition at line 83 of file attack.h.

Referenced by atnr_is_dragon_enabled(), hit_with_one_attacktype(), and initConstants().

#define ATNR_BLIND   22

Definition at line 99 of file attack.h.

Referenced by animate_weapon(), blind_living(), hit_with_one_attacktype(), and initConstants().

#define ATNR_CANCELLATION   15

Definition at line 92 of file attack.h.

Referenced by hit_with_one_attacktype(), and initConstants().

#define ATNR_CHAOS   18

Definition at line 95 of file attack.h.

Referenced by hit_with_one_attacktype(), and initConstants().

#define ATNR_COLD   4
#define ATNR_CONFUSION   5

Definition at line 82 of file attack.h.

Referenced by animate_weapon(), confuse_living(), hit_with_one_attacktype(), and initConstants().

#define ATNR_COUNTERSPELL   19

Definition at line 96 of file attack.h.

Referenced by hit_with_one_attacktype(), and initConstants().

#define ATNR_DEATH   17

Definition at line 94 of file attack.h.

Referenced by animate_weapon(), hit_with_one_attacktype(), and initConstants().

#define ATNR_DEPLETE   16

Definition at line 93 of file attack.h.

Referenced by animate_weapon(), hit_with_one_attacktype(), initConstants(), and START_TEST().

#define ATNR_DISEASE   25

Definition at line 102 of file attack.h.

Referenced by initConstants().

#define ATNR_DRAIN   7

Definition at line 84 of file attack.h.

Referenced by hit_with_one_attacktype(), and initConstants().

#define ATNR_ELECTRICITY   3
#define ATNR_FEAR   14

Definition at line 91 of file attack.h.

Referenced by animate_weapon(), hit_with_one_attacktype(), and initConstants().

#define ATNR_FIRE   2
#define ATNR_GHOSTHIT   9

Definition at line 86 of file attack.h.

Referenced by initConstants().

#define ATNR_GODPOWER   20

Definition at line 97 of file attack.h.

Referenced by cast_bless(), and initConstants().

#define ATNR_HOLYWORD   21

Definition at line 98 of file attack.h.

Referenced by hit_with_one_attacktype(), and initConstants().

#define ATNR_INTERNAL   23

Definition at line 100 of file attack.h.

Referenced by command_resistances(), hit_with_one_attacktype(), and initConstants().

#define ATNR_LIFE_STEALING   24

Definition at line 101 of file attack.h.

Referenced by hit_with_one_attacktype(), and initConstants().

#define ATNR_MAGIC   1
#define ATNR_PARALYZE   12

Definition at line 89 of file attack.h.

Referenced by animate_weapon(), hit_with_one_attacktype(), initConstants(), and paralyze_living().

#define ATNR_PHYSICAL   0
#define ATNR_SLOW   11

Definition at line 88 of file attack.h.

Referenced by animate_weapon(), hit_with_one_attacktype(), and initConstants().

#define ATNR_TURN_UNDEAD   13

Definition at line 90 of file attack.h.

Referenced by animate_weapon(), hit_with_one_attacktype(), and initConstants().

#define ATNR_WEAPONMAGIC   8

Definition at line 85 of file attack.h.

Referenced by initConstants().

#define MAXATTACKMESS   21

Definition at line 47 of file attack.h.

Referenced by attack_message(), and free_globals().

#define NROFATTACKMESS   21

Definition at line 46 of file attack.h.

Referenced by free_globals().