From 51e1f7734e3cf6c188e45c697c6046a3ebf88d1a Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 26 Feb 2024 19:15:26 +0000 Subject: [PATCH] Add missing standing logging inside `getFenceStandingChangeForKillAsScav()` --- project/src/helpers/InRaidHelper.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/project/src/helpers/InRaidHelper.ts b/project/src/helpers/InRaidHelper.ts index 4a0454b4..299d5443 100644 --- a/project/src/helpers/InRaidHelper.ts +++ b/project/src/helpers/InRaidHelper.ts @@ -144,8 +144,14 @@ export class InRaidHelper const botTypes = this.databaseServer.getTables().bots.types; if (victim.Side.toLowerCase() === "savage") { + const standing = botTypes[victim.Role.toLowerCase()]?.experience?.standingForKill; + if (standing === undefined) + { + this.logger.warning(`Unable to find standing for kill for: ${victim.Role}, side: ${victim.Side}`); + } + // Scavs and bosses - return botTypes[victim.Role.toLowerCase()]?.experience?.standingForKill; + return standing; } // PMCs - get by bear/usec