tty: count for group accelerators
github issue #697 from copperwater points out that using a menu for pickup and attempting to give a count to pickup a subset of gold was ignoring the count and picking up all gold. That was an unintended side-effect of making '$' be a group accelerator for gold in addition to being the 'letter' for a stack of gold (so that it can be chosen even when not displayed on the current page, the way other groups behave). Picking groups via their accelerator ignored any pending count (in tty; curses seems to apply the count). Change tty to apply a pending count to all menu entries that get toggled on via group accelerator. It's intended to address the gold bug but might also be used to select one from every potion stack via '1!', for example. (Seems to be of very limited functionality, but that was more straightforward than singling out gold's group to behave differently.) While in there, change how tty uses menuitem_invert_test(): call it for set-page/set-all/unset-page/unset-all in addition to existing invert-page/invert-all. unset-page/unset-all won't actually be affected unless 'menuinvertmode' option is set to 2. Closes #697
This commit is contained in:
@@ -1084,6 +1084,7 @@ counting "just picked up" items when deciding what pseudo-classes should be
|
||||
changes to stair internals resulted in summoned Kops blockcading the stairs up
|
||||
rather than intended stairs down
|
||||
dumplog's list of "major events" showed all logged events, not just major ones
|
||||
pickup via menu ignored player-specified count when picking up gold
|
||||
|
||||
curses: 'msg_window' option wasn't functional for curses unless the binary
|
||||
also included tty support
|
||||
|
||||
Reference in New Issue
Block a user