Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

Player Stats


Detailed Description

Player stats. The intrinsic values of these are stored in w->plr.intrinsic, and the modified values are stored in w->plr.extrinsic. The definitions here are indices into either of those arrays. The first five stats - STAT_STRENGTH, STAT_DEXTERITY, STAT_TOUGHNESS, STAT_MANA, and STAT_WILLPOWER - are the 'base stats'.

See also:
player::intrinsic player::extrinsic


Defines

#define NUM_STATS   22
#define STAT_STRENGTH   0
#define STAT_DEXTERITY   1
#define STAT_TOUGHNESS   2
#define STAT_MANA   3
#define STAT_WILLPOWER   4
#define STAT_DV   5
#define STAT_PV   6
#define STAT_TOHIT   7
#define STAT_DAMAGE_MIN   8
#define STAT_DAMAGE_MAX   9
#define STAT_MISSILEDAM_MIN   10
#define STAT_MISSILEDAM_MAX   11
#define STAT_MISSILE_TOHIT   12
#define STAT_LIGHTRADIUS   13
#define STAT_SPEED   14
#define STAT_REGEN   15
#define STAT_PPREGEN   16
#define STAT_MISSILES   17
#define STAT_FLAGS   18
#define STAT_FLAG_SEEINVIS   1
#define STAT_FLAG_RESIST_POISON   2
#define STAT_FLAG_CONFUSED   4
#define STAT_FLAG_HALLUCINATING   8
#define STAT_FLAG_PARALYZED   16
#define STAT_FLAG_DRAIN   32
#define STAT_FLAG_ENTANGLED   64
#define STAT_FLAG_NUMB   128
#define STAT_FLAG_TIMER   256
#define STAT_FLAG_SLIPPERY   512
#define STAT_DIGESTION   19
#define STAT_WEAPON_TYPE   20
#define STAT_COMPONENTS   21
#define STAT_COMPONENT_STAFF   1
#define STAT_COMPONENT_DAGGER   2
#define STAT_COMPONENT_SNAKETOOTH   4
#define STAT_COMPONENT_BLANKSCROLL   8
#define STAT_COMPONENT_GLOVES   16
#define STAT_COMPONENT_AM_YENDOR   32


Define Documentation

#define NUM_STATS   22
 

Definition at line 20 of file player.h.

Referenced by append_armor_description(), init_player(), and update_player().

#define STAT_COMPONENT_AM_YENDOR   32
 

Definition at line 59 of file player.h.

#define STAT_COMPONENT_BLANKSCROLL   8
 

Definition at line 57 of file player.h.

#define STAT_COMPONENT_DAGGER   2
 

Definition at line 55 of file player.h.

Referenced by spell_confusion().

#define STAT_COMPONENT_GLOVES   16
 

Definition at line 58 of file player.h.

Referenced by spell_confusion().

#define STAT_COMPONENT_SNAKETOOTH   4
 

Definition at line 56 of file player.h.

#define STAT_COMPONENT_STAFF   1
 

Definition at line 54 of file player.h.

#define STAT_COMPONENTS   21
 

Definition at line 53 of file player.h.

Referenced by spell_confusion().

#define STAT_DAMAGE_MAX   9
 

Definition at line 31 of file player.h.

Referenced by append_armor_description(), char_info(), plr_attack(), and update_player().

#define STAT_DAMAGE_MIN   8
 

Definition at line 30 of file player.h.

Referenced by append_armor_description(), char_info(), plr_attack(), and update_player().

#define STAT_DEXTERITY   1
 

Definition at line 23 of file player.h.

Referenced by char_info(), plr_walk(), potion_numbness_effect(), spell_adrenaline_high_effect(), and update_player().

#define STAT_DIGESTION   19
 

Definition at line 51 of file player.h.

Referenced by init_player(), and timepass().

#define STAT_DV   5
 

Definition at line 27 of file player.h.

Referenced by append_armor_description(), char_info(), monst_attack_plr(), monst_attack_type(), monst_hit_plr(), spell_adrenaline_high_effect(), spell_adrenaline_low_effect(), and update_player().

#define STAT_FLAG_CONFUSED   4
 

Definition at line 43 of file player.h.

Referenced by cast_spell(), draw(), and plr_walk().

#define STAT_FLAG_DRAIN   32
 

Definition at line 46 of file player.h.

Referenced by timepass().

#define STAT_FLAG_ENTANGLED   64
 

Definition at line 47 of file player.h.

Referenced by plr_run(), plr_walk(), and webspinner_cower().

#define STAT_FLAG_HALLUCINATING   8
 

Definition at line 44 of file player.h.

Referenced by draw(), draw_tile(), monstname(), and study_spell().

#define STAT_FLAG_NUMB   128
 

Definition at line 48 of file player.h.

Referenced by draw(), plr_takedamage(), potion_numbness_effect(), and spell_confusion().

#define STAT_FLAG_PARALYZED   16
 

Definition at line 45 of file player.h.

Referenced by draw(), and plr_move().

#define STAT_FLAG_RESIST_POISON   2
 

Definition at line 42 of file player.h.

#define STAT_FLAG_SEEINVIS   1
 

Definition at line 41 of file player.h.

Referenced by player_can_see().

#define STAT_FLAG_SLIPPERY   512
 

Definition at line 50 of file player.h.

Referenced by plr_walk().

#define STAT_FLAG_TIMER   256
 

Definition at line 49 of file player.h.

Referenced by timepass().

#define STAT_FLAGS   18
 

Definition at line 40 of file player.h.

Referenced by cast_spell(), draw(), draw_tile(), monstname(), player_can_see(), plr_move(), plr_run(), plr_takedamage(), plr_walk(), potion_numbness_effect(), spell_confusion(), study_spell(), timepass(), and webspinner_cower().

#define STAT_LIGHTRADIUS   13
 

Definition at line 35 of file player.h.

Referenced by calc_light_tile(), init_player(), and update_player().

#define STAT_MANA   3
 

Definition at line 25 of file player.h.

Referenced by char_info(), init_player(), timepass(), and update_player().

#define STAT_MISSILE_TOHIT   12
 

Definition at line 34 of file player.h.

Referenced by append_armor_description(), throw_item(), and update_player().

#define STAT_MISSILEDAM_MAX   11
 

Definition at line 33 of file player.h.

Referenced by append_armor_description(), throw_item(), and update_player().

#define STAT_MISSILEDAM_MIN   10
 

Definition at line 32 of file player.h.

Referenced by append_armor_description(), and throw_item().

#define STAT_MISSILES   17
 

Definition at line 39 of file player.h.

Referenced by throw_item().

#define STAT_PPREGEN   16
 

Definition at line 38 of file player.h.

#define STAT_PV   6
 

Definition at line 28 of file player.h.

Referenced by append_armor_description(), char_info(), monst_attack_plr(), monst_attack_type(), plr_takedamage(), and update_player().

#define STAT_REGEN   15
 

Definition at line 37 of file player.h.

Referenced by timepass().

#define STAT_SPEED   14
 

Definition at line 36 of file player.h.

Referenced by char_info(), init_player(), spell_adrenaline_high_effect(), spell_adrenaline_low_effect(), timepass(), and update_player().

#define STAT_STRENGTH   0
 

Definition at line 22 of file player.h.

Referenced by char_info(), potion_numbness_expire(), spell_adrenaline_high_effect(), spell_adrenaline_low_effect(), and update_player().

#define STAT_TOHIT   7
 

Definition at line 29 of file player.h.

Referenced by append_armor_description(), plr_attack(), and update_player().

#define STAT_TOUGHNESS   2
 

Definition at line 24 of file player.h.

Referenced by char_info(), init_player(), potion_numbness_expire(), and update_player().

#define STAT_WEAPON_TYPE   20
 

Definition at line 52 of file player.h.

Referenced by award_mark(), init_skills(), weapon_skill_attack(), and weapon_skill_damage().

#define STAT_WILLPOWER   4
 

Definition at line 26 of file player.h.

Referenced by char_info(), init_player(), study_spell(), and update_player().


Generated on Thu May 20 13:12:15 2004 for CalcRogue by doxygen 1.3.6