summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/kills.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-09-05 15:47:34 +0000
committerRaphael Langella <raphael.langella@gmail.com>2011-09-05 23:20:17 +0200
commit9e666ba7fcee19e20652fa88576ac7c1e1a3e67d (patch)
tree4fe93961fa2d5d2400b0e2e3e010226b9786b695 /crawl-ref/source/kills.cc
parent15260ea622839fad86cb77931cc83b3d30f507a8 (diff)
downloadcrawl-ref-9e666ba7fcee19e20652fa88576ac7c1e1a3e67d.tar.gz
crawl-ref-9e666ba7fcee19e20652fa88576ac7c1e1a3e67d.zip
Merge all the item mimics into a single monster type.
Now feature and item mimics have both the same name internally (and use MF_NAME_ADJECTIVE). I hacked Mon_Name_Cache to allow creating them with &M, but partial match doesn't work. You have to fully type "item mimic" or "feature mimic". Naming is changed a bit and use the item name (DESC_BASENAME). Examples: a - ([) A storm dragon armour mimic b - (!) A potion mimic c - ($) A pile of gold mimic Adding new item types is trivial now.
Diffstat (limited to 'crawl-ref/source/kills.cc')
-rw-r--r--crawl-ref/source/kills.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/crawl-ref/source/kills.cc b/crawl-ref/source/kills.cc
index d665aa988a..51dc97d472 100644
--- a/crawl-ref/source/kills.cc
+++ b/crawl-ref/source/kills.cc
@@ -661,10 +661,6 @@ kill_monster_desc::kill_monster_desc(const monster* mon)
if (mon->is_shapeshifter())
modifier = M_SHAPESHIFTER;
-
- // XXX: Ugly hack - merge all mimics into one mimic record.
- if (monnum >= MONS_GOLD_MIMIC && monnum <= MONS_POTION_MIMIC)
- monnum = MONS_WEAPON_MIMIC;
}
void kill_monster_desc::save(writer& outf) const