static char *reason[] = {\r
"killed",\r
"quit",\r
- "A total winner",\r
+ "A total loner",\r
+ "left for a date",\r
+ "got the amulet and left"\r
};\r
char scoreline[100];\r
char score_file[PATH_MAX];\r
scp->sc_score = amount;\r
strcpy(scp->sc_name, whoami);\r
scp->sc_flags = flags;\r
- if (flags == 2)\r
+ if (flags >= 2)\r
scp->sc_level = max_level;\r
else\r
scp->sc_level = level;\r
scp--;\r
}\r
}\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
else\r
printf(".\n");\r
}\r
fclose(outf);\r
}\r
\r
-total_winner()\r
+total_loner(monster)\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
+ 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
\r
+total_winner(monster)\r
+char monster;\r
+{\r
clear();\r
standout();\r
addstr(" \n");\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(" \n");\r
- addstr(" Congratulations, you have made it to the light of day! \n");\r
+ addstr(" You got a hot date. \n");\r
standend();\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
mvaddstr(LINES - 1, 0, "--Press space to continue--");\r
refresh();\r
wait_for(' ');\r
}\r
mvprintw(c - 'a' + 1, 0," %5d Gold Peices ", oldpurse);\r
refresh();\r
- score(purse, 2, 0);\r
+ score(purse, flags, monster);\r
getch();\r
endwin();\r
exit(0);\r