Commit Graph

381 Commits

Author SHA1 Message Date
Chomp f43a137fed Make use of logical patterns inside WeatherHelper 2025-09-26 13:19:41 +01:00
Chomp e32bace4d6 Improved dict access inside SetTraderUnlockedState + comment and naming improvements 2025-09-26 13:16: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
Chomp 45237693f8 Fixed issue with GenerateExtraPropertiesForItem not returning Upd object 2025-09-14 16:39:47 +01:00
Chomp 11ec6f66da Fixed issue with 0 valued maxhpresource items causing errors 2025-09-14 11:07:54 +01:00
Chomp 0c68d56ee1 Improved GetRandomizedResourceValue + GenerateExtraPropertiesForItem handling of values
Explicit handling of value == 1
Prevent returned value being below 1
Allow caller to force `StackObjectsCount` property
Renamed returned object
2025-09-14 10:17:49 +01:00
Chomp 508e7f44b0 Removed unused methods 2025-09-08 19:30:10 +01:00
Chomp 4830f1e2b2 Removed filledContainerIds system as its handled by botInventoryContainerService 2025-09-08 15:52:36 +01:00
Chomp 7ec29e1e12 Converted FlagCultistCircleCraftAsComplete into extension method 2025-09-08 13:08:10 +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 495660bec3 Expanded UBGL ammo placement to try pockets if rig placement fails - fixes partisan not having any ubgl ammo 2025-09-06 19:05:54 +01:00
Chomp e5d0af3890 Formatting and naming consistency changes 2025-09-02 14:27:10 +01:00
Chomp 4c80ca242c Updated various enums with values from live 2025-08-30 15:42:48 +01:00
Chomp d3f95de546 Wired up notification alert reward - untested #576 2025-08-28 22:43:08 +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
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