MCPcopy Create free account
hub / github.com/NetHack/NetHack / mimic_obj_name

Function mimic_obj_name

src/objnam.c:5605–5615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5603}
5604
5605const char *
5606mimic_obj_name(struct monst *mtmp)
5607{
5608 if (M_AP_TYPE(mtmp) == M_AP_OBJECT) {
5609 if (mtmp->mappearance == GOLD_PIECE)
5610 return "gold";
5611 if (mtmp->mappearance != STRANGE_OBJECT)
5612 return simple_typename(mtmp->mappearance);
5613 }
5614 return "whatcha-may-callit";
5615}
5616
5617/*
5618 * Construct a query prompt string, based around an object name, which is

Callers 2

invaultFunction · 0.85
mattackuFunction · 0.85

Calls 1

simple_typenameFunction · 0.85

Tested by

no test coverage detected