diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-22 10:42:23 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-22 10:42:23 +0000 |
commit | 0650cb7c5d9f3538143bfdd1c4a75c27dc86e17c (patch) | |
tree | 0e570e3927d0f4a9a6c015dba864da902aaecd2c /crawl-ref/source/effects.cc | |
parent | 040d4ec8b58e1e9f725d57fdffb5af422177c0c5 (diff) | |
download | crawl-ref-0650cb7c5d9f3538143bfdd1c4a75c27dc86e17c.tar.gz crawl-ref-0650cb7c5d9f3538143bfdd1c4a75c27dc86e17c.zip |
Add new unique Gastronok (slug wizard), via a patch by bookofjude and some
tweaks to make his speech and casting work correctly. Turns up around the same
time as Erolcha and Grum.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10774 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r-- | crawl-ref/source/effects.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 83a048b643..f8d9ba6a3f 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -764,6 +764,27 @@ void direct_effect(monsters *source, spell_type spell, damage_taken = 7 + random2avg(11, 2); break; + case SPELL_AIRSTRIKE: + if (def) + simple_monster_message(def, " is struck by the twisting air!"); + else + mpr("The air twists around and strikes you!"); + + pbolt.name = "airstrike"; + pbolt.flavour = BEAM_MISSILE; + pbolt.aux_source = "by the air"; + damage_taken = 8 + random2(random2(4) + (random2(source->hit_dice*5) / 6) + + (random2(source->hit_dice*5) / 7)); + + if (defender->flight_mode() != FL_NONE) + { + damage_taken *= 3; + damage_taken /= 2; + } + + damage_taken -= defender->armour_class(); + break; + case SPELL_BRAIN_FEED: if (!def) { |