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
9bfd051725
dont calculate size twice
2025-05-03 13:06:46 +01:00
Chomp
ab7cdd63ba
Use same item size method as airdrop loot
2025-05-02 19:53:57 +01:00
Chomp
344ea6de35
Moved container methods around
...
Added code to validate items fit into airdrop crate
Updated `CreateForcedLoot` and `CreateRandomLoot` to return items with their children
Updated `SetFoundInRaid` to not add a upd to money/currency if it doesn't already have one
2025-05-02 19:48:28 +01:00
Chomp
1976218991
Updated locations where we parse a number stored as a string into a double to use CultureInfo.InvariantCulture, this resolves errors with languages that don't use commas instead of periods in numbers
2025-05-01 17:41:54 +01:00
hulkhan22
d1cb04264c
Merge branch 'develop' into fix/arms-legs
2025-04-29 19:50:38 +02:00
Chris Adamson
de38f1fe88
try just the enum
2025-04-29 10:57:12 -05:00
hulkhan22
9357c1d2b9
Fix cast & filtering
2025-04-29 00:33:40 +02:00
hulkhan22
072113004e
Define bodypart constants for efficiency
2025-04-28 23:39:33 +02:00
hulkhan22
c1b8f8c6a0
Fix body parts sent to client
2025-04-28 23:27:51 +02: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
CWX
5053b8486d
add missing blacklist to pmc loot gen
2025-04-22 13:08:56 +01:00
CWX
7726df0ee1
simplify blacklist filtering
2025-04-22 13:08:39 +01:00
CWX
d8bdfb9cb0
Fix botgen filtering issues
2025-04-21 23:36:10 +01:00
Chomp
6faa69964d
Improved comments inside GetSizeByInventoryItemHash and string comparisons
2025-04-20 19:00:52 +01:00
Chomp
b281254bff
Cleaned up AddLootToContainer
2025-04-20 16:31:14 +01:00
Chomp
d1bdb7b99d
Added early exit to AddLootToContainer when 0 loot item count is picked
2025-04-20 15:12:06 +01:00
CWX
5886320bb6
change to seconds not ms
2025-04-20 14:33:14 +01:00
Chomp
00e94e2f25
Copy changes from node-server
2025-04-16 11:55:51 +01:00
CWX
22d2aebcbe
added a few more converters, Repeatables need testing
2025-04-12 17:30:44 +01:00
CWX
6fdabc8fd7
Fix bot ubgl gen error
2025-04-11 17:47:30 +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
44f18c5c10
Move List to field so its not created each time
2025-04-09 23:12:16 +01:00
Chomp
699b43ef93
Prevent UBGLs from generating patron_in_weapon during mod generation
...
https://github.com/sp-tarkov/server/pull/1154
2025-04-06 09:48:46 +01:00
Chomp
fac25740c6
Hydrate MainProfileNickname in player scav on generation
2025-04-02 10:14:46 +01:00
Chomp
21af001dd4
Fixed normal scavs giving incorrect xp on death
2025-03-28 17:00:19 +00:00
Chomp
34cd52454d
Made GetLooseLootMultiplierForLocation and GetStaticLootMultiplierForLocation safer
2025-03-28 16:14:35 +00:00
Chomp
0fa2c827e5
Simplified logic
2025-03-28 16:09:43 +00:00
Chomp
b85a9eeb86
Fixed GenerateStaticContainers failure when checking if map has randomised container settings
2025-03-28 16:02:46 +00:00
Chomp
aa2feff542
Exposed repeatable collection quest FiR requirement + min durability value in config
2025-03-19 16:57:39 +00:00
Chomp
8c0470df36
Made various methods static + updated private methods to be protected
2025-03-14 19:16:26 +00:00
Chomp
df8ffa2b16
Replaced various instances of dictionaries and hashsets with their frozen counterparts
2025-03-09 17:12:07 +00:00
Chomp
d49adb1be1
Updated static hashsets inside BotEquipmentModGenerator to be readonly
2025-03-08 10:17:24 +00:00
Chomp
69e841e52c
Correctly pass a double into FillMagazineWithRandomCartridge
2025-03-08 10:05:08 +00:00
Chomp
33c56e0730
Updated values to be consts where possible
2025-03-08 09:33:04 +00:00
clodan
270f095413
renamed projects and namespaces
2025-03-07 13:16:43 +00:00