From e48766e842f0586ce575268ee7127f58d6d29f51 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 23 May 2008 15:15:10 +0000 Subject: Apply beam tracer prompt to helpless/fleeing etc. creatures when worshipping an appropriate god. I'm simply reusing dolorous unchivalric methods here. :) Also, don't prompt for harmless beams. Still TODO: Make the message differentiate between target and obstacles, and clean up the code a bit. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5193 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemprop.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/itemprop.cc') diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index eb37710c5c..ad4c07ee98 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -602,7 +602,7 @@ unsigned long full_ident_mask( const item_def& item ) flagset = 0; break; case OBJ_MISCELLANY: - if ( item.sub_type == MISC_RUNE_OF_ZOT ) + if (item.sub_type == MISC_RUNE_OF_ZOT) flagset = 0; else flagset = ISFLAG_KNOW_TYPE; @@ -629,6 +629,7 @@ unsigned long full_ident_mask( const item_def& item ) break; case OBJ_WEAPONS: case OBJ_ARMOUR: + // all flags necessary for full identification default: break; } -- cgit v1.2.3-54-g00ecf