rogue3: improve log messages when Amulet is found

This commit is contained in:
John "Elwin" Edwards 2009-11-12 12:53:29 +00:00
parent ce560d937c
commit 777682dba6

View file

@ -325,23 +325,26 @@ void writelog(int amount, int flags, int monst)
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