X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=rip.c;h=5c5accde8157cd90c07f4031a5a469d00acfccbf;hp=e7c8edb4cdf52c7ec961f19c0cc4de5a1129ee8c;hb=167796e68e373813c676765504ada731ebd36913;hpb=e72b287ac5cdb287c541bdc052d13823afe4930d diff --git a/rip.c b/rip.c index e7c8edb..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. * @@ -198,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) { @@ -389,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();