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

Function race_alignmentcount

src/role.c:1414–1428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1412}
1413
1414staticfn int
1415race_alignmentcount(int racenum)
1416{
1417 int aligncount = 0;
1418
1419 if (racenum != ROLE_NONE && racenum != ROLE_RANDOM) {
1420 if (races[racenum].allow & ROLE_CHAOTIC)
1421 ++aligncount;
1422 if (races[racenum].allow & ROLE_LAWFUL)
1423 ++aligncount;
1424 if (races[racenum].allow & ROLE_NEUTRAL)
1425 ++aligncount;
1426 }
1427 return aligncount;
1428}
1429
1430char *
1431root_plselection_prompt(

Callers 1

root_plselection_promptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected