1 #pragma once
2 
3 #include "duration-type.h"
4 #include "stat-type.h"
5 
6 enum stat_desc_type
7 {
8     SD_NAME,
9     SD_LOSS,
10     SD_DECREASE,
11     SD_INCREASE,
12     NUM_STAT_DESCS
13 };
14 
15 const char* stat_desc(stat_type stat, stat_desc_type desc);
16 
17 bool attribute_increase();
18 
19 void modify_stat(stat_type which_stat, int amount, bool suppress_msg);
20 
21 void notify_stat_change(stat_type which_stat, int amount, bool suppress_msg);
22 void notify_stat_change();
23 
24 void jiyva_stat_action();
25 
26 int stat_loss_roll();
27 bool lose_stat(stat_type which_stat, int stat_loss, bool force = false);
28 
29 stat_type random_lost_stat();
30 bool restore_stat(stat_type which_stat, int stat_gain,
31                   bool suppress_msg, bool recovery = false);
32 
33 duration_type stat_zero_duration(stat_type stat);
34 bool have_stat_zero();
35 void update_stat_zero(int time);
36 
37 int innate_stat(stat_type s);
38