0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 06:30:43 -05:00

Fixed incorrect traitor scav check

This commit is contained in:
Dev 2024-02-13 12:49:02 +00:00
parent 0564961c72
commit 4f0dad24e7

View File

@ -31,7 +31,7 @@ namespace Aki.Custom.Patches
} }
WildSpawnType role = bot.Profile.Info.Settings.Role; WildSpawnType role = bot.Profile.Info.Settings.Role;
if (AiHelpers.BotIsPlayerScav(role, bot.Profile.Info.Nickname) && new Random().Next(1, 100) > TraitorChancePercent) if (AiHelpers.BotIsPlayerScav(role, bot.Profile.Info.Nickname) && new Random().Next(1, 100) < TraitorChancePercent)
{ {
Logger.LogInfo($"Making {bot.name} ({bot.Profile.Nickname}) hostile to player"); Logger.LogInfo($"Making {bot.name} ({bot.Profile.Nickname}) hostile to player");