diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-11 16:13:36 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-11 16:13:36 +0530 |
commit | 89b4e230ad3bdc806ae058722c70441d49f5d9fe (patch) | |
tree | fef3ab5111d75ce5869881542267c9f848e1fe33 /crawl-ref/source/misc.cc | |
parent | 5871154a2e85ccd38874e88dea22083ced372141 (diff) | |
download | crawl-ref-89b4e230ad3bdc806ae058722c70441d49f5d9fe.tar.gz crawl-ref-89b4e230ad3bdc806ae058722c70441d49f5d9fe.zip |
Amulet of stasis, first cut.
Amulets of stasis blocks:
- Teleport self
- Blink in all forms
- Slowing
- Hasting
- Paralysis
- Petrify
- Berserker rage
The amulet auto-ids the first time it triggers.
The amulet does not affect existing conditions (such as an existing Haste spell or an existing post-berserk Slow).
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index f2e27c5174..577221fff8 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -48,6 +48,7 @@ #include "itemname.h" #include "itemprop.h" #include "items.h" +#include "item_use.h" #include "lev-pand.h" #include "macro.h" #include "makeitem.h" @@ -2698,6 +2699,14 @@ bool go_berserk(bool intentional, bool potion) if (!you.can_go_berserk(intentional, potion)) return (false); + if (stasis_blocks_effect(true, + "%s thrums violently and saps your rage.", + 3, + "%s vibrates violently and saps your rage.")) + { + return (false); + } + if (Tutorial.tutorial_left) Tutorial.tut_berserk_counter++; |