refine PR #946 - named armor
Move the new stuff from PR #946 out of xname() into new routine armor_simple_name(). Noticed while testing: tweak 'call object type' so that it doesn't list instances of pre-discovered armor as likely candidates since assigning a name to such wasn't showing up in the discoveries list. Add "silver shield" as wishing synonym for "polished silver shield".
This commit is contained in:
@@ -1906,6 +1906,7 @@ extern void savenames(NHFILE *);
|
||||
extern void restnames(NHFILE *);
|
||||
extern void discover_object(int, boolean, boolean);
|
||||
extern void undiscover_object(int);
|
||||
extern boolean interesting_to_discover(int);
|
||||
extern int choose_disco_sort(int);
|
||||
extern int dodiscovered(void);
|
||||
extern int doclassdisco(void);
|
||||
@@ -1968,6 +1969,7 @@ extern char *makeplural(const char *);
|
||||
extern char *makesingular(const char *);
|
||||
extern struct obj *readobjnam(char *, struct obj *);
|
||||
extern int rnd_class(int, int);
|
||||
extern const char *armor_simple_name(struct obj *);
|
||||
extern const char *suit_simple_name(struct obj *);
|
||||
extern const char *cloak_simple_name(struct obj *);
|
||||
extern const char *helm_simple_name(struct obj *);
|
||||
|
||||
Reference in New Issue
Block a user