pile_limit option - movement feedback "there are objects here" (trunk only)
Something that pops up in the newsgroup periodically, with <Someone> inevitably pointing out the bit of code that the user needs to tweak, about control of feedback when hero is walking across floor objects. Implement new option ``pile_limit'' which allows user to set the point at which the game switches from listing the objects to giving "there are several/many objects here". Default is 5, same as previous hard-coded value (1 object gets listed via pline, 2..4 are listed in a corner popup, 5 or more objects yields a pline message instead). Setting pile_limit to 0 means no limit, so objects will always be listed regardless of pile size. Setting it to 1 effectively forces no listing since any non-empty pile size is always at least that big, so can produce "there is an object here" even though that's no briefer than a pline() to show one object.
This commit is contained in:
@@ -1983,6 +1983,13 @@ compile time option AUTOPICKUP_EXCEPTIONS included, you may be able to use
|
||||
configuration file lines to further refine
|
||||
.op autopickup
|
||||
behavior.
|
||||
.lp pile_limit
|
||||
When walking across a pile of objects on the floor, threshold at which
|
||||
the message "there are few/several/many objects here" is given instead
|
||||
of showing a popup list of those objects. A value of 0 means "no limit"
|
||||
(always list the objects); a value of 1 effectively means "never show
|
||||
the objects" since the pile size will always be at least that big;
|
||||
default value is 5.
|
||||
.lp playmode
|
||||
Values are `normal', `explore', or `debug'.
|
||||
Allows selection of explore mode (also known as discovery mode) or debug
|
||||
|
||||
+9
-1
@@ -31,7 +31,7 @@
|
||||
\begin{document}
|
||||
%
|
||||
% input file: guidebook.mn
|
||||
% $Revision: 1.103 $ $Date: 2007/02/15 05:22:32 $
|
||||
% $Revision: 1.104 $ $Date: 2007/02/18 04:49:19 $
|
||||
%
|
||||
%.ds h0 "
|
||||
%.ds h1 %.ds h2 \%
|
||||
@@ -2457,6 +2457,14 @@ compile time option AUTOPICKUP\_EXCEPTIONS included,
|
||||
you may be able to use ``{\it autopickup\_exception\/}'' configuration
|
||||
file lines to further refine ``{\it autopickup\/}'' behavior.
|
||||
%.lp
|
||||
\item[\ib{pile\_limit}]
|
||||
When walking across a pile of objects on the floor, threshold at which
|
||||
the message ``there are few/several/many objects here'' is given instead
|
||||
of showing a popup list of those objects. A value of 0 means ``no limit''
|
||||
(always list the objects); a value of 1 effectively means ``never show
|
||||
the objects'' since the pile size will always be at least that big;
|
||||
default value is 5.
|
||||
%.lp
|
||||
\item[\ib{playmode}]
|
||||
Values are {\it normal\/}, {\it explore\/}, or {\it debug\/}.
|
||||
Allows selection of explore mode (also known as discovery mode) or debug
|
||||
|
||||
@@ -323,6 +323,8 @@ player can give a monster class when asked for type of monster to poly into
|
||||
likewise when asked about type for #monpolycontrol
|
||||
scroll of taming/spell of charm monster now gives some feedback
|
||||
doppelgangers can take on the shape of alternate roles' quest guardians
|
||||
pile_limit option to control when to switch to "there are objects here"
|
||||
vs listing objects on floor when hero goes over objects while moving
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific New Features
|
||||
|
||||
Reference in New Issue
Block a user