mimic orange follow-up

This commit is contained in:
nethack.allison
2003-01-04 16:28:21 +00:00
parent 6e954a9c51
commit 886749e21b
5 changed files with 42 additions and 17 deletions

View File

@@ -2667,6 +2667,19 @@ struct obj *cloak;
return "cloak";
}
const char *
mimic_obj_name(mtmp)
struct monst *mtmp;
{
boolean mimickobj = (mtmp->m_ap_type == M_AP_OBJECT &&
(mtmp->mappearance > STRANGE_OBJECT &&
mtmp->mappearance < NUM_OBJECTS));
if (mimickobj) {
if (mtmp->mappearance == GOLD_PIECE) return "gold";
else return obj_descr[objects[mtmp->mappearance].oc_descr_idx].oc_name;
}
return "whatcha-may-callit";
}
#endif /* OVLB */
/*objnam.c*/