summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player-stats.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-04-01 18:57:21 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-04-01 19:46:03 +0200
commitda044bc82eddec7b6597b51a4708a742d0f430c3 (patch)
tree3beaea4a98875fee930fbfd36638e1c9206ae81a /crawl-ref/source/player-stats.h
parent2362f5aa10ec7d8f87db98730282bb6095b44f87 (diff)
downloadcrawl-ref-da044bc82eddec7b6597b51a4708a742d0f430c3.tar.gz
crawl-ref-da044bc82eddec7b6597b51a4708a742d0f430c3.zip
Make stat change handling and normalization more sane.
Stats are now not normalized when printed, but when changed. Also fix some argument types, and some related cleanup.
Diffstat (limited to 'crawl-ref/source/player-stats.h')
-rw-r--r--crawl-ref/source/player-stats.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/crawl-ref/source/player-stats.h b/crawl-ref/source/player-stats.h
index 8be36be1d9..9bfc6efb81 100644
--- a/crawl-ref/source/player-stats.h
+++ b/crawl-ref/source/player-stats.h
@@ -16,21 +16,20 @@ int stat_modifier(stat_type stat);
void jiyva_stat_action();
-bool lose_stat(unsigned char which_stat, unsigned char stat_loss,
+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(unsigned char which_stat, unsigned char stat_loss,
+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(unsigned char which_stat, unsigned char stat_loss,
+bool lose_stat(stat_type which_stat, unsigned char stat_loss,
const monsters* cause, bool force = false);
-bool lose_stat(unsigned char which_stat, unsigned char stat_loss,
+bool lose_stat(stat_type 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 restore_stat(stat_type which_stat, unsigned char stat_gain,
bool suppress_msg, bool recovery = false);
-void normalize_stat(stat_type stat);
void modify_all_stats(int strmod, int intmod, int dexmod);
#endif