Mercurial > hg > early-roguelike
diff rogue3/rip.c @ 21:8bd134f676be
rogue3: improve log messages when Amulet is found
author | edwarj4 |
---|---|
date | Thu, 12 Nov 2009 12:53:29 +0000 |
parents | a86ae56e1ed6 |
children | 63dcd855bc8e |
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