encread((char *) &top_ten[i].sc_name, 80, fd);\r
encread((char *) &top_ten[i].sc_login, 8, fd);\r
encread((char *) scoreline, 100, fd);\r
sscanf(scoreline, " %d %d %d %d \n",\r
&top_ten[i].sc_score, &top_ten[i].sc_flags,\r
encread((char *) &top_ten[i].sc_name, 80, fd);\r
encread((char *) &top_ten[i].sc_login, 8, fd);\r
encread((char *) scoreline, 100, fd);\r
sscanf(scoreline, " %d %d %d %d \n",\r
&top_ten[i].sc_score, &top_ten[i].sc_flags,\r
scp->sc_score = amount;\r
strcpy(scp->sc_name, whoami);\r
scp->sc_flags = flags;\r
scp->sc_score = amount;\r
strcpy(scp->sc_name, whoami);\r
scp->sc_flags = flags;\r
printf("Top Ten Adventurers:\nRank\tScore\tName\n");\r
for (scp = top_ten; scp <= &top_ten[9]; scp++) {\r
if (scp->sc_score) {\r
printf("Top Ten Adventurers:\nRank\tScore\tName\n");\r
for (scp = top_ten; scp <= &top_ten[9]; scp++) {\r
if (scp->sc_score) {\r
scp->sc_score, scp->sc_name, reason[scp->sc_flags],\r
scp->sc_level);\r
if (scp->sc_flags == 0) {\r
scp->sc_score, scp->sc_name, reason[scp->sc_flags],\r
scp->sc_level);\r
if (scp->sc_flags == 0) {\r
+ else if (prflags >= 3)\r
+ {\r
+ printf(" with a");\r
+ killer = killname(scp->sc_monster);\r
+ if (*killer == 'a' || *killer == 'e' || *killer == 'i' ||\r
+ *killer == 'o' || *killer == 'u')\r
+ putchar('n');\r
+ printf(" %s", killer);\r
+ }\r
- register struct linked_list *item;\r
- register struct object *obj;\r
- register int worth;\r
- register char c;\r
- register int oldpurse;\r
+ clear();\r
+ standout();\r
+ addstr(" \n");\r
+ addstr(" You escaped from the caverns, but alone. \n");\r
+ standend();\r
+ addstr("\nYou have joined the elite ranks of those who have escaped the\n");\r
+ addstr("Cavern of Cuties alive, but failed to meet anyone while there.\n");\r
+ addstr("You journey home and sell all your loot at a great profit and\n");\r
+ addstr("continue your life alone.\n");\r
+ total_something(2, 0);\r
+}\r
- addstr(" @ @ @ @ @ @@@ @ @ \n");\r
- addstr(" @ @ @@ @@ @ @ @ @ \n");\r
- addstr(" @ @ @@@ @ @ @ @ @ @@@ @@@@ @@@ @ @@@ @ \n");\r
- addstr(" @@@@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ \n");\r
- addstr(" @ @ @ @ @ @ @ @@@@ @ @ @@@@@ @ @ @ \n");\r
- addstr(" @ @ @ @ @ @@ @ @ @ @ @ @ @ @ @ @ \n");\r
- addstr(" @@@ @@@ @@ @ @ @ @@@@ @@@@ @@@ @@@ @@ @ \n");\r
+ addstr(" You got the amulet and a hot date. \n");\r
+ standend();\r
+ total_something(4, monster);\r
+}\r
+\r
+mostly_winner(monster)\r
+char monster;\r
+{\r
+ clear();\r
+ standout();\r
- addstr("\nYou have joined the elite ranks of those who have escaped the\n");\r
- addstr("Dungeons of Doom alive. You journey home and sell all your loot at\n");\r
- addstr("a great profit and are admitted to the fighters guild.\n");\r
+ total_something(3, monster);\r
+}\r
+\r
+total_something(flags, monster)\r
+int flags;\r
+char monster;\r
+{\r
+ register struct linked_list *item;\r
+ register struct object *obj;\r
+ register int worth;\r
+ register char c;\r
+ register int oldpurse;\r
+\r
}\r
mvprintw(c - 'a' + 1, 0," %5d Gold Peices ", oldpurse);\r
refresh();\r
}\r
mvprintw(c - 'a' + 1, 0," %5d Gold Peices ", oldpurse);\r
refresh();\r