more TTYINV=4 - lamps/leashes
When persistent inventory is set to only show items-in-use, include leashes attached to pets and lit lamps and candles, same as the '*' command.
This commit is contained in:
+4
-2
@@ -3378,9 +3378,11 @@ display_pickinv(
|
|||||||
continue;
|
continue;
|
||||||
if (doing_perm_invent) {
|
if (doing_perm_invent) {
|
||||||
/* when showing equipment in use, gold shouldn't be excluded
|
/* when showing equipment in use, gold shouldn't be excluded
|
||||||
just because !show_gold is set; it might be quivered */
|
just because !show_gold is set; it might be quivered;
|
||||||
|
tool_being_used() matches lit lamps/candles and active
|
||||||
|
leashes, neither of which set owornmask */
|
||||||
if (inuse_only) {
|
if (inuse_only) {
|
||||||
if (!otmp->owornmask) {
|
if (!otmp->owornmask && !tool_being_used(otmp)) {
|
||||||
skipped_noninuse = TRUE;
|
skipped_noninuse = TRUE;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user