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

Function validrole

src/role.c:712–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710static char NEARDATA randomstr[] = "random";
711
712boolean
713validrole(int rolenum)
714{
715 return (boolean) (IndexOkT(rolenum, roles));
716}
717
718int
719randrole(boolean for_display)

Callers 5

amii_player_selectionFunction · 0.85
role_gendercountFunction · 0.85
root_plselection_promptFunction · 0.85
build_plselection_promptFunction · 0.85
role_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected