diff options
author | Implojin <implosionwow@gmail.com> | 2014-02-03 06:49:59 -0600 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-02-03 12:04:11 -0500 |
commit | 3e27d548baddbb5633ac0ed758ea71ee01cdc2d3 (patch) | |
tree | 31b69965eae478eea5b754417af041fcbb488c2a /crawl-ref/source/misc.cc | |
parent | e836774619569fa7c13735bde861484e8cd04800 (diff) | |
download | crawl-ref-3e27d548baddbb5633ac0ed758ea71ee01cdc2d3.tar.gz crawl-ref-3e27d548baddbb5633ac0ed758ea71ee01cdc2d3.zip |
Automatically identify chopped hides.
Add an extra step in _create_monster_hide to automatically identify
chopped dragon and troll hides. Hides are already always generated as +0
uncursed, so identifying them automatically removes both a spoiler and an
unnecessary step of forcing the player to wear or ?identify dragon
armours that they have created specifically to enter a trove.
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 9d01b2b79d..f3fa7c61fc 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -118,6 +118,10 @@ static void _create_monster_hide(const item_def corpse) item_def& item = mitm[o]; do_uncurse_item(item, false); + + // Automatically identify the created hide. + set_ident_flags(item, ISFLAG_IDENT_MASK); + const monster_type montype = static_cast<monster_type>(corpse.orig_monnum); if (!invalid_monster_type(montype) && mons_is_unique(montype)) |