fix #K166 - role selection filtering
pick_role() had a 5 year old copy+paste error where a pair of lines were cloned multiple times but one of the resulting lines didn't get the intended revision, preventing OPTIONS=align:!chaotic or !neutral or !lawful from working as intended when letting the game choose role randomly. The bad line should have been calling ok_align() but that routine turned out to have a bug too. Fixing those lead to other less obvious problems with role selection, particularly the tty menu version for picking manually. Roles and/or races which should have been excluded by partial specification weren't always kept out. Also, if any filtering was specified, trying to disable all filters (via choosing 'reset filtering' and de-selecting everything in the menu) was a no-op. Once any filtering was in place you had to leave at least one role or race or gender or alignment flagged as not acceptable in order to change any of the filtering. When that was fixed and it was possible to turn off all filtering, there was no way to turn it back on because the menu choice to reset the filters wasn't offered unless there was some filtering in place (that was intentional but turned out not to be a good idea). I checked curses and X11; they both offer less versatile selection capability that don't seem to need the tty-specific fixes.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
$NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.65 $ $NHDT-Date: 1578896120 2020/01/13 06:15:20 $
|
||||
$NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.66 $ $NHDT-Date: 1578947634 2020/01/13 20:33:54 $
|
||||
|
||||
General Fixes and Modified Features
|
||||
-----------------------------------
|
||||
@@ -44,6 +44,7 @@ walking out of tethered-to-buried-object trap condition was supposed to
|
||||
attached chain that got dragged around but had no ball attached
|
||||
when poly'd into a giant and moving onto a boulder's spot, message given was
|
||||
confused about whether autopickup would occur so could be misleading
|
||||
random role selection wasn't honoring unwanted alignment(s) properly
|
||||
|
||||
|
||||
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
||||
@@ -75,6 +76,8 @@ data.base lookup of an entry with any blank lines would falsely claim that
|
||||
|
||||
Platform- and/or Interface-Specific Fixes
|
||||
-----------------------------------------
|
||||
tty: role and race selection menus weren't filtering out potential choices
|
||||
which got excluded by OPTIONS=align:!lawful or !neutral or !chaotic
|
||||
|
||||
|
||||
General New Features
|
||||
|
||||
Reference in New Issue
Block a user