Commit Graph

401 Commits

Author SHA1 Message Date
Chomp cc745f4c46 Corrected ProcessBuyTradeRequestData transactionId to be Mongoid, updated associated code
Also moved TransactionId in `InsuranceRequestData` to be MongoId, updated associated code
2025-09-30 22:38:42 +01:00
Chomp d68a51f031 Fixed buying PMC offers from flea error #597 2025-09-30 22:05:41 +01:00
Chomp 836112dc50 Weather refactor (#596)
* First pass at Weather generation refactor

* Moved generation logic around

* Added seasonal variability support

* Expanded weather generation to use DI system and allow easier modding

* Updated weather weight values

Converted records into classes

* Added fallback when generator isn't found

* Fixed colliding lambda

Added method comments

* Cleanup of weather code

* Adjusted `weatherPresetWeight` values

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2025-09-30 12:23:46 +00:00
Cj 36b247d92e Move HideoutAreas to the Models.Enums.Hideout namespace 2025-09-29 18:14:59 -04:00
Chomp a872459e60 Fixed typo in GenerateWeather 2025-09-29 13:37:25 +01:00
Chomp 5efe5e8c4e Deconstructed kvp values inside RemoveExistingPmcWaves 2025-09-29 09:43:27 +01:00
Chomp 79e023392b Implemented CoreBot type
Enabled 'rudans' patrol flag in Christmas event
2025-09-29 09:33:16 +01:00
Chomp ecc0ba8406 Cleanup of warnings 2025-09-26 13:38:47 +01:00
Chomp 55b819e1ec Removed GetItemRarityMultiplier, the values in items.json are garbage and should not be used
Added system to add multiplier to items that are used to craft in the hideout
2025-09-18 23:35:27 +01:00
Archangel f3470aac59 Remove redundant checks for MongoId 2025-09-18 19:57:34 +02:00
Chomp f7e8aa9e77 Added GetItemRarityMultiplier 2025-09-18 16:31:35 +01:00
Chomp fb175d4341 Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-09-18 14:03:39 +01:00
Chomp e8897886d2 Added an item type price multiplier override to GetFleaBasePriceMultiplier
All keycards now use a `2.5` multiplier, not just the red keycard
2025-09-18 14:03:28 +01:00
Archangel 6a4efe9e53 Set correct type on global LocationInfection 2025-09-17 20:47:24 +02:00
Chomp 1ef9ebd88a Added system to generate item flea base prices based on handbook value 2025-09-16 22:24:35 +01:00
Chomp 3fa72b5064 Code lint 2025-09-14 16:40:05 +01:00
Chomp 7bbb76d755 Removed unused import 2025-09-14 16:03:06 +01:00
Chomp d0a24db828 Removed recursion from GeneratePool
Reduced use of locks
2025-09-14 15:44:04 +01:00
Chomp 60271229f9 Performance/locking/name improvements to GeneratePool 2025-09-14 15:07:20 +01:00
Cj 11ae50875a Custom quest service (#589)
* Initial work

* add todo

* Fix up errors

* More work on CustomQuestService

* Fix mistake

* Remove cloning work, its cancer

* clean-up

* Use TryAdd as a guard

* localize errors

* remove unused exception

* fix using

* fix not passing logging params
2025-09-14 09:20:25 +01:00
Cj 3596a12a19 Rename parameter for clarity 2025-09-10 12:04:54 -04:00
Cj 6ae1d6f52b Implement ModItemCacheService (#587)
* Implement `ModItemCacheService`

* Fix file name

* Return early

* Make AI happy
2025-09-09 15:29:00 +00:00
Chomp 3af494317c Reduced number of params throughout bot generation process 2025-09-08 16:41:25 +01:00
Chomp b66bf0fecd Use GetValueOrDefault instead of GetGetValue 2025-09-08 15:39:29 +01:00
Chomp f8de9c795e Small perf improvement inside HandlePreRaidInventoryChecks 2025-09-08 13:12:45 +01:00
Chomp 01570a1621 Improved locking inside RagfairRequiredItemsService
Comment and name improvements
2025-09-08 10:58:08 +01:00
Chomp e5d0af3890 Formatting and naming consistency changes 2025-09-02 14:27:10 +01:00
Archangel ea7cf20dec I hate VS 2025-08-30 19:37:48 +02:00
Archangel d51f598185 Remove unecessary if statement 2025-08-30 19:36:24 +02:00
Chomp 4c80ca242c Updated various enums with values from live 2025-08-30 15:42:48 +01:00
Chomp 307071fa9f Moved GC to later in map gen
Store Mongoid correctly
2025-08-29 09:48:14 +01:00
Chomp 7197d786dc Prevent PMC waves spawning when they would have occurred before the player spawns as a scav in a simulated late-start raid 2025-08-28 21:51:39 +01:00
Archangel 6dacfde715 Change prop method naming to be more consistent 2025-08-28 15:38:36 +02:00
Archangel 7e2e3db3fd Change property naming to be more consistent (#578) 2025-08-28 15:32:02 +02:00
Archangel d4ed6c3392 Update profile migration code 2025-08-26 20:11:03 +02:00
Chomp 0df0d95363 First pass at rest area hideout changes 2025-08-23 21:02:24 +01:00
Archangel 646211ef04 Push global bot settings models, breaks server 2025-08-23 17:44:17 +02:00
Chomp 1df80171eb Added new property to profiles 2025-08-23 14:34:53 +01:00
Chomp c40439d04f Updated core difficulty code to use JsonElement 2025-08-23 10:30:26 +01:00
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 038f12ab6c Copy improvements over to AddItemToBotContainerFixedPosition 2025-08-20 14:12:17 +01:00
Chomp 5a5f80aa58 Extracted logic from TryAddItemToBotContainer into helper method + added guard clause 2025-08-20 12:20:47 +01:00
Chomp d8987d55f7 Renamed method to TryAddItemToBotContainer 2025-08-20 12:05:47 +01:00
Chomp 108e6d7512 Improved no container check inside AddItemToBotContainer 2025-08-20 11:58:19 +01:00
Chomp c7a27529bf Fixed AddItemToBotContainer not correctly finding container by index 2025-08-20 10:43:36 +01:00
Chomp 7e1960b939 Removed reflection from tests 2025-08-19 20:20:23 +01:00
Chris Adamson 1e2fb87908 added isside check and tests (#562)
* added isside check and tests

* csharpier
2025-08-19 19:05:05 +00:00
Chris Adamson 457e7cd36c Fix: Killing the client will no longer save your items (#557)
* alt-f4 is for timmys and rats, not chads like Chomp

* peer review fixes

---------

Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
2025-08-19 16:39:20 +00:00
Chomp 8573e6ae02 Use string.empty and MongoId.Empty() where appropriate 2025-08-17 21:35:34 +01:00