comparison rogue3/rip.c @ 22:63dcd855bc8e

Record experience level in the logfile too
author edwarj4
date Mon, 16 Nov 2009 23:54:24 +0000
parents 8bd134f676be
children 24e6beb9e7aa
comparison
equal deleted inserted replaced
21:8bd134f676be 22:63dcd855bc8e
312 char *killer; 312 char *killer;
313 313
314 if (waswizard) 314 if (waswizard)
315 return; 315 return;
316 #ifdef LOGFILE 316 #ifdef LOGFILE
317 sprintf(logmessage, "%d %d %.20s ", time(NULL), amount, whoami); 317 sprintf(logmessage, "%d %d %.20s %d ", time(NULL), amount, whoami,
318 pstats.s_lvl);
318 if (flags == 0) /* died */ 319 if (flags == 0) /* died */
319 { 320 {
320 strcat(logmessage, "killed by a"); 321 strcat(logmessage, "killed by a");
321 killer = killname(monst); 322 killer = killname(monst);
322 if (*killer == 'a' || *killer == 'e' || *killer == 'i' || 323 if (*killer == 'a' || *killer == 'e' || *killer == 'i' ||