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

Function gender

src/mondata.c:1179–1185  ·  view source on GitHub ↗

returns 3 values (0=male, 1=female, 2=none) */

Source from the content-addressed store, hash-verified

1177
1178/* returns 3 values (0=male, 1=female, 2=none) */
1179int
1180gender(struct monst *mtmp)
1181{
1182 if (is_neuter(mtmp->data))
1183 return 2;
1184 return mtmp->female;
1185}
1186
1187/* Like gender(), but unseen humanoids are "it" rather than "he" or "she"
1188 and lower animals and such are "it" even when seen; hallucination might

Callers 2

steal_itFunction · 0.85
could_seduceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected