.lp pettype
Specify the type of your initial pet, if you are playing a character class
that uses multiple types of pets; or choose to have no initial pet at all.
-Possible values are ``cat'', ``dog'' and ``none''.
+Possible values are ``cat'', ``dog'', ``horse'',
+and ``none''.
+If the choice is not allowed for the role you are currently playing,
+it will be silently ignored. For example, ``horse'' will only be
+honored when playing a knight.
Cannot be set with the `O' command.
.lp pickup_burden
When you pick up an item that would exceed this encumbrance
\begin{document}
%
% input file: guidebook.mn
-% $Revision: 1.91 $ $Date: 2005/01/22 15:27:20 $
+% $Revision: 1.92 $ $Date: 2005/01/23 14:33:46 $
%
%.ds h0 "
%.ds h1 %.ds h2 \%
\item[\ib{pettype}]
Specify the type of your initial pet, if you are playing a character class
that uses multiple types of pets; or choose to have no initial pet at all.
-Possible values are ``{\tt cat}'', ``{\tt dog}'' and ``{\tt none}''.
+Possible values are ``{\tt cat}'', ``{\tt dog}'', ``{\tt horse}''
+and ``{\tt none}''.
+If the choice is not allowed for the role you are currently playing,
+it will be silently ignored. For example, ``{\tt horse}'' will only be
+honored when playing a knight.
Cannot be set with the `{\tt O}' command.
%.Ip
\item[\ib{pickup\_burden}]
if (duplicate) complain_about_duplicate(opts,1);
if ((op = string_for_env_opt(fullname, opts, negated)) != 0) {
if (negated) bad_negation(fullname, TRUE);
- else switch (*op) {
+ else switch (lowc(*op)) {
case 'd': /* dog */
- case 'D':
preferred_pet = 'd';
break;
case 'c': /* cat */
- case 'C':
case 'f': /* feline */
- case 'F':
preferred_pet = 'c';
break;
+ case 'h': /* horse */
+ case 'q': /* quadruped */
+ /* avoids giving "unrecognized type of pet" but
+ pet_type(dog.c) won't actually honor this */
+ preferred_pet = 'h';
+ break;
case 'n': /* no pet */
- case 'N':
preferred_pet = 'n';
break;
+ case '*': /* random */
+ preferred_pet = '\0';
+ break;
default:
pline("Unrecognized pet type '%s'.", op);
break;
else if (!strcmp(optname, "pettype"))
Sprintf(buf, "%s", (preferred_pet == 'c') ? "cat" :
(preferred_pet == 'd') ? "dog" :
+ (preferred_pet == 'h') ? "horse" :
(preferred_pet == 'n') ? "none" : "random");
else if (!strcmp(optname, "pickup_burden"))
Sprintf(buf, "%s", burdentype[flags.pickup_burden] );