summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/behold.cc
diff options
context:
space:
mode:
authorDracoOmega <draco_omega@live.com>2014-03-09 11:40:59 -0230
committerDracoOmega <draco_omega@live.com>2014-03-11 20:07:49 -0230
commit90c8bdd2ab93d0ffddaed583e2b4238c93a3a166 (patch)
treeeb8b174b21b32e799bf0943cb0c1b5dd9f38df10 /crawl-ref/source/behold.cc
parentf64fe125f486009a801488e49c332550ce5ea903 (diff)
downloadcrawl-ref-90c8bdd2ab93d0ffddaed583e2b4238c93a3a166.tar.gz
crawl-ref-90c8bdd2ab93d0ffddaed583e2b4238c93a3a166.zip
A couple mesmerisation tweaks
Reduce mermaid/siren mesmerisation power, increase base duration, make breaking mesmerisation grant brief immunity to being remesmerised.
Diffstat (limited to 'crawl-ref/source/behold.cc')
-rw-r--r--crawl-ref/source/behold.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/behold.cc b/crawl-ref/source/behold.cc
index 403f560aed..f7286ebdbb 100644
--- a/crawl-ref/source/behold.cc
+++ b/crawl-ref/source/behold.cc
@@ -50,7 +50,7 @@ void player::add_beholder(const monster* mon, bool axe)
if (!duration[DUR_MESMERISED])
{
- set_duration(DUR_MESMERISED, 7, 12);
+ set_duration(DUR_MESMERISED, random_range(7, 15), 15);
beholders.push_back(mon->mindex());
if (!axe)
{
@@ -60,7 +60,7 @@ void player::add_beholder(const monster* mon, bool axe)
}
else
{
- increase_duration(DUR_MESMERISED, 5, 12);
+ increase_duration(DUR_MESMERISED, random_range(5, 8), 15);
if (!beheld_by(mon))
beholders.push_back(mon->mindex());
}
@@ -123,6 +123,7 @@ void player::clear_beholders()
{
beholders.clear();
duration[DUR_MESMERISED] = 0;
+ you.duration[DUR_MESMERISE_IMMUNE] = random_range(21, 40);
}
// Possibly end mesmerisation if a loud noise happened.
@@ -245,6 +246,7 @@ void player::_removed_beholder(bool quiet)
if (beholders.empty())
{
duration[DUR_MESMERISED] = 0;
+ you.duration[DUR_MESMERISE_IMMUNE] = random_range(21, 40);
if (!quiet)
{
mprf(MSGCH_DURATION,