diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-11 04:32:31 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-11 04:32:31 +0000 |
commit | f16aa92587a0f06bce2bcd70e0b364e0947cb8ca (patch) | |
tree | 76918cc032e60196a0fe3f538efdd67b4221cb61 /crawl-ref/source/item_use.cc | |
parent | db751caa96af14f2353250c2c56b1d8e64e72b3b (diff) | |
download | crawl-ref-f16aa92587a0f06bce2bcd70e0b364e0947cb8ca.tar.gz crawl-ref-f16aa92587a0f06bce2bcd70e0b364e0947cb8ca.zip |
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
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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: |