MCPcopy Index your code
hub / github.com/NetHack/NetHack / otense

Function otense

src/objnam.c:2530–2546  ·  view source on GitHub ↗

return form of the verb (input plural) if xname(otmp) were the subject */

Source from the content-addressed store, hash-verified

2528
2529/* return form of the verb (input plural) if xname(otmp) were the subject */
2530char *
2531otense(struct obj *otmp, const char *verb)
2532{
2533 char *buf;
2534
2535 /*
2536 * verb is given in plural (without trailing s). Return as input
2537 * if the result of xname(otmp) would be plural. Don't bother
2538 * recomputing xname(otmp) at this time.
2539 */
2540 if (!is_plural(otmp))
2541 return vtense((char *) 0, verb);
2542
2543 buf = nextobuf();
2544 Strcpy(buf, verb);
2545 return buf;
2546}
2547
2548/* various singular words that vtense would otherwise categorize as plural;
2549 also used by makesingular() to catch some special cases */

Callers 15

dowieldFunction · 0.85
doquiver_coreFunction · 0.85
drop_uswapwepFunction · 0.85
chweponFunction · 0.85
maybe_absorb_itemFunction · 0.85
potion_dipFunction · 0.85
Armor_onFunction · 0.85
glibrFunction · 0.85
hmon_hitmon_weapon_meleeFunction · 0.85
that_is_a_mimicFunction · 0.85
show_transient_lightFunction · 0.85
litterFunction · 0.85

Calls 2

vtenseFunction · 0.85
nextobufFunction · 0.85

Tested by

no test coverage detected