Add respawn to logparser processing

pull/24/head
HardiReady 2018-01-28 17:45:54 +01:00
parent 359fb4787c
commit 8ae4999593
1 changed files with 10 additions and 10 deletions

View File

@ -107,16 +107,16 @@ const parseWarLog = (lineArray, war) => {
stats.points.push(getPointsEntry(pt, line, war._id, war.date)) stats.points.push(getPointsEntry(pt, line, war._id, war.date))
} }
} }
//
// /** /**
// * RESPAWN * RESPAWN
// */ */
// else if (line.includes('Respawn')) { else if (line.includes('Respawn')) {
// stats.clean.push(line); const resp = line.split(' ');
// const resp = line.split(' '); const playerName = line.substring(line.lastIndexOf('Spieler:') + 9, line.lastIndexOf('- Kosten') -1);
// const playerName = line.substring(line.lastIndexOf('Spieler:') + 9, line.lastIndexOf('-') - 1); console.log(getRespawnEntry(resp, playerName, war._id, war.date));
// stats.respawn.push(getRespawnEntry(resp, playerName, war._id, war.date)); stats.respawn.push(getRespawnEntry(resp, playerName, war._id, war.date));
// } }
/** /**
* REVIVE * REVIVE