MCPcopy Index your code
hub / github.com/NetHack/NetHack / encode_extended_conducts

Function encode_extended_conducts

src/topten.c:583–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583staticfn char *
584encode_extended_conducts(char *buf)
585{
586 buf[0] = '\0';
587 add_achieveX(buf, "foodless", !u.uconduct.food);
588 add_achieveX(buf, "vegan", !u.uconduct.unvegan);
589 add_achieveX(buf, "vegetarian", !u.uconduct.unvegetarian);
590 add_achieveX(buf, "atheist", !u.uconduct.gnostic);
591 add_achieveX(buf, "weaponless", !u.uconduct.weaphit);
592 add_achieveX(buf, "pacifist", !u.uconduct.killer);
593 add_achieveX(buf, "illiterate", !u.uconduct.literate);
594 add_achieveX(buf, "polyless", !u.uconduct.polypiles);
595 add_achieveX(buf, "polyselfless", !u.uconduct.polyselfs);
596 add_achieveX(buf, "wishless", !u.uconduct.wishes);
597 add_achieveX(buf, "artiwishless", !u.uconduct.wisharti);
598 add_achieveX(buf, "genocideless", !num_genocides());
599 if (sokoban_in_play())
600 add_achieveX(buf, "sokoban", !u.uconduct.sokocheat);
601 add_achieveX(buf, "blind", u.uroleplay.blind);
602 add_achieveX(buf, "deaf", u.uroleplay.deaf);
603 add_achieveX(buf, "nudist", u.uroleplay.nudist);
604 add_achieveX(buf, "pauper", u.uroleplay.pauper);
605 add_achieveX(buf, "bonesless", !flags.bones);
606 add_achieveX(buf, "petless", !u.uconduct.pets);
607 add_achieveX(buf, "unrerolled", !u.uroleplay.reroll);
608
609 return buf;
610}
611
612#endif /* XLOGFILE */
613

Callers 1

writexlentryFunction · 0.85

Calls 3

add_achieveXFunction · 0.85
num_genocidesFunction · 0.85
sokoban_in_playFunction · 0.85

Tested by

no test coverage detected