Commit Graph

29 Commits

Author SHA1 Message Date
Chomp 8253215410 Converted strings into MongoId type 2025-07-05 11:03:09 +01:00
Jesse 5686f4a486 Remove I18nService, migrate to renamed ServerLocalisationService (#433)
* Remove I18nService, migrate to renamed ServerLocalisationService

* Revert VS fuckup

* Update using

* Remove unused parameter, update comment

* Fix develop branch not building
2025-06-28 19:08:42 +01:00
Chomp da5644cfa2 made properties readonly 2025-06-28 12:53:21 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Jesse ff1dfa54ae Do a small pass on SPT's config's to reduce warnings and cleanup (#348)
* Do a small pass on SPT's config's to reduce warnings and cleanup

* Revert

* Revert EFT models

* Set list as null
2025-06-04 14:46:52 +01:00
Chomp ccb55bd025 Expanded GetGenerationWeights scope to reduce code verbosity
Improved `InitCacheForBotRole`

Removed unnecessary code from `AddItemsToPool`
2025-06-02 17:20:54 +01:00
Chomp a5d9a54c7f made use of FilterItemPool helper method to reduce code verbosity
Fixed inverted trygetvalue check
2025-06-02 16:59:53 +01:00
Chomp 74bdac7d9b Fixed bug in AddLootToCache that was causing combined pool to not be hydrated 2025-06-02 16:41:27 +01:00
Chomp 2cb720ab94 Added early return when result is 0 items
Added early return when 'type' of loot is unknown
2025-06-02 16:23:45 +01:00
Chomp 2ae91b4c38 Added safer dictionary access inside GetLootFromCache 2025-06-02 16:09:39 +01:00
Chomp 0577b119ca Reduced times combined Loot Pool is iterate over inside AddLootToCache() 2025-06-02 12:50:02 +01:00
Chomp 2165e407eb Added missing locks + improved comments
Made use of `nameof` instead of `toString`
2025-06-02 12:27:39 +01:00
Chomp d5df140d58 Created GetGenerationWeights helper to reduce dupication 2025-06-02 11:39:30 +01:00
Chomp fd3b0c0ead Replaced direct key access with TryAdd 2025-06-02 11:28:58 +01:00
Chomp d7d0463c94 Replaced direct key access with TryAdd 2025-06-02 11:26:20 +01:00
Chomp 24cc70b225 Improved containerType secure container string compare
Split out kvp into variables
2025-06-02 11:12:50 +01:00
Chomp 9ec9c0beb7 Fixed concurrency issues with pmc loot generation 2025-06-02 10:24:32 +01:00
Chomp 8a382f5d63 Replaced concurrent dictionary with manual locks inside PMCLootGenerator 2025-05-28 11:06:16 +01:00
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
Chomp 31ae5feb41 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>
2025-05-04 12:51:45 +01:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
CWX 2b0a829515 reduce flea offer pack chance, cuz i hate em 2025-04-22 14:23:30 +01:00
Chomp 00e94e2f25 Copy changes from node-server 2025-04-16 11:55:51 +01:00
CWX a7b52a5632 Change to use ConcurrentDict as i got a modified whilst reading on cloner 2025-04-11 13:55:18 +01:00
CWX 84dc3dfdbc Moved BotLootCacheService to ConcurrentDictionary 2025-04-11 12:17:48 +01:00
CWX 642413f041 filter out mags and ammo from secure container that is "loot" from bot jsons 2025-04-10 12:55:31 +01:00
CWX 0d8d6e4fec fix spelling 2025-04-10 12:37:16 +01:00
Chomp 6b48dfa463 Made locks more consistent across solution 2025-03-08 09:55:36 +00:00
clodan 270f095413 renamed projects and namespaces 2025-03-07 13:16:43 +00:00