]> granicus.if.org Git - nethack/commit
more obj filtering
authorPatR <rankin@nethack.org>
Sat, 1 Jul 2017 06:51:14 +0000 (23:51 -0700)
committerPatR <rankin@nethack.org>
Sat, 1 Jul 2017 06:51:14 +0000 (23:51 -0700)
commit36a921ca3b5b8fae547ac44894639e042001c7cd
tree8668b8c6d66ed08ae6cbfc166b3a7ddff283b6ec
parenta45ac9955fee7f18346b07d24a5bcb4d5d76eb7a
more obj filtering

Add support for filtering by unpaid status for container-in and
container-out actions.  When taking out of a container, it works as
expected if you're carrying the container while in a shop, but won't
find any unpaid items if the container is on the floor.  That's
because they're only flagged as unpaid while in the hero's inventory.
(And when it doesn't find any unpaid items it won't list 'unpaid' as
a category of item to manipulate, so while that might be suboptimal
for taking items out of shop containers, it shouldn't be a problem.
Typically all the contents are shop-owned anyway, so using unpaid as
a filter wouldn't gain any advantage over just taking stuff out.)
src/invent.c
src/pickup.c