Add respawn to logparser processing
parent
359fb4787c
commit
8ae4999593
|
@ -107,16 +107,16 @@ const parseWarLog = (lineArray, war) => {
|
|||
stats.points.push(getPointsEntry(pt, line, war._id, war.date))
|
||||
}
|
||||
}
|
||||
//
|
||||
// /**
|
||||
// * RESPAWN
|
||||
// */
|
||||
// else if (line.includes('Respawn')) {
|
||||
// stats.clean.push(line);
|
||||
// const resp = line.split(' ');
|
||||
// const playerName = line.substring(line.lastIndexOf('Spieler:') + 9, line.lastIndexOf('-') - 1);
|
||||
// stats.respawn.push(getRespawnEntry(resp, playerName, war._id, war.date));
|
||||
// }
|
||||
|
||||
/**
|
||||
* RESPAWN
|
||||
*/
|
||||
else if (line.includes('Respawn')) {
|
||||
const resp = line.split(' ');
|
||||
const playerName = line.substring(line.lastIndexOf('Spieler:') + 9, line.lastIndexOf('- Kosten') -1);
|
||||
console.log(getRespawnEntry(resp, playerName, war._id, war.date));
|
||||
stats.respawn.push(getRespawnEntry(resp, playerName, war._id, war.date));
|
||||
}
|
||||
|
||||
/**
|
||||
* REVIVE
|
||||
|
|
Loading…
Reference in New Issue