From f16aa92587a0f06bce2bcd70e0b364e0947cb8ca Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 11 Jul 2008 04:32:31 +0000 Subject: Properly identify the brands of thrown missiles, so that e.g. javelins that turn into bolts of ice when thrown will be identified as javelins of ice. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6490 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 9eea4c276c..b71d76e7e4 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -2350,6 +2350,9 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, if (wepClass == OBJ_MISSILES) { + // Identify ammo type. + set_ident_flags(you.inv[throw_2], ISFLAG_KNOW_TYPE); + switch (wepType) { case MI_LARGE_ROCK: -- cgit v1.2.3-54-g00ecf