summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-22 07:36:30 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-22 07:36:30 +0000
commitae497643139b2c449908d215f4b669bf06977a7e (patch)
tree7941b984adedd5c2b86bec231e51de2061cca6dc /crawl-ref/source/acr.cc
parent6cdd66c768ef483fcaec5f6b66bc1835b5797eda (diff)
downloadcrawl-ref-ae497643139b2c449908d215f4b669bf06977a7e.tar.gz
crawl-ref-ae497643139b2c449908d215f4b669bf06977a7e.zip
If &H is a repeated command then increase HP all at one go, skipping the delay
of repeatedly updating the screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8684 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 050ccd29f4..a990d8daaa 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -641,7 +641,15 @@ static void _do_wizard_command(int wiz_command, bool silent_fail)
you.duration[DUR_MESMERISED] = 0;
you.mesmerised_by.clear();
}
- inc_hp( 10, true );
+ // If we're repeating &H then do the HP increase all at once.
+ tmp = 10;
+ if (crawl_state.cmd_repeat_goal > 0)
+ {
+ tmp *= crawl_state.cmd_repeat_goal;
+ crawl_state.cancel_cmd_repeat();
+ }
+
+ inc_hp( tmp, true );
// intentional fall-through
case 'h':
you.rotting = 0;