Add missing standing logging inside getFenceStandingChangeForKillAsScav()

This commit is contained in:
Dev 2024-02-26 19:15:26 +00:00
parent 47882e59d6
commit 51e1f7734e

View File

@ -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