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

Function pmname

src/do_name.c:1302–1308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1300}
1301
1302const char *
1303pmname(struct permonst *pm, int mgender)
1304{
1305 if (mgender < MALE || mgender >= NUM_MGENDERS || !pm->pmnames[mgender])
1306 mgender = NEUTRAL;
1307 return pm->pmnames[mgender];
1308}
1309#endif /* PMNAME_MACROS */
1310
1311/* mons[]->pmname for a monster */

Callers 15

updateStatsMethod · 0.85
update_valFunction · 0.85
end.cFile · 0.85
really_doneFunction · 0.85
do_name.cFile · 0.85
minimal_monnamFunction · 0.85
mon_pmnameFunction · 0.85
obj_pmnameFunction · 0.85
rndmonnamFunction · 0.85
mpickobjFunction · 0.85
mhitm_ad_drstFunction · 0.85
mhitm_ad_wrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected