summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-30 09:03:55 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-30 09:03:55 +0000
commitaab63bdbfc80d68ec25664f99c1bc60a89b20790 (patch)
treec4a51541e48f9d129f8ac9e7f1a41bd7ce61344c /crawl-ref/source/misc.cc
parent000472ae640b2c259d1f5b24eb5cf78a3ec48ad5 (diff)
downloadcrawl-ref-aab63bdbfc80d68ec25664f99c1bc60a89b20790.tar.gz
crawl-ref-aab63bdbfc80d68ec25664f99c1bc60a89b20790.zip
Autoprayer is gone.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5341 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc44
1 files changed, 0 insertions, 44 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 039d908e2c..7cd5763454 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -2681,50 +2681,6 @@ int str_to_shoptype(const std::string &s)
return (-1);
}
-/* Decides whether autoprayer Right Now is a good idea. */
-static bool should_autopray()
-{
- if ( Options.autoprayer_on == false
- || you.religion == GOD_NO_GOD
- || you.religion == GOD_NEMELEX_XOBEH
- || you.duration[DUR_PRAYER]
- || grid_altar_god( grd[you.x_pos][you.y_pos] ) != GOD_NO_GOD
- || !i_feel_safe() )
- {
- return false;
- }
-
- // We already know that we're not praying now. So if you
- // just autoprayed, there's a problem.
- if ( you.just_autoprayed )
- {
- mpr("Autoprayer failed, deactivating.", MSGCH_WARN);
- Options.autoprayer_on = false;
- return false;
- }
-
- return true;
-}
-
-// Actually performs autoprayer.
-bool do_autopray()
-{
- if ( you.turn_is_over ) // can happen with autopickup, I think
- return false;
-
- if ( should_autopray() )
- {
- pray();
- you.just_autoprayed = true;
- return true;
- }
- else
- {
- you.just_autoprayed = false;
- return false;
- }
-}
-
// general threat = sum_of_logexpervalues_of_nearby_unfriendly_monsters
// highest threat = highest_logexpervalue_of_nearby_unfriendly_monsters
void monster_threat_values(double *general, double *highest)