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

Function validrace

src/role.c:777–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775}
776
777boolean
778validrace(int rolenum, int racenum)
779{
780 /* Assumes validrole */
781 return (boolean) (IndexOkT(racenum, races)
782 && (roles[rolenum].allow & races[racenum].allow
783 & ROLE_RACEMASK));
784}
785
786int
787randrace(int rolenum)

Callers 15

populate_rolesMethod · 0.85
populate_racesMethod · 0.85
RandomizeMethod · 0.85
selectRoleMethod · 0.85
selectRaceMethod · 0.85
mswin_player_selectionFunction · 0.85
curses_choose_characterFunction · 0.85
plsel_set_sensitivitiesFunction · 0.85
racetoggleCallbackFunction · 0.85
roletoggleCallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected