|
Crossfire Server
1.75.0
|
Attack-related definitions. More...
Go to the source code of this file.
Data Structures | |
| struct | attackmess_t |
| Attack messages structure. More... | |
| struct | Chaos_Attacks |
Macros | |
| #define | AT_ACID 0x00000040 |
| Random equipped item might corrode when hit (64) More... | |
| #define | AT_BLIND 0x00400000 |
| Blinds victim (4194304) thomas@astro.psu.edu. More... | |
| #define | AT_CANCELLATION 0x00008000 |
| Removes magic from items (32768) ylitalo@student.docs.uu.se. More... | |
| #define | AT_CHAOS 0x00040000 |
| None by itself, uses random other types (262144) peterm@soda.berkeley.edu. More... | |
| #define | AT_COLD 0x00000010 |
| Can freeze objects into ice cubes (16) More... | |
| #define | AT_CONFUSION 0x00000020 |
| Movement/attack directions become random (32) More... | |
| #define | AT_COUNTERSPELL 0x00080000 |
| Cancels magic spells (524288) peterm@soda.berkeley.edu. More... | |
| #define | AT_DEATH 0x00020000 |
| Chance of instant death, otherwise nothing (131072) peterm@soda.berkeley.edu. More... | |
| #define | AT_DEPLETE 0x00010000 |
| Lose one point from one stat, can be restored (65536) vick@bern.docs.uu.se. More... | |
| #define | AT_DISEASE 0x02000000 |
| 33554432 disease attacktypes More... | |
| #define | AT_DRAIN 0x00000080 |
| Victim loses 2% exp, attacker gains half of that (128) More... | |
| #define | AT_ELECTRICITY 0x00000008 |
| Can also ignite objects (8) More... | |
| #define | AT_FEAR 0x00004000 |
| (16384) More... | |
| #define | AT_FIRE 0x00000004 |
| Can ignite objects (4) More... | |
| #define | AT_GHOSTHIT 0x00000200 |
| Attacker dissolves (512) More... | |
| #define | AT_GODPOWER 0x00100000 |
| Adds relevant god's attacktype (1048576) peterm@soda.berkeley.edu. More... | |
| #define | AT_HOLYWORD 0x00200000 |
| Damage based on race and caster's god. More... | |
| #define | AT_INTERNAL 0x00800000 |
| Only used for internal calculations. More... | |
| #define | AT_LIFE_STEALING 0x01000000 |
| 16777216 for hp drain More... | |
| #define | AT_MAGIC 0x00000002 |
| All magic spells, but not prayers (2) More... | |
| #define | AT_PARALYZE 0x00001000 |
| Speed is reduced to zero (4096) More... | |
| #define | AT_PHYSICAL 0x00000001 |
| Basic attack (1) More... | |
| #define | AT_POISON 0x00000400 |
| Some damage each turn thereafter (1024) More... | |
| #define | AT_SLOW 0x00000800 |
| Speed is reduced (2048) More... | |
| #define | AT_TURN_UNDEAD 0x00002000 |
| Like Fear, but for undead only (8192) More... | |
| #define | AT_WEAPONMAGIC 0x00000100 |
| Direct damage, very special, use with care (256) More... | |
| #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 |
Variables | |
| EXTERN attackmess_t | attack_mess [NROFATTACKMESS][MAXATTACKMESS] |
| Attack messages the player gets when hitting/getting hit. More... | |
| 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_color [NROFATTACKS] |
| EXTERN const char *const | resist_plus [NROFATTACKS] |
| EXTERN const char *const | resist_save [NROFATTACKS] |
Attack-related definitions.
Definition in file attack.h.
| #define ATM_ARROW 0 |
Definition at line 21 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_BASIC 5 |
Definition at line 26 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_BLUD 16 |
Definition at line 37 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_CLAW 7 |
Definition at line 28 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_CLEAVE 11 |
Definition at line 32 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_COLD 3 |
Definition at line 24 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_CRUSH 15 |
Definition at line 36 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_DOOR 17 |
Definition at line 38 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_DRAIN 1 |
Definition at line 22 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_ELEC 2 |
Definition at line 23 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_FIRE 4 |
Definition at line 25 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_KARATE 6 |
Definition at line 27 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_PIERCE 10 |
Definition at line 31 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_PUNCH 8 |
Definition at line 29 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_SLASH 9 |
Definition at line 30 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_SLICE 12 |
Definition at line 33 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_STAB 13 |
Definition at line 34 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_SUFFER 18 |
Definition at line 39 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_WHIP 14 |
Definition at line 35 of file attack.h.
Referenced by get_attack_message_type().
| #define ATM_WRAITH_FEED 19 |
Definition at line 40 of file attack.h.
Referenced by get_attack_message_type().
| #define ATNR_ACID 6 |
Definition at line 53 of file attack.h.
Referenced by atnr_is_dragon_enabled(), and hit_with_one_attacktype().
| #define ATNR_BLIND 22 |
Definition at line 69 of file attack.h.
Referenced by animate_weapon(), blind_living(), and hit_with_one_attacktype().
| #define ATNR_CANCELLATION 15 |
Definition at line 62 of file attack.h.
Referenced by hit_with_one_attacktype().
| #define ATNR_CHAOS 18 |
Definition at line 65 of file attack.h.
Referenced by hit_with_one_attacktype().
| #define ATNR_COLD 4 |
Definition at line 51 of file attack.h.
Referenced by atnr_is_dragon_enabled(), become_follower(), dragon_ability_gain(), and save_throw_object().
| #define ATNR_CONFUSION 5 |
Definition at line 52 of file attack.h.
Referenced by animate_weapon(), confuse_living(), and hit_with_one_attacktype().
| #define ATNR_COUNTERSPELL 19 |
Definition at line 66 of file attack.h.
Referenced by hit_with_one_attacktype().
| #define ATNR_DEATH 17 |
Definition at line 64 of file attack.h.
Referenced by animate_weapon(), deathstrike_living(), and hit_with_one_attacktype().
| #define ATNR_DEPLETE 16 |
Definition at line 63 of file attack.h.
Referenced by animate_weapon(), and hit_with_one_attacktype().
| #define ATNR_DRAIN 7 |
Definition at line 54 of file attack.h.
Referenced by hit_with_drain(), and hit_with_one_attacktype().
| #define ATNR_ELECTRICITY 3 |
Definition at line 50 of file attack.h.
Referenced by atnr_is_dragon_enabled(), become_follower(), and dragon_ability_gain().
| #define ATNR_FEAR 14 |
Definition at line 61 of file attack.h.
Referenced by animate_weapon(), and hit_with_one_attacktype().
| #define ATNR_FIRE 2 |
Definition at line 49 of file attack.h.
Referenced by atnr_is_dragon_enabled(), become_follower(), dragon_ability_gain(), and save_throw_object().
| #define ATNR_GODPOWER 20 |
Definition at line 67 of file attack.h.
Referenced by cast_bless().
| #define ATNR_HOLYWORD 21 |
Definition at line 68 of file attack.h.
Referenced by hit_with_one_attacktype().
| #define ATNR_INTERNAL 23 |
Definition at line 70 of file attack.h.
Referenced by command_resistances(), and hit_with_one_attacktype().
| #define ATNR_LIFE_STEALING 24 |
Definition at line 71 of file attack.h.
Referenced by hit_with_one_attacktype().
| #define ATNR_MAGIC 1 |
Definition at line 48 of file attack.h.
Referenced by atnr_is_dragon_enabled(), cast_destruction(), hit_player(), polymorph_living(), and thrown_item_effect().
| #define ATNR_PARALYZE 12 |
Definition at line 59 of file attack.h.
Referenced by animate_weapon(), hit_with_one_attacktype(), and paralyze_living().
| #define ATNR_PHYSICAL 0 |
Definition at line 47 of file attack.h.
Referenced by animate_weapon(), change_abil(), esrv_update_stats(), fix_object(), hit_with_drain(), hit_with_one_attacktype(), is_magical(), and monster_get_armour_quality().
| #define ATNR_POISON 10 |
Definition at line 57 of file attack.h.
Referenced by animate_weapon(), atnr_is_dragon_enabled(), become_follower(), dragon_ability_gain(), hit_with_one_attacktype(), and thrown_item_effect().
| #define ATNR_SLOW 11 |
Definition at line 58 of file attack.h.
Referenced by animate_weapon(), hit_with_one_attacktype(), and slow_living().
| #define ATNR_TURN_UNDEAD 13 |
Definition at line 60 of file attack.h.
Referenced by animate_weapon(), and hit_with_one_attacktype().
| #define MAXATTACKMESS 21 |
Definition at line 17 of file attack.h.
Referenced by free_globals(), get_attack_message_for_attack_type(), and init_library().
| #define NROFATTACKMESS 21 |
Definition at line 16 of file attack.h.
Referenced by free_globals().
| #define NROFATTACKS 26 |
Definition at line 15 of file attack.h.
Referenced by add_abilities(), animate_weapon(), become_follower(), calc_item_enhancement(), cast_bless(), cast_change_ability(), change_abil(), command_resistances(), create_aura(), Crossfire_Object_GetResist(), Crossfire_Object_SetResist(), describe_attacktype(), describe_god(), describe_resistance(), did_make_save_item(), dragon_eat_flesh(), eat_special_food(), esrv_update_stats(), find_better_arrow(), fix_flesh_item(), fix_object(), get_empty_mat(), get_ob_diff(), get_player(), hit_player(), hit_with_one_attacktype(), is_magical(), kill_player_not_permadeath(), load_materials(), monster_check_good_armour(), mood_change(), new_exp(), perceive_self(), potion_type_apply(), prepare_weapon(), print_monsters(), set_dragon_name(), special_potion(), and transmute_materialname().
| 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_color[NROFATTACKS] |
| EXTERN const char* const resist_plus[NROFATTACKS] |
| EXTERN const char* const resist_save[NROFATTACKS] |