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

Function promptsep

src/role.c:1383–1396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383staticfn char *
1384promptsep(char *buf, int num_post_attribs)
1385{
1386 const char *conjuct = "and ";
1387
1388 if (num_post_attribs > 1 && gr.role_post_attribs < num_post_attribs
1389 && gr.role_post_attribs > 1)
1390 Strcat(buf, ",");
1391 Strcat(buf, " ");
1392 --gr.role_post_attribs;
1393 if (!gr.role_post_attribs && num_post_attribs > 1)
1394 Strcat(buf, conjuct);
1395 return buf;
1396}
1397
1398staticfn int
1399role_gendercount(int rolenum)

Callers 1

build_plselection_promptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected