Bot generation performance (#231)

* chore: Bot generation performance improvements (#227)

* Bot generation performance improvements

* Revert debug logging logic

* Get rid of Info log which is bound to be printed inevitably at each bot wave generation

* Use assault const

* Removed comments

Removed lowercase side constants
Renamed equipment role to better explain its purpose

Fixed `Blocks` property being serialised to client

Updated `_slotsWithNoCompatIssues` to use existing enum type

Reduced log line to be debug

* Fixed `GetRandomTextThatMatchesPartialKey` incorrectly checking eft locales instead of spt locales

* Updated various methods to be protected

---------

Co-authored-by: hulkhan22 <clandestine984@gmail.com>
Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
This commit is contained in:
Chomp
2025-05-04 12:51:45 +01:00
committed by GitHub
parent 0019738a8d
commit 31ae5feb41
13 changed files with 212 additions and 109 deletions
@@ -0,0 +1,13 @@
namespace SPTarkov.Server.Core.Constants;
public static class Containers
{
public const string ArmorVest = "ArmorVest";
public const string Earpiece = "Earpiece";
public const string FaceCover = "FaceCover";
public const string Headwear = "Headwear";
public const string Eyewear = "Eyewear";
public const string Collapsible = "Collapsible";
public const string LeftStance = "LeftStance";
public const string Folding = "Folding";
}
@@ -0,0 +1,6 @@
namespace SPTarkov.Server.Core.Constants;
public class Roles
{
public const string Assault = "assault";
}
@@ -0,0 +1,12 @@
namespace SPTarkov.Server.Core.Constants;
public static class Sides
{
public const string Usec = "Usec";
public const string Bear = "Bear";
public const string Savage = "Savage";
public const string PmcUsec = "pmcUSEC";
public const string PmcBear = "pmcBEAR";
public const string PmcEquipmentRole = "pmc";
}
@@ -0,0 +1,6 @@
namespace SPTarkov.Server.Core.Constants;
public static class Slots
{
public const string Dogtag = "Dogtag";
}