Commit Graph

1570 Commits

Author SHA1 Message Date
Chomp ea671d2092 Make use of handbook item cache to speed up AdjustUnreasonablePrice 2025-02-24 17:18:25 +00:00
Chomp a6e7013b68 Removed bot caching, return results directly to client when requested 2025-02-24 16:51:42 +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 e0f9b2dd06 Refactored PMCLootGenerator 2025-02-23 22:59:31 +00:00
Chomp a2a1ae6477 Cleaned up ScavCaseRewardGenerator 2025-02-23 16:57:50 +00:00
Chomp 669cea006a Fixed build 2025-02-23 16:36:35 +00:00
Chomp fe500f7c27 Replace string comparisons with string.Equals (ordinal) 2025-02-23 16:33:23 +00:00
Chomp 0000d20d21 Fixed issue with GetCompatibleCartridgesFromMagazineTemplate failing when magazine lacks slot data 2025-02-23 15:56:42 +00:00
Chomp 3617e169d6 Cleanup of SetScavCooldownTimer 2025-02-23 15:43:54 +00:00
Chomp 180d66c092 Renamed RemoveOffer function to better explain what its doing + cleanup 2025-02-23 15:08:47 +00:00
Chomp 27882319c9 Improved logic inside CalculateRequirementsPriceInRub 2025-02-23 14:42:23 +00:00
Chomp db4ae865e1 Updated InsuranceController methods to be protected instead of private 2025-02-23 14:31:00 +00:00
Chomp 4d7e942ce1 Improved comparison logic inside IsMapLabsAndInsuranceDisabled 2025-02-23 14:29:56 +00:00
Chomp 4ed1082ba9 Improved comparison logic insideGetBotCap 2025-02-23 14:28:18 +00:00
Chomp 4955e07bde Improved comparison logic inside GetValidTraderIdByEnumValue 2025-02-23 14:26:39 +00:00
Chomp 4f757637ea Cleaned up GetWeaponCaliber 2025-02-23 14:25:20 +00:00
Chomp d0e071a091 Various improvements to bot weapon generation 2025-02-23 14:20:58 +00:00
Chomp b57ee39d32 Reduced duplication between getCompatibleCartridgesFromWeaponTemplate and getCompatibleCartridgesFromMagazineTemplate 2025-02-23 13:42:48 +00:00
Chomp eb4fc520df Improved safety of GetCompatibleCartridgesFromMagazineTemplate 2025-02-23 13:23:23 +00:00
Chomp 588e069c23 Weighted compatible ammo fix
Check the magazine data (in case it's a modded weapon that incorrectly clones a weapon from a different caliber, without updating the data for default ammo)
2025-02-23 11:46:40 +00:00
Chomp 860b5e8148 Fixed incorrect pack offer prices 2025-02-21 23:12:28 +00:00
Chomp 103b797a54 Refactored how flea offer quantity is handled 2025-02-21 17:48:04 +00:00
Chomp f4824a7074 Fixed image router not finding images due to recent client change 2025-02-21 17:31:25 +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 dad16f9ae8 Updated version string in core json 2025-02-21 12:58:47 +00:00
Chomp fc6c15792d Fixed flea offers not reducing quantity after purchase 2025-02-21 12:58:02 +00:00
Chomp c250fb8dd3 Use global item blacklist in cultist circle reward system 2025-02-21 11:04:40 +00:00
Chomp 346c6bda4d Small typo 2025-02-20 17:20:04 +00:00
Chomp a24a574f22 Use better method of comparing parent ids 2025-02-20 16:55:35 +00:00
Chomp e067c9291f Added missing json property 2025-02-20 16:47:43 +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
Chomp a3c9cdb1b1 Fixed error 2025-02-20 15:41:15 +00:00
clodan 22b140ae4f Merge branch 'develop' of https://github.com/sp-tarkov/server-csharp into develop 2025-02-20 15:21:19 +00:00
clodan 7a2db04cfe Added fast cloner and benchmarks 2025-02-20 15:21:13 +00:00
Archangel 4665cef126 Slightly improve HashUtil
Should save some CPU cycles reversing and copying an array. This should also maintain it's big endianness?
Switch over random to use RandomUtil and compile regex
2025-02-20 16:16:37 +01:00
Archangel 355d985349 Slight refactor to webserver init 2025-02-20 15:23:52 +01:00
Archangel 591824f3cc Start refactor for certificate loading 2025-02-20 15:23:47 +01:00
Archangel 92c1f6502d Add writefile for bytes 2025-02-20 15:23:41 +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 6dc59a4be7 Make use of spread operator 2025-02-19 09:36:07 +00:00
Chomp 8a637188a7 Fixed blacklist clearing itself incorrectly 2025-02-19 09:19:08 +00:00
Chomp 97fd83c6bf Pass bots AID instead of generating one 2025-02-18 12:43:41 +00:00
Chomp 440121514b Fix post-raid PMC messages not working after bot gen changes 2025-02-18 09:31:20 +00:00
Chomp baf1a41c30 Fix insurance not being returned 2025-02-18 09:23:21 +00:00
Chomp dab2f64611 Fixed scavs with unheard pockets 2025-02-17 19:48:57 +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