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

Function add_achieveX

src/topten.c:479–488  ·  view source on GitHub ↗

add the achievement or conduct comma-separated to string */

Source from the content-addressed store, hash-verified

477
478/* add the achievement or conduct comma-separated to string */
479staticfn void
480add_achieveX(char *buf, const char *achievement, boolean condition)
481{
482 if (condition) {
483 if (buf[0] != '\0') {
484 Strcat(buf, ",");
485 }
486 Strcat(buf, achievement);
487 }
488}
489
490staticfn char *
491encode_extended_achievements(char *buf)

Callers 2

encode_extended_conductsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected