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

Function E_phrase

src/dbridge.c:360–374  ·  view source on GitHub ↗

* Generates capitalized entity name, makes 2nd -> 3rd person conversion on * verb, where necessary. */

Source from the content-addressed store, hash-verified

358 * verb, where necessary.
359 */
360staticfn const char *
361E_phrase(struct entity *etmp, const char *verb)
362{
363 static char wholebuf[80];
364
365 Strcpy(wholebuf, is_u(etmp) ? "You" : Monnam(etmp->emon));
366 if (!verb || !*verb)
367 return wholebuf;
368 Strcat(wholebuf, " ");
369 if (is_u(etmp))
370 Strcat(wholebuf, verb);
371 else
372 Strcat(wholebuf, vtense((char *) 0, verb));
373 return wholebuf;
374}
375
376/*
377 * Simple-minded "can it be here?" routine

Callers 3

e_jumpsFunction · 0.85
do_entityFunction · 0.85
destroy_drawbridgeFunction · 0.85

Calls 2

MonnamFunction · 0.85
vtenseFunction · 0.85

Tested by

no test coverage detected