Release v1.7.1 Hotfix #31
|
@ -177,7 +177,7 @@ export class FractionStatsComponent implements OnInit, OnChanges {
|
|||
}
|
||||
let killCountBlufor = 0, killCountOpfor = 0, ffKillCountBlufor = 0, ffKillCountOpfor = 0;
|
||||
|
||||
for (const {killEntry, index} of this.logData.kill.map((entry, pos) => ({entry, pos}))) {
|
||||
for (const {killEntry, index} of this.logData.kill.map((kill, pos) => ({killEntry: kill, index: pos}))) {
|
||||
const killEntryDate = new Date(killEntry.time);
|
||||
if (killEntry.friendlyFire === false) {
|
||||
if (killEntry.fraction === 'BLUFOR') {
|
||||
|
@ -220,7 +220,7 @@ export class FractionStatsComponent implements OnInit, OnChanges {
|
|||
return;
|
||||
}
|
||||
let reviveCountBlufor = 0, reviveCountOpfor = 0, stabilizeCountBlufor = 0, stabilizeCountOpfor = 0;
|
||||
for (const {reviveEntry, index} of this.logData.revive.map((entry, pos) => ({entry, pos}))) {
|
||||
for (const {reviveEntry, index} of this.logData.revive.map((revive, pos) => ({reviveEntry: revive, index: pos}))) {
|
||||
const reviveEntryDate = new Date(reviveEntry.time);
|
||||
if (reviveEntry.stabilized === false) {
|
||||
if (reviveEntry.fraction === 'BLUFOR') {
|
||||
|
@ -260,9 +260,9 @@ export class FractionStatsComponent implements OnInit, OnChanges {
|
|||
return;
|
||||
}
|
||||
let vehicleKillCountBlufor = 0, vehicleKillCountOpfor = 0;
|
||||
for (const {transportEntry: vehicleEntry, index} of this.logData.vehicle.map((entry, pos) => ({
|
||||
pos,
|
||||
index
|
||||
for (const {transportEntry: vehicleEntry, index} of this.logData.vehicle.map((transport, pos) => ({
|
||||
transportEntry: transport,
|
||||
index: pos
|
||||
}))) {
|
||||
const vehicleEntryDate = new Date(vehicleEntry.time);
|
||||
if (vehicleEntry.fraction === 'BLUFOR') {
|
||||
|
@ -284,9 +284,9 @@ export class FractionStatsComponent implements OnInit, OnChanges {
|
|||
return;
|
||||
}
|
||||
let transportCountBlufor = 0, transportCountOpfor = 0;
|
||||
for (const {transportEntry, index} of this.logData.transport.map((entry, pos) => ({
|
||||
entry,
|
||||
pos
|
||||
for (const {transportEntry, index} of this.logData.transport.map((transport, pos) => ({
|
||||
transportEntry: transport,
|
||||
index: pos
|
||||
}))) {
|
||||
const transportEntryDate = new Date(transportEntry.time);
|
||||
if (transportEntry.fraction === 'BLUFOR') {
|
||||
|
@ -360,8 +360,9 @@ export class FractionStatsComponent implements OnInit, OnChanges {
|
|||
} else {
|
||||
for (const j in [0, 1]) {
|
||||
if (tmpCollection[j].series[tmpCollection[j].series.length - 1].name < endDate) {
|
||||
tmpCollection[j].series.push(ChartUtils.getSeriesEntry(endDate, tmpCollection[j]
|
||||
.series[tmpCollection[j].series.length - 1].value));
|
||||
tmpCollection[j].series.push(
|
||||
ChartUtils.getSeriesEntry(endDate, tmpCollection[j].series[tmpCollection[j].series.length - 1].value)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue