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))
|
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
|
||||||
|
|
Loading…
Reference in New Issue