summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-13 11:26:38 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-13 11:26:38 +0000
commit0eb7e87096f07509f3fed6a82fab696d505a2c18 (patch)
tree2b96ba1d50f34f5c3a9c83a22bf7f4dad4ecdd0f /crawl-ref/source/item_use.h
parenta14e48e33b5e1eef0503fa426ff31e0c83628d73 (diff)
downloadcrawl-ref-0eb7e87096f07509f3fed6a82fab696d505a2c18.tar.gz
crawl-ref-0eb7e87096f07509f3fed6a82fab696d505a2c18.zip
[1746014] Added an implicit quiver when firing missiles:
- ^P/^N change the selected missile, but only within a fire_order slot. i.e., if you're wielding a launcher and have "launcher" first in your fire order, ^N and ^P will cycle only through suitable launcher ammo. - If you use ^P or ^N to change the default missiles offered, that choice gets saved as your quiver (unless you cancel targeting). - Fire always offers the quivered item first, if appropriate (so if you have darts quivered and try to shoot from a bow, the darts will not be offered). Breaks save compatibility (quiver is saved). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1854 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.h')
-rw-r--r--crawl-ref/source/item_use.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/item_use.h b/crawl-ref/source/item_use.h
index 3ba4d11a00..d0ccb961c9 100644
--- a/crawl-ref/source/item_use.h
+++ b/crawl-ref/source/item_use.h
@@ -76,7 +76,8 @@ bool remove_ring(int slot = -1, bool announce = false);
/* ***********************************************************************
* called from: acr
* *********************************************************************** */
-int get_fire_item_index(void);
+int get_fire_item_index(int start_from = 0, bool forward = true,
+ bool check_quiver = true);
void shoot_thing(void);
@@ -138,7 +139,8 @@ bool puton_item(int slot, bool prompt_finger = true);
bool enchant_weapon( int which_stat, bool quiet = false );
-bool throw_it(bolt &pbolt, int throw_2, bool teleport=false, int acc_bonus=0);
+bool throw_it(bolt &pbolt, int throw_2, bool teleport=false, int acc_bonus=0,
+ dist *target = NULL);
void inscribe_item();
int launcher_shield_slowdown(const item_def &launcher,