diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-14 02:23:59 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-14 02:23:59 +0000 |
commit | d8e6562b8929ce087fc55ce19fca1716a6d68b0a (patch) | |
tree | e46534565f5d9176042c0cded4beef19692b0059 /crawl-ref/source/mon-util.h | |
parent | 5669e0adf581fd18cebab4b0b50b1280c693d971 (diff) | |
download | crawl-ref-d8e6562b8929ce087fc55ce19fca1716a6d68b0a.tar.gz crawl-ref-d8e6562b8929ce087fc55ce19fca1716a6d68b0a.zip |
Got rid of setup_dragon(), moving it's functionality into setup_mons_cast() and
mons_spells(), and added the new spells Fire Breath, Cold Breath and Draconian
Breath to trigger that functionality. Also added the new spell Acid Splash to
replace monstuff's _plant_spit(), and Sticky Flame Splash, which is exactly the
same as Sticky Flame except for the messages it gives and when it makes noise
(monsters now spit sticky flame instead of breathing it). All things that were
handled as monster special abilities are still handled as such, and were just
changed to manually invoke mons_cast().
The spell messages in dat/database/monspell.txt can now take advantage of a new
substitution, "@target@", which is expanded into the spell's target.
Added the spell flags SPFLAG_INNATE, for monster spells which are innate even
when the monster is a priest or wizard, and which can be used by them when
silenced, and SPFLAG_NOISY, for spells which produce noise even when used by
monsters other than priests or wizards.
Added the monster class flags M_SPELL_NO_SILENT, for monsters which aren't
wizards or priests, yet still can't use spells if silenced (currently only used
for Geryon blowing his horn to summon beasts), and M_NOISY_SPELLS, for monsters
which can cast spells when silenced, yet whose spells make noise when not
silenced (currently only used by curse skulls and Murray).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7828 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.h')
-rw-r--r-- | crawl-ref/source/mon-util.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.h b/crawl-ref/source/mon-util.h index 7777dc6dda..01eb8b8545 100644 --- a/crawl-ref/source/mon-util.h +++ b/crawl-ref/source/mon-util.h @@ -142,7 +142,15 @@ enum mons_class_flags M_SPECIAL_ABILITY = (1<<26), // XXX: eventually make these spells? M_NO_REGEN = (1<<27), // cannot regenerate - M_NO_SKELETON = (1<<29), // boneless corpses + M_SPELL_NO_SILENT = (1<<28), // cannot cast spells when silenced, + // even though it's not a priest or + // wizard + + M_NOISY_SPELLS = (1<<29), // can cast spells when silenced, but + // casting makes noise when not + // silenced + + M_NO_SKELETON = (1<<30), // boneless corpses M_NO_EXP_GAIN = (1<<31) // worth 0 xp }; |