summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/behold.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-15 15:51:32 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-15 23:46:49 -0500
commitb0b6e9bc525e05d682f33311086d506b941a0b3f (patch)
tree6bf777f94f1bbb32709412eb799e52212f9687c1 /crawl-ref/source/behold.cc
parent67c7f8f9dbea5d17bdf1ecca94c33a8ac85a5133 (diff)
downloadcrawl-ref-b0b6e9bc525e05d682f33311086d506b941a0b3f.tar.gz
crawl-ref-b0b6e9bc525e05d682f33311086d506b941a0b3f.zip
Update delay for mesmerisation, slowing, and haste
Also fix a couple compile issues and change over one last case for paralysis
Diffstat (limited to 'crawl-ref/source/behold.cc')
-rw-r--r--crawl-ref/source/behold.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/crawl-ref/source/behold.cc b/crawl-ref/source/behold.cc
index b4835e3090..263affd500 100644
--- a/crawl-ref/source/behold.cc
+++ b/crawl-ref/source/behold.cc
@@ -23,21 +23,17 @@ void player::add_beholder(const monsters* mon)
{
if (!duration[DUR_MESMERISED])
{
- duration[DUR_MESMERISED] = 7;
+ you.set_duration(DUR_MESMERISED, 7, 12);
beholders.push_back(mon->mindex());
mprf(MSGCH_WARN, "You are mesmerised by %s!",
mon->name(DESC_NOCAP_THE).c_str());
}
else
{
- duration[DUR_MESMERISED] += 5;
+ you.increase_duration(DUR_MESMERISED, 5, 12);
if (!beheld_by(mon))
beholders.push_back(mon->mindex());
- }
-
- if (duration[DUR_MESMERISED] > 12)
- duration[DUR_MESMERISED] = 12;
-}
+ }}
// Whether player is mesmerised.
bool player::beheld() const