"The" Invocation items in farewell message followup
use and export the_unique_obj() for the test, to ensure consistency
This commit is contained in:
@@ -1307,6 +1307,7 @@ E boolean FDECL(obj_is_pname, (struct obj *));
|
|||||||
E char *FDECL(distant_name, (struct obj *,char *(*)(OBJ_P)));
|
E char *FDECL(distant_name, (struct obj *,char *(*)(OBJ_P)));
|
||||||
E char *FDECL(xname, (struct obj *));
|
E char *FDECL(xname, (struct obj *));
|
||||||
E char *FDECL(mshot_xname, (struct obj *));
|
E char *FDECL(mshot_xname, (struct obj *));
|
||||||
|
E boolean FDECL(the_unique_obj, (struct obj *obj));
|
||||||
E char *FDECL(doname, (struct obj *));
|
E char *FDECL(doname, (struct obj *));
|
||||||
E boolean FDECL(not_fully_identified, (struct obj *));
|
E boolean FDECL(not_fully_identified, (struct obj *));
|
||||||
E char *FDECL(corpse_xname, (struct obj *,BOOLEAN_P));
|
E char *FDECL(corpse_xname, (struct obj *,BOOLEAN_P));
|
||||||
|
|||||||
@@ -495,7 +495,7 @@ winid endwin;
|
|||||||
otmp->rknown = 1;
|
otmp->rknown = 1;
|
||||||
/* assumes artifacts don't have quan>1 */
|
/* assumes artifacts don't have quan>1 */
|
||||||
Sprintf(pbuf, "%s%s (worth %ld %s and %ld points)",
|
Sprintf(pbuf, "%s%s (worth %ld %s and %ld points)",
|
||||||
!otmp->oartifact ? "The " : "",
|
the_unique_obj(otmp) ? "The " : "",
|
||||||
otmp->oartifact ? artifact_name(xname(otmp), &dummy) :
|
otmp->oartifact ? artifact_name(xname(otmp), &dummy) :
|
||||||
OBJ_NAME(objects[otmp->otyp]),
|
OBJ_NAME(objects[otmp->otyp]),
|
||||||
arti_cost(otmp), currency(2L),
|
arti_cost(otmp), currency(2L),
|
||||||
|
|||||||
@@ -10,9 +10,6 @@
|
|||||||
#define NUMOBUF 12
|
#define NUMOBUF 12
|
||||||
|
|
||||||
STATIC_DCL char *FDECL(strprepend,(char *,const char *));
|
STATIC_DCL char *FDECL(strprepend,(char *,const char *));
|
||||||
#ifdef OVL0
|
|
||||||
static boolean FDECL(the_unique_obj, (struct obj *obj));
|
|
||||||
#endif
|
|
||||||
#ifdef OVLB
|
#ifdef OVLB
|
||||||
static boolean FDECL(wishymatch, (const char *,const char *,BOOLEAN_P));
|
static boolean FDECL(wishymatch, (const char *,const char *,BOOLEAN_P));
|
||||||
#endif
|
#endif
|
||||||
@@ -491,7 +488,7 @@ struct obj *obj;
|
|||||||
#ifdef OVL0
|
#ifdef OVL0
|
||||||
|
|
||||||
/* used for naming "the unique_item" instead of "a unique_item" */
|
/* used for naming "the unique_item" instead of "a unique_item" */
|
||||||
static boolean
|
boolean
|
||||||
the_unique_obj(obj)
|
the_unique_obj(obj)
|
||||||
register struct obj *obj;
|
register struct obj *obj;
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user