-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inventory display after regaining sight (trunk only)
I suspect--but have no way to test--that there is a subtle difference in game play between perm_invent and !perm_invent involving object merging or other activity that depends on whether or not object->dknown is set. For objects pickup up while blind, where object->dknown is left as is, the perm_invent config would have such items marked as seen sooner (since there are umpteen places that call update_inventory() which will end up setting the seen bit while formatting objects). Non-perm_invent wouldn't have that done until the user examines invent (or asks to see a list of objects at the "which object?" prompt for various commands). This patch effectively examines inventory whenever blindness ends, so both modes get dknown set as soon as possible. And if we ever add an "effect known" flag for unseen objects which are used while blind, this would be a suitable place to perform deferred object discovery.
- Loading branch information
nethack.rankin
committed
Jan 27, 2008
1 parent
6095d4a
commit fb043c5
Showing
3 changed files
with
27 additions
and
2 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