Commit Graph

98 Commits

Author SHA1 Message Date
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 a0013fceca Updated nuget packages 2025-08-06 19:22:49 +01:00
Chomp c89c84dff3 Converted RemoveFiRStatusFromItemsInContainer into extension method
Improved performance of method by using breadth-first search to find children instead of loop
Wrote tests for method
2025-07-30 23:13:09 +01:00
sp-tarkov-bot b14b74bf24 Format Style Fixes 2025-07-28 19:39:29 +00:00
Chomp 773966240f Fixed GenerateWeaponByTpl_generate_m4_pmc 2025-07-27 13:11:31 +01:00
Chomp 7711af53f4 Remove unnecessary conversion to mongoid 2025-07-27 12:57:51 +01:00
Chomp 8a7690e13b Improved performance of GetRandomElement when processing IEnnumerables 2025-07-25 18:26:09 +01:00
Chomp 34bd002876 list to ienumerable changes
Removed unused methods

strong to mongoId changes
2025-07-25 12:28:40 +01:00
sp-tarkov-bot b0f0e76f08 .NET Format Style Fixes 2025-07-24 19:31:31 +00:00
bluextx 4095da3e2b Fixed collection modification exceptions during item removal. Added unit tests to ensure functionality. 2025-07-24 21:36:24 +03:00
Chomp 7838a88dd7 Revert test change 2025-07-22 20:44:37 +01:00
Chomp 731b79519f Rename method to GetItemWithChildren 2025-07-22 20:43:08 +01:00
sp-tarkov-bot 7bf52b9240 .NET Format Style Fixes 2025-07-22 19:37:29 +00:00
Alex 24a244c656 Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop
# Conflicts:
#	UnitTests/Tests/Helpers/BotGeneratorHelperTests.cs
2025-07-22 20:36:55 +01:00
Alex 8ab081e057 Fixed slot misplacement in bots inventories 2025-07-22 20:35:44 +01:00
Chomp 7aa535d010 Fix asserts 2025-07-22 20:27:46 +01:00
sp-tarkov-bot 22da08bca5 .NET Format Style Fixes 2025-07-22 18:42:12 +00:00
Alex 5bbf671acd Refactored unit tests to use NUnit and added DI usage 2025-07-22 19:41:34 +01:00
Chomp c483eca341 Added test 2025-07-21 21:45:51 +01:00
Chomp 8745ecba69 Added test 2025-07-21 21:31:11 +01:00
Chomp c760cbb6bf Added BotWeaponGeneratorTests 2025-07-21 17:44:14 +01:00
Chomp 5eaedccdfa Added tests 2025-07-21 12:33:00 +01:00
Chomp e902447b89 More tests 2025-07-20 22:51:14 +01:00
Chomp b161664645 More tests 2025-07-20 21:46:22 +01:00
Chomp 1953c9002c Added InventoryHelperTests 2025-07-20 21:31:02 +01:00
Chomp 0a8304f124 Added tests 2025-07-20 20:58:43 +01:00
Chomp 14e520633e Updated tests 2025-07-20 20:39:32 +01:00
clodanSPT 2af0891c66 .NET Format Style Fixes 2025-07-20 19:04:02 +00:00
Alex 9584d171f0 Test cleanup 2025-07-20 20:03:32 +01:00
Chomp e05ae25650 Updated mock logger 2025-07-20 19:45:57 +01:00
Chomp aee2ecf01d Added assets to tests 2025-07-20 19:45:27 +01:00
Chomp d3be2b8b03 Add rough draft of Botgen tests 2025-07-20 19:43:53 +01:00
Chomp 2be4f22773 Added tests for FindAndReturnChildrenAsItems 2025-07-19 11:51:33 +01:00
Chomp 040be2feaa More strings to MongoIds
Convert constructors into primary constructors

Simplified logic with use of ??, ??= and method groups

Cleaned up redundant conditional access qualifiers
2025-07-14 22:29:41 +01:00
Chomp 762d42c009 Corrected+expanded test logic
Resolved issues with moving/adding items to inventory containers
2025-07-04 17:59:15 +01:00
Chomp a0d50f8ffc Added container extension method tests 2025-07-04 15:25:08 +01:00
Jesse ebe8f9ded5 Mongoid changes (#440)
* Remove old IsValidMongoId and Regex

* Convert more configs to MongoId, as well as BaseClasses

* Remove HashUtil.Generate(), replaced with new MongoId()
2025-07-03 15:42:16 +01:00
Chomp c1aaa4b6b2 Added MongoIDTests to unit tests 2025-07-02 12:57:19 +01:00
chompDev 46989aa19e .NET Format Style Fixes 2025-07-01 09:18:15 +00:00
Lacyway 8e3894e9ad MongoID improvements (#437)
* MongoID improvements
- Added extension to check whether a MongoID is valid, 33% faster than old method
- Cut down generation speed by 2/3

* Fix method used

* Add test
2025-07-01 10:17:39 +01:00
Jesse d0af6acbe6 Move MathUtil methods to extensions (#432)
* Begin moving MathUtil methods to Extensions

* Add missing extension
2025-06-28 16:15:11 +01:00
Chomp 81f5f24f86 More tests 2025-06-20 11:37:39 +01:00
chompDev 430501a688 .NET Format Style Fixes 2025-06-20 10:32:46 +00:00
Chomp 593c574e5a Added _mathUtil.Interp1 tests 2025-06-20 11:32:07 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Jesse 2c52012740 Further async changes (#387)
* Further async changes
- SaveServer & Backup Server are now async
- Anything that ties in with SaveServer saving (Such as callbacks) are now async
- Various async util methods added
- Removed two wrapper methods and switched code over to use the actual method

* Update test
2025-06-09 20:09:12 +01:00
Chomp bcd366c2b5 Updated fastcloner nuget package 2025-06-07 18:32:05 +01:00
Jesse 3d288f3489 Fix up converters to target all assemblies in the AppDomain (#364)
* Fix up converters to target all assemblies in the AppDomain

* Make test more robust

* Make test more robust v2 electric boogaloo
2025-06-06 07:23:26 +01:00
hulkhan22 210bdb2d60 Fix for tests randomly failing when run altogether 2025-06-01 02:33:19 +02:00
hulkhan22 18bd0957fd Fix the damn tests 2025-05-31 01:40:47 +02:00