diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-17 21:28:56 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-17 21:28:56 +0000 |
commit | 12de33d2d95164e30a8a2ac960ad28b2a69383e3 (patch) | |
tree | 4b238a712c0c7f329eed44cc23832f6998c7b2ca /crawl-ref/source/invent.cc | |
parent | 46c7199d6ae8c006a78799a1c59dacf4e2d77c8f (diff) | |
download | crawl-ref-12de33d2d95164e30a8a2ac960ad28b2a69383e3.tar.gz crawl-ref-12de33d2d95164e30a8a2ac960ad28b2a69383e3.zip |
Another modification of autotargetting submerged monsters, based off
BR 1935715.
* Targeting a square with a known submerged monster ("strange
disturbance" description) always enforces '!' rather than '.'
* Submerged monsters only get targetted if there are no other more
viable targets (dangerous monsters, really) in sight.
The latter uses a heavily modified i_feel_safe() that now draws on
get_playervisible_monsters(), which got numerous new parameters to cover
all possibilities. :p
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4314 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r-- | crawl-ref/source/invent.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index 01e5bd5543..f232e5374c 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -537,6 +537,7 @@ const menu_sort_condition *InvMenu::find_menu_sort_condition() const for (int i = 0, size = Options.sort_menus.size(); i < size; ++i) if (Options.sort_menus[i].matches(type)) return &Options.sort_menus[i]; + return (NULL); } |