Crossfire Server, Trunk  R21024
living.h
Go to the documentation of this file.
1 
6 #ifndef LIVING_H
7 #define LIVING_H
8 
10 enum {
11  STRENGTH = 0,
12  DEXTERITY = 1,
14  WISDOM = 3,
15  CHARISMA = 4,
17  POWER = 6,
18  NUM_STATS = 7
19 };
20 
22 #define MAXLEVEL 115
23 
24 extern const char *const attacks[NROFATTACKS];
25 
26 extern const char *const restore_msg[NUM_STATS];
27 extern const char *const statname[NUM_STATS];
28 extern const char *const short_stat_name[NUM_STATS];
29 extern const char *const drain_msg[NUM_STATS];
30 extern const char *const lose_msg[NUM_STATS];
31 
35 typedef struct liv {
49 } living;
50 
51 int get_cha_bonus(int stat);
52 int get_dex_bonus(int stat);
53 int get_thaco_bonus(int stat);
54 uint32_t get_weight_limit(int stat);
55 int get_learn_spell(int stat);
56 int get_cleric_chance(int stat);
57 int get_turn_bonus(int stat);
58 int get_dam_bonus(int stat);
59 float get_speed_bonus(int stat);
60 int get_fear_bonus(int stat);
61 
62 #endif /* LIVING_H */
int get_learn_spell(int stat)
Definition: living.c:2285
int8_t Int
Definition: living.h:36
int8_t ac
Definition: living.h:38
struct liv living
int get_dex_bonus(int stat)
Definition: living.c:2273
int get_cha_bonus(int stat)
Definition: living.c:2269
Definition: living.h:14
int16_t maxgrace
Definition: living.h:45
Definition: living.h:17
const char *const statname[NUM_STATS]
Definition: living.c:183
int64_t exp
Definition: living.h:47
Definition: living.h:35
int16_t sp
Definition: living.h:42
const char *const restore_msg[NUM_STATS]
Definition: living.c:150
int16_t maxsp
Definition: living.h:43
int8_t Con
Definition: living.h:36
int16_t hp
Definition: living.h:40
uint32_t get_weight_limit(int stat)
Definition: living.c:2281
int get_turn_bonus(int stat)
Definition: living.c:2293
int16_t maxhp
Definition: living.h:41
signed short int16_t
Definition: win32.h:160
int8_t Wis
Definition: living.h:36
int16_t dam
Definition: living.h:46
const char *const short_stat_name[NUM_STATS]
Definition: living.c:194
int8_t Cha
Definition: living.h:36
int get_thaco_bonus(int stat)
Definition: living.c:2277
int8_t luck
Definition: living.h:39
int get_cleric_chance(int stat)
Definition: living.c:2289
int8_t wc
Definition: living.h:37
signed __int64 int64_t
Definition: win32.h:168
int8_t Str
Definition: living.h:36
unsigned int uint32_t
Definition: win32.h:162
float get_speed_bonus(int stat)
Definition: living.c:2301
int get_fear_bonus(int stat)
Definition: living.c:2305
int16_t grace
Definition: living.h:44
signed char int8_t
Definition: win32.h:158
const char *const lose_msg[NUM_STATS]
Definition: living.c:172
int8_t Dex
Definition: living.h:36
#define NROFATTACKS
Definition: attack.h:17
signed int int32_t
Definition: win32.h:159
int8_t Pow
Definition: living.h:36
int get_dam_bonus(int stat)
Definition: living.c:2297
const char *const drain_msg[NUM_STATS]
Definition: living.c:139
const char *const attacks[NROFATTACKS]
Definition: living.c:129
int32_t food
Definition: living.h:48