more mimic follow-up bits

Address some complaints about an earlier patch.
This commit is contained in:
nethack.allison
2003-01-09 02:37:03 +00:00
parent f9b5bf82c5
commit 5336419465
4 changed files with 13 additions and 25 deletions

View File

@@ -2671,14 +2671,12 @@ 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";
if (mtmp->m_ap_type == M_AP_OBJECT && mtmp->mappearance != STRANGE_OBJECT) {
int idx = objects[mtmp->mappearance].oc_descr_idx;
if (mtmp->mappearance == GOLD_PIECE) return "gold";
return obj_descr[idx].oc_name;
}
return "whatcha-may-callit";
}
#endif /* OVLB */