diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-15 14:39:35 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-15 23:46:45 -0500 |
commit | 0da3322c570c3e94859b94fe3bc747c01d1e1364 (patch) | |
tree | 88d0cc79fac060d6f02046eab87dece4c9286c8c /crawl-ref/source/player.h | |
parent | 01e5123d492ba9292a52960031c18d8069d25d83 (diff) | |
download | crawl-ref-0da3322c570c3e94859b94fe3bc747c01d1e1364.tar.gz crawl-ref-0da3322c570c3e94859b94fe3bc747c01d1e1364.zip |
On second thought abstract increasing/setting durations a little.
Add (and use) player methods for setting/increasing durations.
Diffstat (limited to 'crawl-ref/source/player.h')
-rw-r--r-- | crawl-ref/source/player.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/player.h b/crawl-ref/source/player.h index c435b9d608..79ed2c1ed2 100644 --- a/crawl-ref/source/player.h +++ b/crawl-ref/source/player.h @@ -526,6 +526,13 @@ public: void del_gold(int delta); void set_gold(int amount); + void increase_duration(duration_type dur, int turns, int cap = 0, + const char* msg = NULL); + void set_duration(duration_type dur, int turns, int cap = 0, + const char *msg = NULL); + + + protected: void _removed_beholder(); bool _possible_beholder(const monsters *mon) const; |