diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-25 09:46:42 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-25 09:46:42 +0000 |
commit | c500c6b3582877a10bd362722bde81eb9b94b917 (patch) | |
tree | bffbb6ae5e21e067a7c985837901d8c1969e9aee /crawl-ref/source/monstuff.cc | |
parent | ec685f4e71424403b322d3971ac68b31821fe7e1 (diff) | |
download | crawl-ref-c500c6b3582877a10bd362722bde81eb9b94b917.tar.gz crawl-ref-c500c6b3582877a10bd362722bde81eb9b94b917.zip |
Added Tiamat, a unique colourshifting draconian with a large
escort. Yes, I know she's a dragon in the source mythos.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1094 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 53c015fef6..22374c4f0c 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -2758,19 +2758,19 @@ static int get_draconian_breath_spell( struct monsters *monster ) default: break; } + } - if (draco_breath != MS_NO_SPELL) - { - // [ds] Check line-of-fire here. It won't happen elsewhere. - bolt beem; - setup_mons_cast(monster, beem, draco_breath); - - fire_tracer(monster, beem); - - if (!mons_should_fire(beem)) - draco_breath = MS_NO_SPELL; - } + if (draco_breath != MS_NO_SPELL) + { + // [ds] Check line-of-fire here. It won't happen elsewhere. + bolt beem; + setup_mons_cast(monster, beem, draco_breath); + + fire_tracer(monster, beem); + + if (!mons_should_fire(beem)) + draco_breath = MS_NO_SPELL; } return (draco_breath); @@ -3391,6 +3391,13 @@ static void handle_monster_move(int i, monsters *monster) } } + if (monster->type == MONS_TIAMAT && one_chance_in(3) ) + { + int cols[] = { RED, WHITE, DARKGREY, GREEN, MAGENTA }; + int newcol = cols[random2(sizeof(cols) / sizeof(cols[0]))]; + monster->colour = newcol; + } + if (handle_enchantment(monster)) continue; |