Commit Graph

323 Commits

Author SHA1 Message Date
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
Cj 529fe61f23 Controller house keeping (#532)
* Cleanup BotController.cs

* More controller cleanup

* More dialogue changes
2025-08-05 16:24:59 +01:00
Chomp 3b4bcaf910 Made use of AddUpd extension 2025-08-05 15:56:23 +01:00
Jesse c7e40deb90 Add support for partially loading invalid profiles (#533)
* Add support for partially loading invalid profiles

* Return early in exception
2025-08-05 15:25:47 +01:00
Chomp 0ea5269756 Updated profile SkillTypes property to use string to enum converter
Updated surrounding properties to not be null
Updated related code to reflect nullability change
2025-08-03 09:52:18 +01:00
Chomp e1e3ed0bb3 Fixed bots sometimes spawning with 0 stack sized ammo in their pockets/vests #529 2025-08-03 09:34:50 +01:00
Archangel aec8420d53 Cleanup todos, run VS cleanup & enforce file scoped namespacing 2025-07-31 15:18:20 +02: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 623fce1484 Added id generation for BaseClasses, updated references 2025-07-27 17:40:27 +01:00
Chomp a1b1c6d815 Updated string to mongoId 2025-07-27 13:31:46 +01:00
Chomp 7711af53f4 Remove unnecessary conversion to mongoid 2025-07-27 12:57:51 +01:00
Chomp 680ab40499 Inverted if check to reduce nesting 2025-07-27 12:56:45 +01:00
Chomp 83cb707551 Updated comment styles 2025-07-27 12:56:09 +01:00
R3ality a5c2fb08e6 Style: Satisfy csharpier 2025-07-27 13:54:54 +03:00
R3ality 82efbfc7db Refactor Json key name to offerCurrencyChancePercent 2025-07-27 13:36:38 +03:00
Chomp bfd616e7c3 Converted rewards data into dictionary - reduced need for reflection
Moved clone outside of `UpdateQuestsForGameEdition`
2025-07-26 12:53:56 +01:00
Chomp 526c3f6c44 string > mongoid
added nullguard
2025-07-25 21:12:37 +01:00
Chomp 5cfb1421c7 Removed unnecessary ?? 2025-07-25 20:13:50 +01:00
Chomp b1aa8f0942 Removed unnecessary ?? 2025-07-25 20:09:07 +01:00
Chomp 8a7690e13b Improved performance of GetRandomElement when processing IEnnumerables 2025-07-25 18:26:09 +01:00
Chomp 834666a403 Created overload of ItemHasBaseClass that accepts one base type input, faster for 70% of use cases 2025-07-25 17:22:59 +01:00
Chomp 856fa0633d List to IEnumerable changes
Removed use of tolist()
2025-07-25 15:57:57 +01:00
Chomp e2f8d03897 Don't perform 2 exists check before returning profile 2025-07-25 12:42:02 +01:00
Chomp 34bd002876 list to ienumerable changes
Removed unused methods

strong to mongoId changes
2025-07-25 12:28:40 +01: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 2c5420f3db list to ienumerable 2025-07-24 16:05:14 +01:00
Chomp f562c634a7 Converted lists to hashsets where appropriate
Removed unnecessary uses of  ToList()
string to mongoId conversions
2025-07-24 13:26:34 +01:00
Chomp 8dcb87e1b8 Fixed error on raid end 2025-07-23 22:08:24 +01:00
Chomp 10ad2dfe9a list to ienumerable changes 2025-07-23 22:07:56 +01:00
Chomp 1d0f6ce105 Added logging around cult circle reward handling 2025-07-23 16:28:41 +01:00
Chomp a1e0dadd08 Part 2 of list to ienumerable 2025-07-23 15:55:28 +01:00
Chomp 1320f7d0ab Ienumerable changes 2025-07-23 13:06:48 +01:00
Chomp db34eaa501 Updated various methods to accept IEnumerable instead of List 2025-07-23 10:57:49 +01:00
clodanSPT 2d752457b2 Move port usage (#504)
* Moved port usage code check to before startup

* removed unused import

---------

Co-authored-by: Alex <clodanSPT@hotmail.com>
2025-07-23 08:44:34 +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 8ab081e057 Fixed slot misplacement in bots inventories 2025-07-22 20:35:44 +01:00
Chomp 8f4f72dcdd Updated node comments to c# format 2025-07-21 21:09:17 +01:00
Chomp 8865484e2b string to MongoId changes 2025-07-21 14:52:30 +01:00
Chomp 3901a91f45 Improved how ragfair offer creator status is checked - store creator type in offer
Converted `IsTraderOffer` into extension method
string to mongoid conversions
2025-07-21 13:36:51 +01:00
Chomp 4b12fb98f3 Removed some null props 2025-07-20 22:53:11 +01:00