fix/logsHandler weapon undefined error
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayzr-bot",
|
"name": "dayzr-bot",
|
||||||
"version": "12.1.1",
|
"version": "12.1.2",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
+1
-1
@@ -189,7 +189,7 @@ module.exports = {
|
|||||||
attackerStat.shotsLanded++;
|
attackerStat.shotsLanded++;
|
||||||
attackerStat.shotsLandedPerBodyPart[info.bodyPart]++;
|
attackerStat.shotsLandedPerBodyPart[info.bodyPart]++;
|
||||||
attackerStat.weaponStats[info.weapon].shotsLanded++;
|
attackerStat.weaponStats[info.weapon].shotsLanded++;
|
||||||
attackerStat.weaponStats[info,weapon].shotsLandedPerBodyPart[info.bodyPart]++;
|
attackerStat.weaponStats[info.weapon].shotsLandedPerBodyPart[info.bodyPart]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
await UpdatePlayer(client, playerStat);
|
await UpdatePlayer(client, playerStat);
|
||||||
|
|||||||
Reference in new issue
Block a user