1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
#ifndef PLAYER_STATS_H
#define PLAYER_STATS_H
enum stat_desc_type
{
SD_NAME,
SD_LOSS,
SD_DECREASE,
SD_INCREASE,
NUM_STAT_DESCS
};
const char* stat_desc(stat_type stat, stat_desc_type desc);
void attribute_increase();
void modify_stat(stat_type which_stat, char amount, bool suppress_msg,
const char* cause, bool see_source = true);
void notify_stat_change(stat_type which_stat, char amount, bool suppress_msg,
const char* cause, bool see_source = true);
void notify_stat_change(stat_type which_stat, char amount, bool suppress_msg,
const item_def &cause, bool removed = false);
void notify_stat_change(const char* cause);
void jiyva_stat_action();
bool lose_stat(stat_type which_stat, unsigned char stat_loss,
bool force = false, const std::string cause = "",
bool see_source = true);
bool lose_stat(stat_type which_stat, unsigned char stat_loss,
bool force = false, const char* cause = NULL,
bool see_source = true);
bool lose_stat(stat_type which_stat, unsigned char stat_loss,
const monsters* cause, bool force = false);
bool lose_stat(stat_type which_stat, unsigned char stat_loss,
const item_def &cause, bool removed, bool force = false);
bool restore_stat(stat_type which_stat, unsigned char stat_gain,
bool suppress_msg, bool recovery = false);
void update_stat_zero();
#endif
|