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

Function noit_mon_nam

src/do_name.c:1053–1060  ·  view source on GitHub ↗

print the name as if mon_nam() (y_monnam() if tame) was called, but assume that the player can always see the monster--used for probing and for monsters aggravating the player with a cursed potion of invisibility; also used for pet moving "reluctantly" onto cursed object when that pet can be seen either before or after it moves */

Source from the content-addressed store, hash-verified

1051 also used for pet moving "reluctantly" onto cursed object when that pet
1052 can be seen either before or after it moves */
1053char *
1054noit_mon_nam(struct monst *mtmp)
1055{
1056 return x_monnam(mtmp, ARTICLE_YOUR, (char *) 0,
1057 (has_mgivenname(mtmp) ? (SUPPRESS_SADDLE | SUPPRESS_IT)
1058 : SUPPRESS_IT),
1059 FALSE);
1060}
1061
1062/* in between noit_mon_nam() and mon_nam(); if the latter would pick "it",
1063 use "someone" (for humanoids) or "something" (for others) instead */

Callers 11

chat_with_leaderFunction · 0.85
noit_MonnamFunction · 0.85
control_mon_teleFunction · 0.85
doname_baseFunction · 0.85
gd_move_cleanupFunction · 0.85
shknameFunction · 0.85
monkilledFunction · 0.85
wiz_force_cham_formFunction · 0.85
you_aggravateFunction · 0.85
doseduceFunction · 0.85
use_leashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected