diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-19 10:18:52 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-19 10:18:52 +0000 |
commit | bea5c32865b925d7c2e994554cfb66853242d63a (patch) | |
tree | 36febf7d864d4f6551450c01938f2733998ec17c /crawl-ref/source/command.cc | |
parent | 351df26a45219be708eafc947bb359e5dd8c90c2 (diff) | |
download | crawl-ref-bea5c32865b925d7c2e994554cfb66853242d63a.tar.gz crawl-ref-bea5c32865b925d7c2e994554cfb66853242d63a.zip |
Cleanup of beam.cc and direct.cc.
Comparisons for missiles are done with the actual item now, rather than
beam.name, so this fixes (user specified) randart names containing "poisoned"
being actually poisoning. I guess this would also allow printing the
stats in the hiscores when killed by a thrown weapon.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4360 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r-- | crawl-ref/source/command.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index fba62439ce..025ae033e4 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -490,8 +490,8 @@ void list_weapons(void) wstring = "Secondary : "; colour = MSGCOL_BLACK; - if (is_valid_item( you.inv[i]) && - (you.inv[i].base_type == OBJ_WEAPONS + if (is_valid_item( you.inv[i]) + && (you.inv[i].base_type == OBJ_WEAPONS || you.inv[i].base_type == OBJ_STAVES || you.inv[i].base_type == OBJ_MISCELLANY)) { |