fix github issue #493 - hero item knowledge
Issue was about being asked what to call a previously seen potion which has been picked up and thrown by an unseen monster. Hero shouldn't remember what the item description was. This is a much more general change than just fixing that. Any item picked up by an unseen non-tame monster will have all its *known flags cleared since the hero can't see what that monster does to it. Same if an item is picked up while seen but then used when unseen. Unseen pets are excluded from the pick up case--but not the use case--because they pick up and drop stuff continually and players would just slaughter them if they caused item information to be forgotten. Fixes #493
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 extern.h $NHDT-Date: 1611445282 2021/01/23 23:41:22 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.947 $ */
|
||||
/* NetHack 3.7 extern.h $NHDT-Date: 1620329773 2021/05/06 19:36:13 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.968 $ */
|
||||
/* Copyright (c) Steve Creps, 1988. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -1013,6 +1013,7 @@ extern int ggetobj(const char *, int(*)(struct obj *), int, boolean,
|
||||
unsigned *);
|
||||
extern int askchain(struct obj **, const char *, int, int(*)(struct obj *),
|
||||
int(*)(struct obj *), int, const char *);
|
||||
extern void unknow_object(struct obj *);
|
||||
extern void set_cknown_lknown(struct obj *);
|
||||
extern void fully_identify_obj(struct obj *);
|
||||
extern int identify(struct obj *);
|
||||
|
||||
Reference in New Issue
Block a user