Mercurial > hg > early-roguelike
changeset 21:8bd134f676be
rogue3: improve log messages when Amulet is found
author | edwarj4 |
---|---|
date | Thu, 12 Nov 2009 12:53:29 +0000 |
parents | bbf072f8bafa |
children | 63dcd855bc8e |
files | rogue3/rip.c |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/rogue3/rip.c Wed Nov 11 12:28:25 2009 +0000 +++ b/rogue3/rip.c Thu Nov 12 12:53:29 2009 +0000 @@ -325,23 +325,26 @@ else strcat(logmessage, " "); strcat(logmessage, killer); - if (max_level > level) - sprintf(ltemp, " on level %d [max %d]\n", level, max_level); + if (amulet) + sprintf(ltemp, " on level %d [max %d] with the Amulet\n", + level, max_level); else sprintf(ltemp, " on level %d\n", level); strcat(logmessage, ltemp); } else if (flags == 1) /* quit */ { - if (max_level > level) - sprintf(ltemp, "quit on level %d [max %d]\n", level, max_level); + if (amulet) + sprintf(ltemp, "quit on level %d [max %d] with the Amulet\n", + level, max_level); else sprintf(ltemp, "quit on level %d\n", level); strcat(logmessage, ltemp); } else if (flags == 2) /* won */ { - sprintf(ltemp, "escaped with the Amulet found on level %d\n", max_level); + sprintf(ltemp, "escaped with the Amulet [deepest level :%d]\n", + max_level); strcat(logmessage, ltemp); } else