#adjust enhancement - splitting stacks

Allow the #adjust command to be used to split an inventory stack
as well as for moving things to specific slot letters.  Splitting is
accomplished by specifying a count along with the letter of the stack to
operate on, similar to when dropping a stack with 'd'.  The comment above
doorganize() has more details.

     This change will make it possible for users to split stacks of cursed
loadstones which they couldn't easily do before, but I don't see anything
wrong with that.  It was always possible to have multiple stacks of load-
stones by starting with ones that had different curse/bless status, so this
hasn't introduced a totally new situation.  On the other hand, I haven't
tested this with the GOLDOBJ configuration and am not sure whether there is
any need to prevent gold from being split there.  The getobj() call doesn't
specify COIN_CLASS so perhaps it's irrelevant (unless it ought to be
changed the other direction by adding that to intentionally allow gold to
be split?).
This commit is contained in:
nethack.rankin
2004-11-06 02:42:41 +00:00
parent 0a9b85159e
commit 88dad9386b
4 changed files with 105 additions and 19 deletions

View File

@@ -27,7 +27,7 @@
\begin{document}
%
% input file: guidebook.mn
% $Revision: 1.85 $ $Date: 2004/10/28 01:48:52 $
% $Revision: 1.86 $ $Date: 2004/10/30 01:44:12 $
%
%.ds h0 "
%.ds h1 %.ds h2 \%
@@ -894,6 +894,12 @@ the game was compiled with.
Adjust inventory letters (most useful when the
{\it fixinv\/}
option is ``on'').
This command allows you to move an item from one particular inventory
slot to another so that it has a letter which is more meaningful for you
or that it will appear in a particular location when inventory listings
are displayed.
``{\tt \#adjust}'' can also be used to split a stack of objects; when
choosing the item to adjust, enter a count prior to its letter.
%.lp
\item[\tb{\#chat}]
Talk to someone.