… | |
… | |
22 | */ |
22 | */ |
23 | |
23 | |
24 | #ifndef LIVING_H |
24 | #ifndef LIVING_H |
25 | #define LIVING_H |
25 | #define LIVING_H |
26 | |
26 | |
|
|
27 | // corresponds to some arrays in common/living.C |
27 | enum { |
28 | enum { |
28 | STR, |
29 | STR, |
29 | DEX, |
30 | DEX, |
30 | CON, |
31 | CON, |
31 | INT, |
32 | INT, |
… | |
… | |
59 | extern const uint32 weight_limit[MAX_STAT + 1]; |
60 | extern const uint32 weight_limit[MAX_STAT + 1]; |
60 | extern const int cleric_chance[MAX_STAT + 1]; |
61 | extern const int cleric_chance[MAX_STAT + 1]; |
61 | extern const int fear_bonus[MAX_STAT + 1]; |
62 | extern const int fear_bonus[MAX_STAT + 1]; |
62 | |
63 | |
63 | /* Mostly used by "alive" objects */ |
64 | /* Mostly used by "alive" objects */ |
64 | ACC_CLASS (living) |
65 | INTERFACE_CLASS (living) |
65 | struct living |
66 | struct living |
66 | { |
67 | { |
67 | sint64 ACC (RW, exp); /* Experience. */ |
68 | sint64 ACC (RW, exp); /* Experience. */ |
68 | sint32 ACC (RW, food); /* How much food in stomach. 0 = starved. */ |
69 | sint32 ACC (RW, food); /* How much food in stomach. 0 = starved. */ |
69 | |
70 | |