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:
@@ -2155,7 +2155,8 @@ extern boolean objdescr_is(struct obj *, const char *) NONNULLARG2;
|
||||
extern void oinit(void);
|
||||
extern void savenames(NHFILE *) NONNULLARG1;
|
||||
extern void restnames(NHFILE *) NONNULLARG1;
|
||||
extern void discover_object(int, boolean, boolean);
|
||||
extern void observe_object(struct obj *) NONNULLARG1;
|
||||
extern void discover_object(int, boolean, boolean, boolean);
|
||||
extern void undiscover_object(int);
|
||||
extern boolean interesting_to_discover(int);
|
||||
extern int choose_disco_sort(int);
|
||||
|
||||
Reference in New Issue
Block a user