summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-22 22:26:36 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-22 22:26:36 +0000
commit6ada0ad30b4a6a9374e7255cea9725f16a68ab3f (patch)
tree1b38493ca37695f9057bfd5eeacdf6143f346a19
parent49857c60dad6dd03a0f83ef4839304273f1e418c (diff)
downloadcrawl-ref-6ada0ad30b4a6a9374e7255cea9725f16a68ab3f.tar.gz
crawl-ref-6ada0ad30b4a6a9374e7255cea9725f16a68ab3f.zip
Fixed the bug of mimics with no name.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@81 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/monstuff.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 1f51515f11..826a8f3505 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -120,6 +120,11 @@ void get_mimic_item( const struct monsters *mimic, item_def &item )
case MONS_ARMOUR_MIMIC:
item.base_type = OBJ_ARMOUR;
item.sub_type = (59 * mimic->x + 79 * mimic->y) % NUM_ARMOURS;
+ // FIXME: Remove fudges once these armours are completely implemented.
+ if (item.sub_type == ARM_STUDDED_LEATHER_ARMOUR)
+ item.sub_type = ARM_CRYSTAL_PLATE_MAIL;
+ else if (item.sub_type == ARM_CAP)
+ item.sub_type = ARM_MOTTLED_DRAGON_ARMOUR;
prop %= 100;