Accurately track which items have been discovered, even if not #named
This fixes a couple of bugs: a long-standing bug in which writing a scroll by label could fail even if you've already seen a scroll with that label (due to the game not tracking whether or not you've seen a scroll if it doesn't have a name); and a somewhat newer bug in which spellbooks auto-identified by Wizard knowledge were marked as having been encountered (rather than as known but not encountered). Breaks save file compatibility, but not bones files.
This commit is contained in:
@@ -107,7 +107,9 @@ struct obj {
|
||||
* or enchantment); many items have this preset if
|
||||
* they lack anything interesting to discover */
|
||||
Bitfield(dknown, 1); /* description known (item seen "up close");
|
||||
* some types of items always have dknown set */
|
||||
* some types of items always have dknown set;
|
||||
* use observe_object to set to TRUE so that the
|
||||
* discoveries list is still correct */
|
||||
Bitfield(bknown, 1); /* BUC (blessed/uncursed/cursed) known */
|
||||
Bitfield(rknown, 1); /* rustproofing status known */
|
||||
Bitfield(cknown, 1); /* for containers (including statues): the contents
|
||||
|
||||
Reference in New Issue
Block a user