From bea5c32865b925d7c2e994554cfb66853242d63a Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 19 Apr 2008 10:18:52 +0000 Subject: 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 --- crawl-ref/source/command.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/command.cc') 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)) { -- cgit v1.2.3-54-g00ecf