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

Function Mgender

src/do_name.c:1288–1300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1286
1287#ifndef PMNAME_MACROS
1288int
1289Mgender(struct monst *mtmp)
1290{
1291 int mgender = MALE;
1292
1293 if (mtmp == &gy.youmonst) {
1294 if (Upolyd ? u.mfemale : flags.female)
1295 mgender = FEMALE;
1296 } else if (mtmp->female) {
1297 mgender = FEMALE;
1298 }
1299 return mgender;
1300}
1301
1302const char *
1303pmname(struct permonst *pm, int mgender)

Callers 15

end.cFile · 0.85
do_name.cFile · 0.85
minimal_monnamFunction · 0.85
mon_pmnameFunction · 0.85
obj_pmnameFunction · 0.85
mpickobjFunction · 0.85
mhitm_ad_drstFunction · 0.85
mhitm_ad_wrapFunction · 0.85
mhitm_ad_slimFunction · 0.85
do_stone_uFunction · 0.85
mhitm_ad_physFunction · 0.85
gulpumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected