mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 00:50:44 -05:00
Reworked BotIsNormalAssaultScav
to handle when the nickname is null
This commit is contained in:
parent
53412fbdc4
commit
60ab34f61c
@ -34,13 +34,15 @@ namespace SPT.Custom.CustomAI
|
|||||||
|
|
||||||
public static bool BotIsNormalAssaultScav(WildSpawnType role, BotOwner ___botOwner_0)
|
public static bool BotIsNormalAssaultScav(WildSpawnType role, BotOwner ___botOwner_0)
|
||||||
{
|
{
|
||||||
// Is assault + no (
|
|
||||||
if (!___botOwner_0.Profile.Info.Nickname.Contains("(") && role == WildSpawnType.assault)
|
// Assault and has ( character in name
|
||||||
|
var nicknameContainsPScvCharacter = ___botOwner_0.Profile.Info.Nickname?.Contains("(");
|
||||||
|
if (nicknameContainsPScvCharacter.HasValue && nicknameContainsPScvCharacter.Value && role == WildSpawnType.assault)
|
||||||
{
|
{
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user