summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-15 00:01:58 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-15 00:06:49 +0100
commitf5ad2d06f0bac4de0a61d97b8887b70616006969 (patch)
tree58296a0761e58ecc58107a6ea530fbbd7ccccd84 /crawl-ref/source/describe.cc
parent08b32044b9fe15e1026a463da9d3d4cad19b3942 (diff)
downloadcrawl-ref-f5ad2d06f0bac4de0a61d97b8887b70616006969.tar.gz
crawl-ref-f5ad2d06f0bac4de0a61d97b8887b70616006969.zip
Make mimics hold the item they're mimicking, instead of fragile hacks with saving RNG state.
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index e77ff17982..83ea1d2e2b 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -2802,9 +2802,7 @@ void get_monster_db_desc(const monsters& mons, describe_info &inf,
// For undetected mimics describe mimicked item instead.
if (!force_seen && mons_is_unknown_mimic(&mons))
{
- item_def item;
- get_mimic_item(&mons, item);
- get_item_desc(item, inf);
+ get_item_desc(get_mimic_item(&mons), inf);
return;
}
@@ -2812,12 +2810,6 @@ void get_monster_db_desc(const monsters& mons, describe_info &inf,
inf.title = mons.full_name(DESC_CAP_A, true);
std::string db_name = mons.base_name(DESC_DBNAME, force_seen);
- if (mons_is_mimic(mons.type) && mons.type != MONS_GOLD_MIMIC)
- {
- db_name = "mimic";
- if (inf.title.empty())
- inf.title = "A mimic";
- }
// This is somewhat hackish, but it's a good way of over-riding monsters'
// descriptions in Lua vaults by using MonPropsMarker. This is also the