'f' for aklys

Adopt a feature mentioned in the xNetHack release announcement.
If you use the fire ('f') command when wielding a throw-and-return
weapon while your quiver is empty and the 'autoquiver' option is
Off, throw the wielded weapon instead of prompting to fill the
quiver.  It will usually return and be re-wielded, so be ready to
fire again.

Implemented from scratch.
This commit is contained in:
PatR
2021-03-26 16:19:24 -07:00
parent 54eb25ad2e
commit a71d3185bf
4 changed files with 82 additions and 27 deletions

View File

@@ -45,7 +45,7 @@
%.au
\author{Original version - Eric S. Raymond\\
(Edited and expanded for 3.7 by Mike Stephenson and others)}
\date{March 18, 2021}
\date{March 25, 2021}
\maketitle
@@ -875,8 +875,12 @@ often useful to give yourself a breather.
Fire (shoot or throw) one of the objects placed in your quiver (or
quiver sack, or that you have at the ready).
You may select ammunition with a previous `{\tt Q}' command, or let the
computer pick something appropriate if {\it autoquiver\/} is true.\\
computer pick something appropriate if {\it autoquiver\/} is true.
If your wielded weapon has the throw-and-return property, your quiver
is empty, and {\it autoquiver\/}
is false, you will throw that wielded weapon instead of filling the quiver.
%.lp ""
\\
See also `{\tt t}' (throw) for more general throwing and shooting.
%.lp
\item[\tb{i}]
@@ -2653,6 +2657,17 @@ and your strength. Arrows can be thrown by hand, but can be thrown
much farther and will be more likely to hit when thrown while you are
wielding a bow.
%.pg
Some weapons will return when thrown.
A boomerang---provided it fails to hit anything---is an obvious example.
If an aklys (thonged club) is thrown while it is wielded, it will return
even when it hits something.
A sufficiently strong hero can throw the warhammer {\it Mjollnir\/};
when thrown by a {\it Valkyrie\/} it will return too.
However, aklyses and {\it Mjollnir\/} occasionally fail to return.
Returning thrown objects occasionally fail to be caught, sometimes even
hitting the thrower, but when caught they become re-wielded.
%.pg
You can simplify the throwing operation by using the `{\tt Q}' command to
select your preferred ``missile'', then using the `{\tt f}' command to
@@ -2663,10 +2678,14 @@ also an option,
which has {\it NetHack\/} choose another item to automatically fill your
quiver (or quiver sack, or have at the ready) when the inventory slot used
for `{\tt Q}' runs out.
If your quiver is empty, {\it autoquiver\/}
is false, and you are wielding a weapon which returns when thrown,
you will throw that weapon instead of filling the quiver.
%.pg
Some characters have the ability to fire a volley of multiple items in a
single turn. Knowing how to load several rounds of ammunition at
Some characters have the ability to throw or shoot a volley of multiple
items (from the same stack) in a single action.
Knowing how to load several rounds of ammunition at
once---or hold several missiles in your hand---and
still hit a target is not an easy task.
Rangers are among those who are adept