Chomp
3312a5f28c
Fixed Server serializing difficulty values incorrectly
2025-08-23 10:14:04 +01:00
Archangel
d413a6e9c5
Remove TraderStore, use DatabaseService as the source of truth
2025-08-21 16:18:41 +02:00
Chomp
d8987d55f7
Renamed method to TryAddItemToBotContainer
2025-08-20 12:05:47 +01:00
clodanSPT
e6912d0efb
Fixed timer for non-UTC zones ( #560 )
...
* Fixed timer for non-UTC zones
* Added UT and removed unused method
---------
Co-authored-by: Alex <clodanSPT@hotmail.com >
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com >
2025-08-19 16:49:28 +00:00
Chomp
7eb88646f2
Second attempt at fixing prestige issue #558
2025-08-19 12:04:15 +01:00
Chomp
2f1a7f6663
Fixed error on profile generation
2025-08-19 10:29:13 +01:00
Chomp
8573e6ae02
Use string.empty and MongoId.Empty() where appropriate
2025-08-17 21:35:34 +01:00
Chomp
c1522c278e
Validate profiles on server start, can be disabled via core.config
2025-08-17 19:56:59 +01:00
Chomp
24397b0439
Fix logging messages
2025-08-17 09:23:17 +01:00
Cj
a4e3fc7c4e
Fix error placed in the wrong spot
2025-08-16 19:30:12 -04:00
Cj
bb649e6748
Warning fixes and ProfileValidatorHelper cleanup ( #551 )
...
* Fix warnings in ProfileHelper.cs
* Refactor ProfileValidatorHelper.cs
* reduce nesting
2025-08-15 11:29:46 +00:00
Chomp
07504d406e
Renamed TryFillContainerMapWithItem and changed output to better follow c# conventions
2025-08-15 11:24:10 +01:00
Cj
b1a3a36832
Warning fixes continued ( #550 )
...
* More warning fixes
* Revert ModHelper change
2025-08-14 14:00:36 +01:00
Chomp
c3a4bb448c
Filter down hideout areas prior to processing them in UpdateAreasWithResources
...
Updated hideout area "type" property to not be nullable
2025-08-13 17:15:52 +01:00
Chomp
b061200803
Refactor of how bot loot has its position picked to improve performance ( #548 )
...
* Initial work on moving container space checks into new class
* Updated tests
Wired up service to save item into inventory when space is found
Updated `FillContainerMapWithItem` to return outcome and not throw exception on failure
Add containers to bot when generating bot equipment
Clean bot cache after completion of loot generation
Removed redundant code from `AddItemWithChildrenToEquipmentSlot`
Removed unnecessary Singleton status from `BotInventoryContainerService`
* Clean-up of service
* Add botId xml docs
* Updated documentation for `FillContainerMapWithItem`
* Code review fixes and improvements
* Remove TODO
---------
Co-authored-by: Chomp <dev@dev.sp-tarkov.com >
2025-08-13 15:35:57 +00:00
Cj
726e4fccd5
Fix doc, remove unused using
2025-08-13 03:49:38 -04:00
Cj
21e075af2f
ItemHelper warning fixes ( #546 )
...
* - ItemHelper warning fixes
- Fix Fast panel id replacement
- Disable resharper enumeration highlighting
* Use suggestion
2025-08-13 08:28:06 +01:00
Cj
021e5f8239
Log errors before throwing exceptions
2025-08-12 15:49:26 -04:00
Cj
628a31f07f
Helper warning fixes ( #545 )
...
* Helper warning fixes
* Make AI happy
2025-08-12 19:06:46 +00:00
Jesse
60958b3d24
Merge pull request #544 from sp-tarkov/remove-warnings
...
Remove unused dependencies and improve code quality
2025-08-12 19:26:05 +02:00
Archangel
a8f43a70f7
Update docs
2025-08-12 18:34:26 +02:00
Cj
d705b6119a
Fix incomplete error text
2025-08-12 11:52:33 -04:00
Cj
e54dcbd4d1
Fix more warnings... ( #543 )
...
* Fix more warnings...
* Fix mistake
2025-08-12 15:28:54 +00:00
Chomp
4a081a7ac3
Updated class param formatting
2025-08-11 21:08:55 +01:00
Cj
2704998768
Change missed switch to fallthrough over or
2025-08-11 14:12:44 -04:00
Cj
9bd5c2a401
Prefer fallthrough over or and newline
2025-08-11 14:08:59 -04:00
sp-tarkov-bot
1474d2b799
Format Style Fixes
2025-08-11 14:13:49 +00:00
Cj
76e91047d6
More warnings fixes ( #542 )
...
* Fix more warnings, add new exception
* Run formatter
---------
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com >
2025-08-11 14:13:02 +00:00
Chomp
982878cd95
Removed unused helper method
2025-08-10 12:17:05 +01:00
Cj
4b02b6de7d
Fix most warnings inside ItemHelper.cs
2025-08-10 00:09:44 -04:00
Lacyway
d468848b0c
Improve MongoIds ( #537 )
...
* Mongoid improvements pt1
* Format Style Fixes
* Fix incorrect string
* Fix != comparison
---------
Co-authored-by: sp-tarkov-bot <singleplayertarkov@gmail.com >
2025-08-09 11:50:49 +01:00
Chomp
67bd1c69f6
Corrected comment
2025-08-08 15:57:49 +01:00
Chomp
dea94255e4
Bot generation performance improvements
...
Trader assort generation performance improvements
Removed use of recursion inside `FindAndReturnChildrenByAssort`
Created extension method `CreateParentIdLookupCache`
2025-08-08 12:33:31 +01:00
Chomp
5e05049669
Refactored GetDisplayableAssorts for clarity
...
Moved slow operations closer to their use inside `IsDisplayableOffer`
2025-08-07 23:24:23 +01:00
Chomp
15023f2e27
Optimised flea searching hotpath
2025-08-07 22:28:36 +01:00
Chomp
e5be536269
Moved properties closer to their usage inside ItemAllowedInContainer() + improved nullhguard
2025-08-07 18:12:57 +01:00
Chomp
2f452ca2e0
Improved logic of GetTemplatePriceForItems
2025-08-07 18:11:51 +01:00
Chomp
2f962ef6dc
string to mongoId conversion
2025-08-07 15:08:37 +01:00
Chomp
efe9472f8b
Moved trader info lookup outside of loop - StripLockedLoyaltyAssort
2025-08-07 10:54:09 +01:00
Chomp
ccfac42814
Improved performance of GetItemWithChildren()
...
Reduced number of enumerations of `itemWithChildren` inside AddItemWithChildrenToEquipmentSlot()` by converting children to list at start of method
Applied additional filtering to child items collection inside `GetContainerItemsWithChildren()`
2025-08-06 23:14:32 +01:00
Chomp
654fd63355
Removed unnecessary casts to double
2025-08-06 15:23:11 +01:00
Chomp
5cd5ed1f42
Refactored logic of ragfairServer.update()
...
typo fixes
2025-08-06 15:17:34 +01:00
Chomp
98a186ff2f
Refactored logic of GetPmcNicknameOfMaxLength()
2025-08-06 15:15:58 +01:00
Chomp
7ece60ac54
Improved logic
2025-08-06 12:35:02 +01:00
Chomp
57dde61384
Various code quality improvements
2025-08-06 12:28:56 +01:00
Chomp
85a562d1e5
Improved GetRewardProductionMatch logic to make use of saved QuestId property we generate for crafts
2025-08-06 12:27:50 +01:00
Chomp
83408c76fc
Reduced complexity of GetCompatibleTplFromArray()
...
Flagged ItemHelper as singleton due to number of frozensets
2025-08-05 23:55:13 +01:00
Chomp
ec2cc78b2a
Inventory code cleanup
2025-08-05 23:48:10 +01:00
Chomp
8abb25f508
Improved AddItemsToStash
...
Create Add item request once and reassign `ItemWithModsToAdd` inside loop
2025-08-05 23:20:00 +01:00
Chomp
02b80888ec
Improved dictionary access inside GetItemName to prevent issues where now-removed modded items are checked
2025-08-05 16:27:35 +01:00