diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-23 15:15:10 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-23 15:15:10 +0000 |
commit | e48766e842f0586ce575268ee7127f58d6d29f51 (patch) | |
tree | 6611db85325871347e8500c65b7fc5b255257e66 /crawl-ref/source/itemprop.cc | |
parent | 7b9c8f3ef0a491779f4a3100425cee9c227ab6ff (diff) | |
download | crawl-ref-e48766e842f0586ce575268ee7127f58d6d29f51.tar.gz crawl-ref-e48766e842f0586ce575268ee7127f58d6d29f51.zip |
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
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |