'm' prefix for drinking and dipping
Allow the player to precede q/#quaff or M-d/#dip with the 'm' prefix
to skip asking about fountains, sinks, or pools if one of those
happens to be present, similar to how using it for e/#eat skips food
on the floor and goes straight to inventory.
If you use it and don't have any potions, you'll get "you don't have
anything to drink" or "you don't have anything to dip into", same as
when there is no suitable dungeon feature present combined with no
potions. However, if an applicable dungeon feature is present and
you don't use the prefix but answer 'no' to drink from fountain,&c
and you don't have any potions, "else" will be inserted into the
message: "you don't have anything else to drink".
A big part of the diff is just a change in indentation level for
code that is now inside 'if (!iflags.menu_requested) {' ... '}'.
This commit is contained in:
@@ -651,7 +651,8 @@ a menu of several sorting alternatives (which sets a new value for the
|
||||
.op sortdiscoveries
|
||||
option).
|
||||
.lp ""
|
||||
A few other commands (eat food, offer sacrifice, apply tinning-kit) use
|
||||
A few other commands (eat food, offer sacrifice, apply tinning-kit,
|
||||
drink/quaff, dip) use
|
||||
the \(oq\f(CRm\fP\(cq prefix to skip checking for applicable objects on
|
||||
the floor and go straight to checking inventory,
|
||||
or (for \(lq#loot\(rq to remove a saddle),
|
||||
@@ -878,6 +879,13 @@ For some interfaces, the behavior can be varied via the
|
||||
option.
|
||||
.lp q
|
||||
Quaff (drink) something (potion, water, etc).
|
||||
.lp ""
|
||||
When there is a fountain or sink present, it asks whether to drink
|
||||
from that.
|
||||
If that is declined, then it offers a chance to choose a potion from
|
||||
inventory.
|
||||
Precede \(oqq\(cq with the \(oqm\(cq prefix to skip asking about
|
||||
drinking from a fountain or sink.
|
||||
.lp Q
|
||||
Select an object for your quiver, quiver sack, or just generally at
|
||||
the ready (only one of these is available at a time).
|
||||
@@ -1216,6 +1224,9 @@ See the section below entitled \(lqConduct\(rq for details.
|
||||
Dip an object into something.
|
||||
Autocompletes.
|
||||
Default key is \(oqM-d\(cq.
|
||||
.lp ""
|
||||
The \(oqm\(cq prefix skips dipping into a fountain or pool if there
|
||||
is one at your location.
|
||||
.lp "#down "
|
||||
Go down a staircase.
|
||||
Default key is \(oq>\(cq.
|
||||
@@ -1419,6 +1430,9 @@ Default key is \(oqP\(cq.
|
||||
.lp "#quaff "
|
||||
Quaff (drink) something.
|
||||
Default key is \(oqq\(cq.
|
||||
.lp ""
|
||||
The \(oqm\(cq prefix skips drinking from a fountain or sink if there
|
||||
is one at your location.
|
||||
.lp "#quit "
|
||||
Quit the program without saving your game.
|
||||
Autocompletes.
|
||||
|
||||
@@ -744,7 +744,8 @@ a menu of several sorting alternatives (which sets a new value for the
|
||||
{\it sortdiscoveries\/} option).
|
||||
\\
|
||||
%.lp ""
|
||||
A few other commands (eat food, offer sacrifice, apply tinning-kit) use
|
||||
A few other commands (eat food, offer sacrifice, apply tinning-kit,
|
||||
drink/quaff, dip) use
|
||||
the `{\tt m}' prefix to skip checking for applicable objects on
|
||||
the floor and go straight to checking inventory,
|
||||
or (for ``{\tt \#loot}'' to remove a saddle),
|
||||
@@ -972,7 +973,14 @@ For some interfaces, the behavior can be varied via the
|
||||
{\it msg\verb+_+window\/} option.
|
||||
%.lp
|
||||
\item[\tb{q}]
|
||||
Quaff (drink) something (potion, water, etc).
|
||||
Quaff (drink) something (potion, water, etc).\\
|
||||
%.lp ""
|
||||
When there is a fountain or sink present, it asks whether to drink
|
||||
from that.
|
||||
If that is declined, then it offers a chance to choose a potion from
|
||||
inventory.
|
||||
Precede {\tt q} with the {\tt m} prefix to skip asking about
|
||||
drinking from a fountain or sink.
|
||||
%.lp
|
||||
\item[\tb{Q}]
|
||||
Select an object for your quiver, quiver sack, or just generally at
|
||||
@@ -1317,7 +1325,10 @@ Default key is `{\tt M-C}'.\\
|
||||
See the section below entitled ``Conduct'' for details.
|
||||
%.lp
|
||||
\item[\tb{\#dip}]
|
||||
Dip an object into something. Autocompletes. Default key is `{\tt M-d}'.
|
||||
Dip an object into something. Autocompletes. Default key is `{\tt M-d}'.\\
|
||||
%.lp ""
|
||||
The {\tt m} prefix skips dipping into a fountain or pool if there
|
||||
is one at your location.
|
||||
%.lp
|
||||
\item[\tb{\#down}]
|
||||
Go down a staircase. Default key is `{\tt >}'.
|
||||
@@ -1525,7 +1536,10 @@ Show previously displayed game messages. Default key is `{\tt \^{}P}'.
|
||||
Put on an accessory (ring, amulet, etc). Default key is `{\tt P}'.
|
||||
%.lp
|
||||
\item[\tb{\#quaff}]
|
||||
Quaff (drink) something. Default key is `{\tt q}'.
|
||||
Quaff (drink) something. Default key is `{\tt q}'.\\
|
||||
%.lp ""
|
||||
The {\tt m} prefix skips drinking from a fountain or sink if there
|
||||
is one at your location.
|
||||
%.lp
|
||||
\item[\tb{\#quit}]
|
||||
Quit the program without saving your game. Autocompletes.\\
|
||||
|
||||
@@ -880,6 +880,8 @@ don't try to catch up for lost time for shop damage repair in restdamage()
|
||||
putting objects into a container with menustyle=traditional and then taking
|
||||
them back out with #tip would result in complaints about obj bypass
|
||||
bit being set if sanity_check was On
|
||||
when drinking or dipping, allow the 'm' prefix to be used to skip asking
|
||||
about fountains and pools
|
||||
|
||||
|
||||
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
||||
|
||||
Reference in New Issue
Block a user