mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 02:10:45 -05:00
Added early exit to AddTraitorScavsPatch
This commit is contained in:
parent
e74c5313a8
commit
96e0be26cd
@ -34,6 +34,11 @@ namespace SPT.Custom.Patches
|
||||
_traitorChancePercent = JsonConvert.DeserializeObject<int>(json);
|
||||
}
|
||||
|
||||
if (_traitorChancePercent == 0)
|
||||
{
|
||||
return true; // Do original method
|
||||
}
|
||||
|
||||
WildSpawnType role = bot.Profile.Info.Settings.Role;
|
||||
if (AiHelpers.BotIsPlayerScav(role, bot.Profile.Info.Nickname) && new Random().Next(1, 100) < _traitorChancePercent)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user