forked from NetHack/NetHack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using the 'm' prefix with #tip was putting up a menu to pick between one or more floor containers and 'choose from invent', but that interfered with choosing Tip as a context-sensitive item-action for carried container. Change 'm' to behave like it does with #eat and \#quaff and several other commands: skip possible candidates on the floor and go directly to picking something from inventory. That prevents using 'm' to force a menu of |a - <floor container> |i - pick a container being carried for any menustyle when there is one floor container. For menustyles other than traditional, I think that's inconsequential; player needs to answer 'n' for floor container and then get the choose-from-invent prompt instead of 'i' and then choose. When there are two or more containers on hero's spot, 'm' prefix isn't needed to get that menu. Unfortuately using 'm' to override menustyle:Traditional is still a thing players might want to do. Keep the prior behavior for that style when multiple containers are present (dotip() already skipped that menu despite 'm' when there was just one container). Use the new behavior (skip floor containers) when one (or none) is present. That's inconsistent but seems more useful than alternatives. It is relatively unlikely that anyone who uses traditional non-menu item selection will also use newfangled inventory item-actions so the menu isn't likely to interfere with the latter. Update the Guidebook to describe how Traditional differs just in case.
- Loading branch information
PatR
committed
Mar 2, 2023
1 parent
6836eb0
commit f35abea
Showing
5 changed files
with
60 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters