summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-mis.h
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-10 11:59:16 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-10 11:59:16 +0000
commit5e333ce7bdf88c826dfc0a8a8fa0cbba8b110167 (patch)
tree0b2046da98e1c80e489a6de62f2187a05d705bb6 /crawl-ref/source/spl-mis.h
parenta9561bf49af71b98db45679d7489d483af7c2266 (diff)
downloadcrawl-ref-5e333ce7bdf88c826dfc0a8a8fa0cbba8b110167.tar.gz
crawl-ref-5e333ce7bdf88c826dfc0a8a8fa0cbba8b110167.zip
Changed weights of the brands a chaos weapon might simulate and the weight of
the various chaos effects, to make chaos brand less powerful. Added berserk and miscast effects for chaos effects, plus chaos weapons will occasionally give a message-only miscast effect if it would otherwise have done nothing. Added several effects that have a chance of happening to an attacker every time it uses a chaos brand/AF_CHAOS: dropping through temporary a shaft, having the stairs move out from under them, the weapon making a loud noise. Monsters killed by a chaos weapon/AF_CHAOS have a chance of immediately turning into a zombie (assuming the monster didn't leave a corpse; chaos effects don't (yet) use up corpses). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7804 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-mis.h')
-rw-r--r--crawl-ref/source/spl-mis.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-mis.h b/crawl-ref/source/spl-mis.h
index e9363e6597..781e999795 100644
--- a/crawl-ref/source/spl-mis.h
+++ b/crawl-ref/source/spl-mis.h
@@ -43,13 +43,16 @@ class MiscastEffect
public:
MiscastEffect(actor* _target, int _source, spell_type _spell, int _pow,
int _fail, std::string _cause = "",
- nothing_happens_when_type _nothing_happens = NH_DEFAULT);
+ nothing_happens_when_type _nothing_happens = NH_DEFAULT,
+ std::string _hand_str = "", bool _can_plural_hand = true);
MiscastEffect(actor* _target, int _source, spschool_flag_type _school,
int _level, std::string _cause,
- nothing_happens_when_type _nothing_happens = NH_DEFAULT);
+ nothing_happens_when_type _nothing_happens = NH_DEFAULT,
+ std::string _hand_str = "", bool _can_plural_hand = true);
MiscastEffect(actor* _target, int _source, spschool_flag_type _school,
int _pow, int _fail, std::string _cause,
- nothing_happens_when_type _nothing_happens = NH_DEFAULT);
+ nothing_happens_when_type _nothing_happens = NH_DEFAULT,
+ std::string _hand_str = "", bool _can_plural_hand = true);
void do_miscast();
@@ -75,6 +78,9 @@ private:
nothing_happens_when_type nothing_happens_when;
+ std::string hand_str;
+ bool can_plural_hand;
+
int kill_source;
actor* act_source;