Merge branch 'co-work' of https://github.com/IrPgFKS0/dayz-reforger into co-work

Mutual changes
This commit is contained in:
IrPgFKS0 committed 2023-09-10 21:54:23 -07:00
commit 5e2123194e
7 files changed
+92 -42

No files matched your search

+2 -3
View File
@@ -109,6 +109,7 @@ module.exports = {
lastDamageDate: playerStat.lastDamageDate,
lastHitBy: playerStat.lastHitBy,
lastDeathDate: playerStat.lastDeathDate,
combatLogTimer: combatLogTimer,
});
}
}
@@ -169,9 +170,7 @@ module.exports = {
let playerStatIndex = stats.indexOf(playerStat);
if (playerStat === undefined) playerStat = client.getDefaultPlayerStats(info.player, info.playerID);
const newDt = await client.getDateEST(info.time);
playerStat.lastDamageDate = newDt;
playerStat.lastDamageDate = await client.getDateEST(info.time);
playerStat.lastHitBy = info.attacker;
if (playerStatIndex === -1) stats.push(playerStat);