diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-13 14:51:31 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-13 14:54:40 +1000 |
commit | 6c05a8337e26b40f1cfebbf14cbc00ab0e2b6c8b (patch) | |
tree | bdeeadb24ca7a72c465ab32560f96ba5a95d4b16 /crawl-ref/source/mon-cast.cc | |
parent | be0551c2205ac189be5558447625642553c80dd3 (diff) | |
download | crawl-ref-6c05a8337e26b40f1cfebbf14cbc00ab0e2b6c8b.tar.gz crawl-ref-6c05a8337e26b40f1cfebbf14cbc00ab0e2b6c8b.zip |
New monster spell: Sleep. Give sleep to Aizul.
Unlike Ensorcelled Hibernation, Sleep checks MR only, rather than MR and
cold resistance. It also does not check monsters having SLEEP_WEARY. It
will not act on something that is already sleep.
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r-- | crawl-ref/source/mon-cast.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc index abf7869571..83f3fff30f 100644 --- a/crawl-ref/source/mon-cast.cc +++ b/crawl-ref/source/mon-cast.cc @@ -286,6 +286,11 @@ bolt mons_spells( monsters *mons, spell_type spell_cast, int power, beam.is_beam = true; break; + case SPELL_SLEEP: + beam.flavour = BEAM_SLEEP; + beam.is_beam = true; + break; + case SPELL_POLYMORPH_OTHER: beam.flavour = BEAM_POLYMORPH; beam.is_beam = true; @@ -730,6 +735,8 @@ bool setup_mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast, if (spell_cast == SPELL_TELEPORT_SELF) pbolt.ench_power = 2000; + else if (spell_cast == SPELL_SLEEP) + pbolt.ench_power = 6 * monster->hit_dice; pbolt.beam_source = monster_index(monster); |