summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-pick.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-02 11:16:08 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-02 11:16:08 +0000
commit29d2d1be7e3d8ef6096100e6c51f1dde66f3a028 (patch)
treeb87b12baa3908a374a9fffb1a34cc00f2eeed643 /crawl-ref/source/mon-pick.cc
parent8bc4633d7abb19284ab90ee5b7fff09948748b84 (diff)
downloadcrawl-ref-29d2d1be7e3d8ef6096100e6c51f1dde66f3a028.tar.gz
crawl-ref-29d2d1be7e3d8ef6096100e6c51f1dde66f3a028.zip
Implemented "flee towards/into walls" behaviour for rock worms. It
isn't very sophisticated, especially if there's friendly monsters between the worm and the nearest wall, but it's a srart. Added rock worms to the Lair and the Dungeon with the same depth and rarity as trapdoor spiders. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7721 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-pick.cc')
-rw-r--r--crawl-ref/source/mon-pick.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-pick.cc b/crawl-ref/source/mon-pick.cc
index 4f2efd9004..3ba5edfdbe 100644
--- a/crawl-ref/source/mon-pick.cc
+++ b/crawl-ref/source/mon-pick.cc
@@ -661,6 +661,7 @@ int mons_standard_level(int mcls)
case MONS_WRAITH:
case MONS_UNSEEN_HORROR:
case MONS_TRAPDOOR_SPIDER:
+ case MONS_ROCK_WORM:
return 14;
case MONS_ARMOUR_MIMIC:
@@ -948,6 +949,7 @@ int mons_standard_rare(int mcls)
case MONS_EYE_OF_DRAINING:
case MONS_TRAPDOOR_SPIDER:
+ case MONS_ROCK_WORM:
return 33;
case MONS_GIANT_SLUG:
@@ -1385,6 +1387,7 @@ int mons_lair_level(int mcls)
case MONS_OKLOB_PLANT:
case MONS_WYVERN:
case MONS_TRAPDOOR_SPIDER:
+ case MONS_ROCK_WORM:
mlev += 7;
break;
@@ -1522,6 +1525,7 @@ int mons_lair_rare(int mcls)
case MONS_YELLOW_WASP:
case MONS_BUTTERFLY:
case MONS_TRAPDOOR_SPIDER:
+ case MONS_ROCK_WORM:
return 5;
case MONS_GIANT_SPORE: