Commit Graph

240 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 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 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 ec682ccc16 Updated GetTrader to use mongoId for traderId + removed redundant 'ragfair' check + made sessionId optional + added comments 2025-09-26 13:05:20 +01:00
CWX ca28cb2926 Update Profile v2 endpoint to use miniprofile and allow v2 endpoint to get miniprofile from only loginrequest 2025-09-19 18:46:05 +01:00
Archangel 5fc7761b4c Send InvalidOrUnloadableProfile to launcher 2025-09-18 19:56:26 +02:00
Archangel 7024b77d88 Handle error in response 2025-09-18 18:17:52 +02:00
Archangel 7184b4e5db Stop execution of invalid profiles on game start 2025-09-18 18:09:41 +02:00
Chomp e26662ff13 Improved empty check for difficulty values inside GetAllBotDifficulties 2025-09-12 11:06:09 +01:00
Chomp 49b58b6c8a Check for key using ContainsKey instead of TryGet 2025-09-08 15:37:16 +01:00
Chomp 5d93d1cd6d Converted GetSkillBonusMultipliedBySkillLevel into extension method 2025-09-08 13:04:11 +01:00
Chomp 0b2843cff6 Converted ProfileMeetsTraderLoyaltyLevelToBuyOffer to extension method 2025-09-08 12:56:14 +01:00
Chomp 8177093b16 Updated EnsureItemHasValidStackCount to be an extension method 2025-09-08 12:48:06 +01:00
Chomp e5d0af3890 Formatting and naming consistency changes 2025-09-02 14:27:10 +01:00
Chomp 2c28b4b0bf Fixed bad logging text in RollForDelete 2025-09-02 10:36:47 +01:00
Archangel 7e2e3db3fd Change property naming to be more consistent (#578) 2025-08-28 15:32:02 +02:00
DrakiaXYZ 18aca7d514 Store data passed back from SaveDialogueState call (#568)
* Store data passed back from SaveDialogueState call
This makes the rest area game playable, though variables still don't save

* Woops, bad casing

---------

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
2025-08-24 08:58:08 +01:00
Archangel 0fe034691d Fix up wrong type 2025-08-23 13:25:37 +02:00
Chomp b44d9617d0 Added RestSpace to _areasWithResources 2025-08-21 20:42:56 +01:00
Archangel d413a6e9c5 Remove TraderStore, use DatabaseService as the source of truth 2025-08-21 16:18:41 +02:00
Cj 86dd7cef17 Fix inverted if check for flea market purchases 2025-08-18 14:24:05 -04:00
Chomp 8573e6ae02 Use string.empty and MongoId.Empty() where appropriate 2025-08-17 21:35:34 +01:00
Chomp aa4224081b Improve level check logic inside PlayerLacksTraderLoyaltyLevelToBuyOffer 2025-08-17 16:42:01 +01:00
Chomp 24397b0439 Fix logging messages 2025-08-17 09:23:17 +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
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
Cj e54dcbd4d1 Fix more warnings... (#543)
* Fix more warnings...

* Fix mistake
2025-08-12 15:28:54 +00:00
Cj 8b4a81fae7 Make first 3 initial daily quests of differing type (#540)
* Make first 3 initial daily quests of differing type

* add comment
2025-08-10 09:52:00 +01:00
Cj 4d0eb4d4f3 Change to using builtin SemVer type for AbstractModMetadata and ProgramStatistics.Generated (#536)
* Change to using SemVer builtin type

* Remove SptVersion from config, remove redundant .ToString()

* Update test mod, fix watermark string conversion
2025-08-09 20:40:25 +00:00
Lacyway 6094449903 Fix handins using from key 2025-08-09 13:49:23 +02: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 15023f2e27 Optimised flea searching hotpath 2025-08-07 22:28:36 +01:00
Chomp 162ce3f1d5 Comment and nullguard improvements in HideoutController 2025-08-07 18:22:13 +01:00
Chomp 131f2feeab Added nullguard to RemoveExpiredItemsFromMessage + chagned parameter to MongoId 2025-08-07 18:16:13 +01:00
Chomp 7168e167df Replaced loop with linq inside GetAllTraderSuits + return IEnumerable 2025-08-07 18:15:18 +01:00
Chomp 6b297adf68 Replaced ProbabilityObjectArray.Draw() with DrawAndRemove Draw
Reduced overhead when drawing a large number of elements during loot generation
2025-08-06 17:52:49 +01:00
Chomp 40fe4dbd89 Removed unncessary check now the id is a MongoId 2025-08-06 12:47:53 +01:00
Chomp cdc9cd59e2 Replaced Wishlist property in profile with pure dictionary 2025-08-06 12:47:28 +01:00
Archangel 58ca43de49 Handle InvalidOrUnloadableProfile in GameController 2025-08-05 17:33:04 +02:00
Chomp c2a4877989 Cleaned up mergeItems() logic 2025-08-05 16:30:53 +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
Archangel c3b36f4c7d Handle invalid profiles on all IOnUpdate 2025-08-05 17:20:49 +02:00
Chomp 984e10ae76 Added GetMinutesAsSeconds method
Removed magic number
2025-08-05 15:57:06 +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
Archangel 11384c9b3f Fix null checks for profile 2025-08-05 14:28:29 +02:00
Chomp e7fd757dce Improved how bots are generated to be less blocking
Updated `GenerateBotWaves` to return empty results when request data is empty

Cleaned up `GenerateBotWave` to not need a manual lock
Improved `botRelativeLevelDelta` value in pmc.config

Updated `MatchBotDetailsCacheService` to store PMCs primary weapon tpl
2025-08-04 13:25:19 +01:00