X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=rip.c;h=5c5accde8157cd90c07f4031a5a469d00acfccbf;hp=1e2250d01db3daf78246dbe2746ef85133f86c02;hb=167796e68e373813c676765504ada731ebd36913;hpb=93bb426202ba92c389aae65c0c8ab6eb3d325eae diff --git a/rip.c b/rip.c index 1e2250d..5c5accd 100644 --- a/rip.c +++ b/rip.c @@ -4,7 +4,7 @@ * * @(#)rip.c 3.13 (Berkeley) 6/16/81 * - * Rogue: Exploring the Dungeons of Doom + * Rogue: Exploring the Cavern of Cuties * Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman * All rights reserved. * @@ -38,8 +38,6 @@ static char *rip[] = { 0 }; -char *killname(); - /* * death: * Do something really fun when he dies @@ -103,7 +101,7 @@ char monst; "killed", "quit", "A total loner", - "left for a date", + "left for a cuddle", "got the amulet and left" }; char scoreline[100]; @@ -118,7 +116,7 @@ char monst; strcpy(score_file, md_getroguedir()); if (*score_file) - strcat(score_file,"\\"); + strcat(score_file,"/"); strcat(score_file, "rogue36.scr"); @@ -200,7 +198,7 @@ char monst; printf("Top Ten Adventurers:\nRank\tScore\tName\n"); for (scp = top_ten; scp <= &top_ten[9]; scp++) { if (scp->sc_score) { - printf("%ld\t%d\t%s: %s on level %d", scp - top_ten + 1, + printf("%d\t%d\t%s: %s on level %d", (int)(scp - top_ten + 1), scp->sc_score, scp->sc_name, reason[scp->sc_flags], scp->sc_level); if (scp->sc_flags == 0) { @@ -211,6 +209,15 @@ char monst; putchar('n'); printf(" %s", killer); } + else if (scp->sc_flags >= 3) + { + printf(" with a"); + killer = killname(scp->sc_monster); + if (*killer == 'a' || *killer == 'e' || *killer == 'i' || + *killer == 'o' || *killer == 'u') + putchar('n'); + printf(" %s", killer); + } if (prflags == 1) { printf(" (%s)", scp->sc_login); @@ -233,15 +240,6 @@ char monst; scp--; } } - else if (prflags >= 3) - { - printf(" with a"); - killer = killname(scp->sc_monster); - if (*killer == 'a' || *killer == 'e' || *killer == 'i' || - *killer == 'o' || *killer == 'u') - putchar('n'); - printf(" %s", killer); - } else printf(".\n"); } @@ -268,10 +266,9 @@ total_loner(monster) char monster; { clear(); - standout(); addstr(" \n"); addstr(" You escaped from the caverns, but alone. \n"); - standend(); + addstr(" \n"); addstr("\nYou have joined the elite ranks of those who have escaped the\n"); addstr("Cavern of Cuties alive, but failed to meet anyone while there.\n"); addstr("You journey home and sell all your loot at a great profit and\n"); @@ -283,10 +280,11 @@ total_winner(monster) char monster; { clear(); - standout(); addstr(" \n"); addstr(" You got the amulet and a hot date. \n"); - standend(); + addstr(" \n"); + addstr(" @ <3 "); + addch(monster); total_something(4, monster); } @@ -294,10 +292,11 @@ mostly_winner(monster) char monster; { clear(); - standout(); addstr(" \n"); addstr(" You got a hot date. \n"); - standend(); + addstr(" \n"); + addstr(" @ <3 "); + addch(monster); total_something(3, monster); } @@ -313,7 +312,7 @@ char monster; mvaddstr(LINES - 1, 0, "--Press space to continue--"); refresh(); - wait_for(' '); + wait_for(cw, ' '); clear(); mvaddstr(0, 0, " Worth Item"); oldpurse = purse; @@ -390,6 +389,12 @@ char monster; } mvprintw(c - 'a' + 1, 0," %5d Gold Peices ", oldpurse); refresh(); + if (monster) + { + purse += 10 * monsters[monster - 'A'].m_stats.s_exp; + mvprintw(c - 'a' + 1, 0, "and one cute %s (priceless)", + monsters[monster - 'A'].m_name); + } score(purse, flags, monster); getch(); endwin();