Crossfire Server, Branches 1.12
R18729
|
Go to the source code of this file.
Data Structures | |
struct | liv |
Macros | |
#define | CHA 4 |
#define | CON 2 |
#define | DEX 1 |
#define | INT 5 |
#define | MAXLEVEL 115 |
#define | NUM_STATS 7 |
#define | POW 6 |
#define | STR 0 |
#define | WIS 3 |
Typedefs | |
typedef struct liv | living |
Variables | |
const char *const | attacks [NROFATTACKS] |
const float | cha_bonus [MAX_STAT+1] |
const int | cleric_chance [MAX_STAT+1] |
const int | dam_bonus [MAX_STAT+1] |
const int | dex_bonus [MAX_STAT+1] |
const int | fear_bonus [MAX_STAT+1] |
const int | learn_spell [] |
const char *const | lose_msg [NUM_STATS] |
const int | max_carry [MAX_STAT+1] |
const char *const | restore_msg [NUM_STATS] |
const char *const | short_stat_name [NUM_STATS] |
const float | speed_bonus [MAX_STAT+1] |
const char *const | statname [NUM_STATS] |
const int | thaco_bonus [MAX_STAT+1] |
const int | turn_bonus [MAX_STAT+1] |
const uint32 | weight_limit [MAX_STAT+1] |
Structure containing object statistics.
Definition in file living.h.
Mostly used by "alive" objects
const char* const attacks[NROFATTACKS] |
Attack type names.
Definition at line 220 of file living.c.
Referenced by did_make_save_item(), and set_dragon_name().
const float cha_bonus[MAX_STAT+1] |
Charisma bonus.
Definition at line 94 of file living.c.
Referenced by query_cost().
const int cleric_chance[MAX_STAT+1] |
Probability of messing a divine spell. Based on wisdom.
Definition at line 160 of file living.c.
Referenced by cast_spell().
const int dam_bonus[MAX_STAT+1] |
dam_bonus, thaco_bonus, max_carry, weight limit all are based on strength.
Definition at line 119 of file living.c.
Referenced by do_throw(), fire_bow(), and fix_object().
const int dex_bonus[MAX_STAT+1] |
Dexterity bonus
Definition at line 104 of file living.c.
Referenced by do_throw(), fire_bow(), and fix_object().
const int fear_bonus[MAX_STAT+1] |
Bonus for fear resistance for players.
Definition at line 170 of file living.c.
Referenced by cast_cone().
const int learn_spell[] |
Probability to learn a spell or skill, based on intelligence or wisdom.
Definition at line 154 of file living.c.
Referenced by learn_skill(), and spellbook_type_apply().
const char* const lose_msg[NUM_STATS] |
Message when a player decreases permanently a stat.
Definition at line 262 of file living.c.
Referenced by change_abil(), and kill_player().
const int max_carry[MAX_STAT+1] |
Definition at line 129 of file living.c.
Referenced by do_throw(), and fix_object().
const char* const restore_msg[NUM_STATS] |
Message when a player has a stat restored.
Definition at line 240 of file living.c.
Referenced by god_intervention(), and potion_type_apply().
const char* const short_stat_name[NUM_STATS] |
Short name of stats.
Definition at line 278 of file living.c.
Referenced by describe_item(), key_roll_stat(), ring_desc(), and swap_stat().
const float speed_bonus[MAX_STAT+1] |
speed_bonus, which uses dex as its stat
Definition at line 109 of file living.c.
Referenced by do_throw(), and fix_object().
const char* const statname[NUM_STATS] |
const int thaco_bonus[MAX_STAT+1] |
THAC0 bonus
Definition at line 124 of file living.c.
Referenced by do_throw(), fire_bow(), and fix_object().
const int turn_bonus[MAX_STAT+1] |
Bonus for spell duration (holyword and turn undead), bonus for resistance to these spells.
Definition at line 165 of file living.c.
Referenced by cast_cone(), and hit_with_one_attacktype().
The absolute most a character can carry - a character can't pick stuff up if it would put him above this limit.
Value is in grams, so we don't need to do conversion later
These limits are probably overly generous, but being there were no values before, you need to start someplace.
Definition at line 143 of file living.c.
Referenced by do_throw(), esrv_update_stats(), pick_up_object(), and sell_item().