diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-04-01 15:08:16 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-04-01 15:17:34 +0200 |
commit | 109f219fdd771b9484dfd586b143d83d61f944ec (patch) | |
tree | c1eeca1557ed07993c33dff385f0189f7d56df3b /crawl-ref/source/player-stats.h | |
parent | 3572979943a2c0a5e3d085d8bff91956360e8fea (diff) | |
download | crawl-ref-109f219fdd771b9484dfd586b143d83d61f944ec.tar.gz crawl-ref-109f219fdd771b9484dfd586b143d83d61f944ec.zip |
Move {lose,restore}_stat to player-stats.cc.
Diffstat (limited to 'crawl-ref/source/player-stats.h')
-rw-r--r-- | crawl-ref/source/player-stats.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crawl-ref/source/player-stats.h b/crawl-ref/source/player-stats.h index 4b222e80fc..8c571b0239 100644 --- a/crawl-ref/source/player-stats.h +++ b/crawl-ref/source/player-stats.h @@ -16,4 +16,18 @@ int stat_modifier(stat_type stat); void jiyva_stat_action(); +bool lose_stat(unsigned char which_stat, unsigned char stat_loss, + bool force = false, const std::string cause = "", + bool see_source = true); +bool lose_stat(unsigned char which_stat, unsigned char stat_loss, + bool force = false, const char* cause = NULL, + bool see_source = true); +bool lose_stat(unsigned char which_stat, unsigned char stat_loss, + const monsters* cause, bool force = false); +bool lose_stat(unsigned char which_stat, unsigned char stat_loss, + const item_def &cause, bool removed, bool force = false); + +bool restore_stat(unsigned char which_stat, unsigned char stat_gain, + bool suppress_msg, bool recovery = false); + #endif |