Commit Graph

817 Commits

Author SHA1 Message Date
Chomp 8aebbcd395 Updated GetArrayValue to use same logic as optimised GetCollectionValue 2025-02-25 13:29:34 +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 7fcc5b1514 interned more strings 2025-02-24 21:36:22 +00:00
Chomp 8f2fbed27b Reduced amount of items iterated over when generating fence assorts 2025-02-24 21:08:58 +00:00
Chomp 4c255dcd48 Reduced amount of items iterated over when generating flea offers 2025-02-24 21:08:40 +00:00
Chomp 4d94044e51 Why is this here, it does nothing? 2025-02-24 21:07:03 +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
Archangel 180aa9e100 Use HashSet and Overlaps, should shorten time spent looking up base classes? 2025-02-24 19:32:40 +01: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 2c42837c25 Fixed bad logic in ChooseModToPutIntoSlot 2025-02-24 17:42:53 +00:00
CWX 8d9f96600b Trader is a KVP, changed naming and fixed kvp.tostring being added to "traderId" 2025-02-24 17:27:31 +00:00
Chomp 0e141561b6 use string.equals for string compare 2025-02-24 17:27:34 +00:00
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 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 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