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

Function role_gendercount

src/role.c:1398–1412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1396}
1397
1398staticfn int
1399role_gendercount(int rolenum)
1400{
1401 int gendcount = 0;
1402
1403 if (validrole(rolenum)) {
1404 if (roles[rolenum].allow & ROLE_MALE)
1405 ++gendcount;
1406 if (roles[rolenum].allow & ROLE_FEMALE)
1407 ++gendcount;
1408 if (roles[rolenum].allow & ROLE_NEUTER)
1409 ++gendcount;
1410 }
1411 return gendcount;
1412}
1413
1414staticfn int
1415race_alignmentcount(int racenum)

Callers 1

root_plselection_promptFunction · 0.85

Calls 1

validroleFunction · 0.85

Tested by

no test coverage detected