Commit Graph

267 Commits

Author SHA1 Message Date
Chomp 4939efa273 Sync with changes made to node since 35146 2025-03-04 16:19:47 +00:00
Chomp ade0fd6e22 Comment changes 2025-03-04 15:07:12 +00:00
Chomp 80dcdce6d5 Removed redundant check inside RemoveItemFromAssort 2025-03-04 15:02:24 +00:00
Chomp e3664d3614 Comment improvements
Made various variables static / readonly
2025-03-04 11:47:14 +00:00
Chomp d2db6f9b2b Updated method comments + made private methods protected 2025-03-03 12:11:41 +00:00
Chomp d8d732f270 Added workaround for cert issue on first-time creation 2025-02-27 15:55:52 +00:00
Chomp 3a79aae494 Cache bot names of desired length results 2025-02-26 20:09:54 +00:00
Chomp 3d6eaefd8c AddPlayerOffers reordering 2025-02-26 14:18:38 +00:00
Chomp 594269b683 ItemHelper cleanup 2025-02-26 14:18:00 +00:00
Chomp d74e990186 Improved how presets are cached and lookups occur 2025-02-26 13:28:35 +00:00
Chomp 6760b3ac05 Updated GetDynamicOfferCurrency to make use of existing weighting code 2025-02-26 12:36:35 +00:00
Chomp b3a82038e3 Improved memory pressure inside WeightedRandom<T> + small optimisations when all weights are the same 2025-02-26 12:05:41 +00:00
Chomp a000714f41 Add early exit to GetWeightedValue 2025-02-26 11:41:39 +00:00
Chomp cff882c971 Cleaned up GetPmcNicknameOfMaxLength 2025-02-26 11:30:07 +00:00
Chomp 1fbddc0f2b Moved queue init to be inside if check 2025-02-26 10:47:04 +00:00
Chomp 259c0e4b37 Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-02-25 17:35:50 +00:00
Chomp cb65a20092 Expanded item types inside GetSizeByInventoryItemHash 2025-02-25 17:35:37 +00:00
clodan aca6446d5c Added third party library loading and execution 2025-02-25 17:35:34 +00:00
Chomp 4999b80172 Inverted ignore list check 2025-02-25 17:23:05 +00:00
Chomp f5941aa05c Added early exit to GetContainerItemsWithChildren 2025-02-25 17:00:24 +00:00
Chomp 8239e1dd07 Cleaned up GetSizeByInventoryItemHash 2025-02-25 16:54:17 +00:00
Chomp b7e734c781 Various small micro-optimisations 2025-02-25 15:06:09 +00:00
Chomp b67ff36631 Converted more string comparisons to use string.equals
Optimised `CreateBarterBarterScheme`
2025-02-25 13:30:59 +00:00
Chomp 15f042435f Forgot to ToList both results 2025-02-25 12:55:12 +00:00
Chomp c857359b5a Optimised GetCollectionValue and GetPmcNicknameOfMaxLength 2025-02-25 12:53:41 +00:00
Chomp 7ac04530da Access dictionary keys correctly 2025-02-25 12:23:32 +00:00
Chomp 5a1ed7942d Improved logic for filtering items inside GetContainerItemsWithChildren 2025-02-24 20:55:57 +00:00
Chomp 2f2daa7474 Improved string comparison 2025-02-24 20:31:26 +00:00
Chomp e9028354ca Improved performance of GetContainerItemsWithChildren 2025-02-24 20:31:02 +00:00
Chomp b4c5392f08 Replace various uses of Count() with Any() for ienumerables + remove redundant parenthesis 2025-02-24 17:53:42 +00:00
Archangel eeea8a0000 Remove count for any 2025-02-24 18:49:36 +01:00
Chomp 7296ee2c0c Improved performance of GetPmcNicknameOfMaxLength by using any() 2025-02-24 17:43:32 +00:00
Chomp e28e66d284 Improve FindAndReturnChildrenAsItems performance 2025-02-24 16:45:19 +00:00
Chomp 903001aa68 Fixed blocking check failure 2025-02-24 16:29:06 +00:00
Chomp fe500f7c27 Replace string comparisons with string.Equals (ordinal) 2025-02-23 16:33:23 +00:00
Chomp 4955e07bde Improved comparison logic inside GetValidTraderIdByEnumValue 2025-02-23 14:26:39 +00:00
Chomp 103b797a54 Refactored how flea offer quantity is handled 2025-02-21 17:48:04 +00:00
Chomp 85900724e5 Fixed multipler typo 2025-02-21 15:07:41 +00:00
Chomp bffeec8361 Handle flea item prices as doubles 2025-02-21 15:05:00 +00:00
Chomp 4d4ff7bfe1 Small cleanup of ragfair offer generator 2025-02-21 13:20:42 +00:00
Chomp fc6c15792d Fixed flea offers not reducing quantity after purchase 2025-02-21 12:58:02 +00:00
Chomp a24a574f22 Use better method of comparing parent ids 2025-02-20 16:55:35 +00:00
Chomp 6b0e1ffbce Updated all mongoId checks from == to .equals() 2025-02-20 16:47:30 +00:00
Chomp f14507b34f Improved performance of FindAndReturnChildrenAsItems 2025-02-20 16:23:55 +00:00
Archangel 591824f3cc Start refactor for certificate loading 2025-02-20 15:23:47 +01:00
Chomp 5a5e18f568 Add HTTPS support (#101)
* Initial work on adding https support

* Updated logging

* More logging

* Added support for a certificate password

Replaced method used for getting path to cert

* Reduce duplication of logic in program.cs

* Cleanup of `HttpServer`

* More https stuff

* https

* Fixed remote IP stuff

* Fixed non-local request logging

* Updated assets

* Replaced `singleplayer/bossconvert` to `singleplayer/bosstypes`

* Updated map loot

* Asset update

* Stop storing a bots inventory and other values to save memory

---------

Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
Co-authored-by: clodan <clodan@clodan.com>
2025-02-20 12:27:55 +00:00
Chomp 1ff8d2cbef Replaced lists containing unique values with HashSets
Reworked Soft Insert id checks

Improved dogtag id lookup memory usage

Removed wave cleanup code
2025-02-17 19:05:47 +00:00
Chomp 169e1460bb Updated IsOfBaseclasses and isOfBaseClass to work with ICollection types, not just lists 2025-02-17 17:00:41 +00:00
Chomp 924fff686d Refactored botgen 2025-02-17 13:07:32 +00:00
Archangel 7d7c8bdd31 Cast ConnectionHandler 2025-02-17 12:28:29 +01:00