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

Function y_monnam

src/do_name.c:1116–1129  ·  view source on GitHub ↗

pet name: "your little dog" */

Source from the content-addressed store, hash-verified

1114
1115/* pet name: "your little dog" */
1116char *
1117y_monnam(struct monst *mtmp)
1118{
1119 int prefix, suppression_flag;
1120
1121 prefix = mtmp->mtame ? ARTICLE_YOUR : ARTICLE_THE;
1122 suppression_flag = (has_mgivenname(mtmp)
1123 /* "saddled" is redundant when mounted */
1124 || mtmp == u.usteed)
1125 ? SUPPRESS_SADDLE
1126 : 0;
1127
1128 return x_monnam(mtmp, prefix, (char *) 0, suppression_flag, FALSE);
1129}
1130
1131/* y_monnam() for start of sentence */
1132char *

Callers 15

YMonnamFunction · 0.85
stealgoldFunction · 0.85
mfind0Function · 0.85
do_attackFunction · 0.85
mhitm_ad_stckFunction · 0.85
mhitm_knockbackFunction · 0.85
rider_cant_reachFunction · 0.85
boulder_hits_poolFunction · 0.85
cannot_pushFunction · 0.85
moverock_coreFunction · 0.85
test_moveFunction · 0.85
trapmoveFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_moveFunction · 0.68