From 0da3322c570c3e94859b94fe3bc747c01d1e1364 Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Sun, 15 Nov 2009 14:39:35 -0500 Subject: On second thought abstract increasing/setting durations a little. Add (and use) player methods for setting/increasing durations. --- crawl-ref/source/player.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/player.h') 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; -- cgit v1.2.3-54-g00ecf