diff options
author | Charles Otto <ottochar@gmail.com> | 2009-11-14 23:14:47 -0500 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-11-15 23:46:22 -0500 |
commit | 08a05ceabdeee2bdb7f6257b9e5e5ae845159ab2 (patch) | |
tree | 01aece260d79b73adf1d5746c3b74af0f6198827 /crawl-ref/source/player.cc | |
parent | 69950a6dbd369a11ff0b4d0438aaf07890b57b29 (diff) | |
download | crawl-ref-08a05ceabdeee2bdb7f6257b9e5e5ae845159ab2.tar.gz crawl-ref-08a05ceabdeee2bdb7f6257b9e5e5ae845159ab2.zip |
Change DUR_SLEEP and DUR_BUILDING_RAGE durations
Make DUR_SLEEP and DUR_BULIDING_RAGE durations proportional to baseline
delay (well it hardly matters for DUR_BUILDING_RAGE).
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 1ea762be1a..22e4717f91 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -7016,6 +7016,7 @@ void player::hibernate(int) // Do this *after* redrawing the view, or viewwindow() will no-op. duration[DUR_SLEEP] = 3 + random2avg(5, 2); + duration[DUR_SLEEP] *= BASELINE_DELAY; } void player::put_to_sleep(int power) @@ -7033,6 +7034,7 @@ void player::put_to_sleep(int power) // As above, do this after redraw. duration[DUR_SLEEP] = 5 + random2avg(power / 10, 5); + duration[DUR_SLEEP] *= BASELINE_DELAY; } void player::awake() |