venom fixes
Noticed when fixing 'D$'. Some commands, including D, which should have been handling venom weren't doing so. I'm not sure whether I got all the applicable cases.
This commit is contained in:
11
src/invent.c
11
src/invent.c
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 invent.c $NHDT-Date: 1601594180 2020/10/01 23:16:20 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.301 $ */
|
||||
/* NetHack 3.7 invent.c $NHDT-Date: 1601595710 2020/10/01 23:41:50 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.302 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Derek S. Ray, 2015. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -2116,11 +2116,11 @@ unsigned *resultflags;
|
||||
m_seen = TRUE;
|
||||
} else if (oc_of_sym == MAXOCLASSES) {
|
||||
You("don't have any %c's.", sym);
|
||||
} else if (oc_of_sym != VENOM_CLASS) { /* suppress venom */
|
||||
} else {
|
||||
if (!index(olets, oc_of_sym)) {
|
||||
add_valid_menu_class(oc_of_sym);
|
||||
olets[oletct++] = oc_of_sym;
|
||||
olets[oletct] = 0;
|
||||
olets[oletct] = '\0';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2360,7 +2360,7 @@ int id_limit;
|
||||
Sprintf(buf, "What would you like to identify %s?",
|
||||
first ? "first" : "next");
|
||||
n = query_objlist(buf, &g.invent, (SIGNAL_NOMENU | SIGNAL_ESCAPE
|
||||
| USE_INVLET | INVORDER_SORT),
|
||||
| USE_INVLET | INVORDER_SORT),
|
||||
&pick_list, PICK_ANY, not_fully_identified);
|
||||
|
||||
if (n > 0) {
|
||||
@@ -3217,6 +3217,7 @@ dotypeinv()
|
||||
i |= BUC_CURSED;
|
||||
if (xcnt)
|
||||
i |= BUC_UNKNOWN;
|
||||
i |= INCLUDE_VENOM;
|
||||
n = query_category(prompt, g.invent, i, &pick_list, PICK_ONE);
|
||||
if (!n)
|
||||
return 0;
|
||||
@@ -3341,7 +3342,7 @@ dotypeinv()
|
||||
}
|
||||
if (query_objlist((char *) 0, &g.invent,
|
||||
((flags.invlet_constant ? USE_INVLET : 0)
|
||||
| INVORDER_SORT),
|
||||
| INVORDER_SORT | INCLUDE_VENOM),
|
||||
&pick_list, PICK_NONE, this_type_only) > 0)
|
||||
free((genericptr_t) pick_list);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user